{ "_info": { "license": { "name": "Apache 2.0", "url": "https://github.com/elastic/elasticsearch-specification/blob/main/LICENSE" }, "title": "Elasticsearch Request & Response Specification" }, "endpoints": [ { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "This API is a diagnostics API and the output should not be relied upon for building applications.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-desired-balance.html", "name": "_internal.delete_desired_balance", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_internal/desired_balance" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Deletes the desired nodes. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-desired-nodes.html", "name": "_internal.delete_desired_nodes", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_internal/desired_nodes" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "This API is a diagnostics API and the output should not be relied upon for building applications.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-desired-balance.html", "name": "_internal.get_desired_balance", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_internal/desired_balance" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Gets the latest desired nodes. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-desired-nodes.html", "name": "_internal.get_desired_nodes", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_internal/desired_nodes/_latest" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "private" } }, "description": "Prevalidates node removal from the cluster", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/prevalidate-node-removal-api.html", "name": "_internal.prevalidate_node_removal", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_internal/prevalidate_node_removal" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Updates the desired nodes. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-desired-nodes.html", "name": "_internal.update_desired_nodes", "request": null, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_internal/desired_nodes/{history_id}/{version}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Delete an async search.\n\nIf the asynchronous search is still running, it is cancelled.\nOtherwise, the saved search results are deleted.\nIf the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.", "docId": "async-search", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit", "name": "async_search.delete", "request": { "name": "Request", "namespace": "async_search.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "async_search.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_async_search/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Get async search results.\n\nRetrieve the results of a previously submitted asynchronous search request.\nIf the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.", "docId": "async-search", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit", "name": "async_search.get", "request": { "name": "Request", "namespace": "async_search.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "async_search.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_async_search/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Get the async search status.\n\nGet the status of a previously submitted async search request given its identifier, without retrieving search results.\nIf the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to:\n\n* The user or API key that submitted the original async search request.\n* Users that have the `monitor` cluster privilege or greater privileges.", "docId": "async-search", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit", "name": "async_search.status", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "async_search.status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "async_search.status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_async_search/status/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Run an async search.\n\nWhen the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.\n\nWarning: Asynchronous search does not support scroll or search requests that include only the suggest section.\n\nBy default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.\nThe maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.", "docId": "async-search", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit", "name": "async_search.submit", "request": { "name": "Request", "namespace": "async_search.submit" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "async_search.submit" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_async_search" }, { "methods": [ "POST" ], "path": "/{index}/_async_search" } ] }, { "availability": { "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Delete an autoscaling policy.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.", "docId": "autoscaling-delete-autoscaling-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-delete-autoscaling-policy", "extDocId": "autoscaling", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/autoscaling", "name": "autoscaling.delete_autoscaling_policy", "request": { "name": "Request", "namespace": "autoscaling.delete_autoscaling_policy" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "autoscaling.delete_autoscaling_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_autoscaling/policy/{name}" } ] }, { "availability": { "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Get the autoscaling capacity.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.\n\nThis API gets the current autoscaling capacity based on the configured autoscaling policy.\nIt will return information to size the cluster appropriately to the current workload.\n\nThe `required_capacity` is calculated as the maximum of the `required_capacity` result of all individual deciders that are enabled for the policy.\n\nThe operator should verify that the `current_nodes` match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.\n\nThe response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required.\nThis information is provided for diagnosis only.\nDo not use this information to make autoscaling decisions.", "docId": "autoscaling-get-autoscaling-capacity", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity", "extDocId": "autoscaling", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/autoscaling", "name": "autoscaling.get_autoscaling_capacity", "request": { "name": "Request", "namespace": "autoscaling.get_autoscaling_capacity" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "autoscaling.get_autoscaling_capacity" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_autoscaling/capacity" } ] }, { "availability": { "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Get an autoscaling policy.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.", "docId": "autoscaling-get-autoscaling-capacity", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-get-autoscaling-capacity", "extDocId": "autoscaling", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/autoscaling", "name": "autoscaling.get_autoscaling_policy", "request": { "name": "Request", "namespace": "autoscaling.get_autoscaling_policy" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "autoscaling.get_autoscaling_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_autoscaling/policy/{name}" } ] }, { "availability": { "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Create or update an autoscaling policy.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.", "docId": "autoscaling-put-autoscaling-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-autoscaling-put-autoscaling-policy", "extDocId": "autoscaling", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/autoscaling", "name": "autoscaling.put_autoscaling_policy", "request": { "name": "Request", "namespace": "autoscaling.put_autoscaling_policy" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "autoscaling.put_autoscaling_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_autoscaling/policy/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Bulk index or delete documents.\nPerform multiple `index`, `create`, `delete`, and `update` actions in a single request.\nThis reduces overhead and can greatly increase indexing speed.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:\n\n* To use the `create` action, you must have the `create_doc`, `create`, `index`, or `write` index privilege. Data streams support only the `create` action.\n* To use the `index` action, you must have the `create`, `index`, or `write` index privilege.\n* To use the `delete` action, you must have the `delete` or `write` index privilege.\n* To use the `update` action, you must have the `index` or `write` index privilege.\n* To automatically create a data stream or index with a bulk API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege.\n* To make the result of a bulk operation visible to search using the `refresh` parameter, you must have the `maintenance` or `manage` index privilege.\n\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\nThe actions are specified in the request body using a newline delimited JSON (NDJSON) structure:\n\n```\naction_and_meta_data\\n\noptional_source\\n\naction_and_meta_data\\n\noptional_source\\n\n....\naction_and_meta_data\\n\noptional_source\\n\n```\n\nThe `index` and `create` actions expect a source on the next line and have the same semantics as the `op_type` parameter in the standard index API.\nA `create` action fails if a document with the same ID already exists in the target\nAn `index` action adds or replaces a document as necessary.\n\nNOTE: Data streams support only the `create` action.\nTo update or delete a document in a data stream, you must target the backing index containing the document.\n\nAn `update` action expects that the partial doc, upsert, and script and its options are specified on the next line.\n\nA `delete` action does not expect a source on the next line and has the same semantics as the standard delete API.\n\nNOTE: The final line of data must end with a newline character (`\\n`).\nEach newline character may be preceded by a carriage return (`\\r`).\nWhen sending NDJSON data to the `_bulk` endpoint, use a `Content-Type` header of `application/json` or `application/x-ndjson`.\nBecause this format uses literal newline characters (`\\n`) as delimiters, make sure that the JSON actions and sources are not pretty printed.\n\nIf you provide a target in the request path, it is used for any actions that don't explicitly specify an `_index` argument.\n\nA note on the format: the idea here is to make processing as fast as possible.\nAs some of the actions are redirected to other shards on other nodes, only `action_meta_data` is parsed on the receiving node side.\n\nClient libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible.\n\nThere is no \"correct\" number of actions to perform in a single bulk request.\nExperiment with different settings to find the optimal size for your particular workload.\nNote that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size.\nIt is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch.\nFor instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch.\n\n**Client suppport for bulk requests**\n\nSome of the officially supported clients provide helpers to assist with bulk requests and reindexing:\n\n* Go: Check out `esutil.BulkIndexer`\n* Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk` and `Search::Elasticsearch::Client::5_0::Scroll`\n* Python: Check out `elasticsearch.helpers.*`\n* JavaScript: Check out `client.helpers.*`\n* .NET: Check out `BulkAllObservable`\n* PHP: Check out bulk indexing.\n\n**Submitting bulk requests with cURL**\n\nIf you're providing text file input to `curl`, you must use the `--data-binary` flag instead of plain `-d`.\nThe latter doesn't preserve newlines. For example:\n\n```\n$ cat requests\n{ \"index\" : { \"_index\" : \"test\", \"_id\" : \"1\" } }\n{ \"field1\" : \"value1\" }\n$ curl -s -H \"Content-Type: application/x-ndjson\" -XPOST localhost:9200/_bulk --data-binary \"@requests\"; echo\n{\"took\":7, \"errors\": false, \"items\":[{\"index\":{\"_index\":\"test\",\"_id\":\"1\",\"_version\":1,\"result\":\"created\",\"forced_refresh\":false}}]}\n```\n\n**Optimistic concurrency control**\n\nEach `index` and `delete` action within a bulk API call may include the `if_seq_no` and `if_primary_term` parameters in their respective action and meta data lines.\nThe `if_seq_no` and `if_primary_term` parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details.\n\n**Versioning**\n\nEach bulk item can include the version value using the `version` field.\nIt automatically follows the behavior of the index or delete operation based on the `_version` mapping.\nIt also support the `version_type`.\n\n**Routing**\n\nEach bulk item can include the routing value using the `routing` field.\nIt automatically follows the behavior of the index or delete operation based on the `_routing` mapping.\n\nNOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template.\n\n**Wait for active shards**\n\nWhen making bulk calls, you can set the `wait_for_active_shards` parameter to require a minimum number of shard copies to be active before starting to process the bulk request.\n\n**Refresh**\n\nControl when the changes made by this request are visible to search.\n\nNOTE: Only the shards that receive the bulk request will be affected by refresh.\nImagine a `_bulk?refresh=wait_for` request with three documents in it that happen to be routed to different shards in an index with five shards.\nThe request will only wait for those three shards to refresh.\nThe other two shards that make up the index do not participate in the `_bulk` request at all.", "docId": "docs-bulk", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk", "name": "bulk", "request": { "name": "Request", "namespace": "_global.bulk" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson" ], "response": { "name": "Response", "namespace": "_global.bulk" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "PUT" ], "path": "/_bulk" }, { "methods": [ "POST", "PUT" ], "path": "/{index}/_bulk" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Checks if the specified combination of method, API, parameters, and arbitrary capabilities are supported", "docUrl": "https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities", "name": "capabilities", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_capabilities" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get aliases.\n\nGet the cluster's index aliases, including filter and routing information.\nThis API does not return data stream aliases.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.", "docId": "cat-alias", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-aliases", "name": "cat.aliases", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "cat.aliases" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.aliases" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/aliases" }, { "methods": [ "GET" ], "path": "/_cat/aliases/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get shard allocation information.\n\nGet a snapshot of the number of shards allocated to each data node and their disk space.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.", "docId": "cat-allocation", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-allocation", "name": "cat.allocation", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.allocation" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.allocation" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/allocation" }, { "methods": [ "GET" ], "path": "/_cat/allocation/{node_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.1.0", "stability": "stable" } }, "description": "Get component templates.\n\nGet information about component templates in a cluster.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the get component template API.", "docId": "cat-component-templates", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-component-templates", "name": "cat.component_templates", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.component_templates" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.component_templates" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/component_templates" }, { "methods": [ "GET" ], "path": "/_cat/component_templates/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get a document count.\n\nGet quick access to a document count for a data stream, an index, or an entire cluster.\nThe document count only includes live documents, not deleted documents which have not yet been removed by the merge process.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the count API.", "docId": "cat-count", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-count", "name": "cat.count", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "cat.count" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.count" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/count" }, { "methods": [ "GET" ], "path": "/_cat/count/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get field data cache information.\n\nGet the amount of heap memory currently used by the field data cache on every data node in the cluster.\n\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the nodes stats API.", "docId": "cat-fielddata", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-fielddata", "name": "cat.fielddata", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.fielddata" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.fielddata" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/fielddata" }, { "methods": [ "GET" ], "path": "/_cat/fielddata/{fields}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get the cluster health status.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the cluster health API.\nThis API is often used to check malfunctioning clusters.\nTo help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:\n`HH:MM:SS`, which is human-readable but includes no date information;\n`Unix epoch time`, which is machine-sortable and includes date information.\nThe latter format is useful for cluster recoveries that take multiple days.\nYou can use the cat health API to verify cluster health across multiple nodes.\nYou also can use the API to track the recovery of a large cluster over a longer period of time.", "docId": "cat-health", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-health", "name": "cat.health", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.health" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.health" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/health" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get CAT help.\n\nGet help for the CAT APIs.", "docId": "cat", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat", "name": "cat.help", "request": { "name": "Request", "namespace": "cat.help" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.help" }, "responseMediaType": [ "text/plain" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get index information.\n\nGet high-level information about indices in a cluster, including backing indices for data streams.\n\nUse this request to get the following information for each index in a cluster:\n- shard count\n- document count\n- deleted document count\n- primary store size\n- total store size of all shards, including shard replicas\n\nThese metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.\nTo get an accurate count of Elasticsearch documents, use the cat count or count APIs.\n\nCAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use an index endpoint.", "docId": "cat-indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-indices", "name": "cat.indices", "privileges": { "cluster": [ "monitor" ], "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.indices" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.indices" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/indices" }, { "methods": [ "GET" ], "path": "/_cat/indices/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get master node information.\n\nGet information about the master node, including the ID, bound IP address, and name.\n\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "docId": "cat-master", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-master", "name": "cat.master", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.master" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.master" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/master" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Get data frame analytics jobs.\n\nGet configuration and usage information about data frame analytics jobs.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get data frame analytics jobs statistics API.", "docId": "cat-dfanalytics", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics", "name": "cat.ml_data_frame_analytics", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "cat.ml_data_frame_analytics" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.ml_data_frame_analytics" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/ml/data_frame/analytics" }, { "methods": [ "GET" ], "path": "/_cat/ml/data_frame/analytics/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Get datafeeds.\n\nGet configuration and usage information about datafeeds.\nThis API returns a maximum of 10,000 datafeeds.\nIf the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage`\ncluster privileges to use this API.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get datafeed statistics API.", "docId": "cat-datafeeds", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-datafeeds", "name": "cat.ml_datafeeds", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "cat.ml_datafeeds" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.ml_datafeeds" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/ml/datafeeds" }, { "methods": [ "GET" ], "path": "/_cat/ml/datafeeds/{datafeed_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Get anomaly detection jobs.\n\nGet configuration and usage information for anomaly detection jobs.\nThis API returns a maximum of 10,000 jobs.\nIf the Elasticsearch security features are enabled, you must have `monitor_ml`,\n`monitor`, `manage_ml`, or `manage` cluster privileges to use this API.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get anomaly detection job statistics API.", "docId": "cat-anomaly-detectors", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-jobs", "name": "cat.ml_jobs", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "cat.ml_jobs" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.ml_jobs" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/ml/anomaly_detectors" }, { "methods": [ "GET" ], "path": "/_cat/ml/anomaly_detectors/{job_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Get trained models.\n\nGet configuration and usage information about inference trained models.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get trained models statistics API.", "docId": "cat-trained-model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-trained-models", "name": "cat.ml_trained_models", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "cat.ml_trained_models" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.ml_trained_models" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/ml/trained_models" }, { "methods": [ "GET" ], "path": "/_cat/ml/trained_models/{model_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get node attribute information.\n\nGet information about custom node attributes.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "docId": "cat-nodeattrs", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodeattrs", "name": "cat.nodeattrs", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.nodeattrs" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.nodeattrs" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/nodeattrs" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get node information.\n\nGet information about the nodes in a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "docId": "cat-nodes", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodes", "name": "cat.nodes", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.nodes" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.nodes" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/nodes" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get pending task information.\n\nGet information about cluster-level changes that have not yet taken effect.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.", "docId": "cat-pending-tasks", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-pending-tasks", "name": "cat.pending_tasks", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.pending_tasks" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.pending_tasks" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/pending_tasks" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get plugin information.\n\nGet a list of plugins running on each node of a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "docId": "cat-plugins", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-plugins", "name": "cat.plugins", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.plugins" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.plugins" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/plugins" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get shard recovery information.\n\nGet information about ongoing and completed shard recoveries.\nShard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing.\nFor data streams, the API returns information about the stream’s backing indices.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.", "docId": "cat-recovery", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-recovery", "name": "cat.recovery", "privileges": { "cluster": [ "monitor" ], "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.recovery" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.recovery" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/recovery" }, { "methods": [ "GET" ], "path": "/_cat/recovery/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "2.1.0", "stability": "stable" } }, "description": "Get snapshot repository information.\n\nGet a list of snapshot repositories for a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.", "docId": "cat-repositories", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-repositories", "name": "cat.repositories", "privileges": { "cluster": [ "monitor_snapshot" ] }, "request": { "name": "Request", "namespace": "cat.repositories" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.repositories" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/repositories" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get segment information.\n\nGet low-level information about the Lucene segments in index shards.\nFor data streams, the API returns information about the backing indices.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.", "docId": "cat-segments", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-segments", "name": "cat.segments", "privileges": { "cluster": [ "monitor" ], "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.segments" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.segments" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/segments" }, { "methods": [ "GET" ], "path": "/_cat/segments/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get shard information.\n\nGet information about the shards in a cluster.\nFor data streams, the API returns information about the backing indices.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.", "docId": "cat-shards", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-shards", "name": "cat.shards", "privileges": { "cluster": [ "monitor" ], "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.shards" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.shards" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/shards" }, { "methods": [ "GET" ], "path": "/_cat/shards/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "2.1.0", "stability": "stable" } }, "description": "Get snapshot information.\n\nGet information about the snapshots stored in one or more repositories.\nA snapshot is a backup of an index or running Elasticsearch cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.", "docId": "cat-snapshots", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-snapshots", "name": "cat.snapshots", "privileges": { "cluster": [ "monitor_snapshot" ] }, "request": { "name": "Request", "namespace": "cat.snapshots" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.snapshots" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/snapshots" }, { "methods": [ "GET" ], "path": "/_cat/snapshots/{repository}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "5.0.0", "stability": "experimental" } }, "description": "Get task information.\n\nGet information about tasks currently running in the cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.", "docId": "cat-tasks", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-tasks", "name": "cat.tasks", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.tasks" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.tasks" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/tasks" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.2.0", "stability": "stable" } }, "description": "Get index template information.\n\nGet information about the index templates in a cluster.\nYou can use index templates to apply index settings and field mappings to new indices at creation.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.", "docId": "cat-templates", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-templates", "name": "cat.templates", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.templates" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.templates" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/templates" }, { "methods": [ "GET" ], "path": "/_cat/templates/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get thread pool statistics.\n\nGet thread pool statistics for each node in a cluster.\nReturned information includes all built-in thread pools and custom thread pools.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "docId": "cat-thread-pool", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-thread-pool", "name": "cat.thread_pool", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cat.thread_pool" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.thread_pool" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/thread_pool" }, { "methods": [ "GET" ], "path": "/_cat/thread_pool/{thread_pool_patterns}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Get transform information.\n\nGet configuration and usage information about transforms.\n\nCAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get transform statistics API.", "docId": "cat-transforms", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-transforms", "name": "cat.transforms", "privileges": { "cluster": [ "monitor_transform" ] }, "request": { "name": "Request", "namespace": "cat.transforms" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cat.transforms" }, "responseMediaType": [ "text/plain", "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cat/transforms" }, { "methods": [ "GET" ], "path": "/_cat/transforms/{transform_id}" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Delete auto-follow patterns.\n\nDelete a collection of cross-cluster replication auto-follow patterns.", "docId": "ccr-delete-auto-follow-pattern", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-delete-auto-follow-pattern", "extDocId": "ccr-auto-follow", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication/manage-auto-follow-patterns", "name": "ccr.delete_auto_follow_pattern", "privileges": { "cluster": [ "manage_ccr" ] }, "request": { "name": "Request", "namespace": "ccr.delete_auto_follow_pattern" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.delete_auto_follow_pattern" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ccr/auto_follow/{name}" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Create a follower.\nCreate a cross-cluster replication follower index that follows a specific leader index.\nWhen the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.", "docId": "ccr-put-follow", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow", "name": "ccr.follow", "request": { "name": "Request", "namespace": "ccr.follow" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ccr.follow" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/{index}/_ccr/follow" } ] }, { "availability": { "stack": { "since": "6.7.0", "stability": "stable" } }, "description": "Get follower information.\n\nGet information about all cross-cluster replication follower indices.\nFor example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused.", "docId": "ccr-get-follow-info", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow-info", "extDocId": "ccr", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication", "name": "ccr.follow_info", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "ccr.follow_info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.follow_info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_ccr/info" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Get follower stats.\n\nGet cross-cluster replication follower stats.\nThe API returns shard-level stats about the \"following tasks\" associated with each shard for the specified indices.", "docId": "ccr-get-follow-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow-stats", "extDocId": "ccr", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication", "name": "ccr.follow_stats", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "ccr.follow_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.follow_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_ccr/stats" } ] }, { "availability": { "stack": { "since": "6.7.0", "stability": "stable" } }, "description": "Forget a follower.\nRemove the cross-cluster replication follower retention leases from the leader.\n\nA following index takes out retention leases on its leader index.\nThese leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication.\nWhen a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed.\nHowever, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable.\nWhile the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index.\nThis API exists to enable manually removing the leases when the unfollow API is unable to do so.\n\nNOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader.\nThe only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked.", "docId": "ccr-post-forget-follower", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-forget-follower", "extDocId": "ccr", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication", "name": "ccr.forget_follower", "request": { "name": "Request", "namespace": "ccr.forget_follower" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ccr.forget_follower" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_ccr/forget_follower" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Get auto-follow patterns.\n\nGet cross-cluster replication auto-follow patterns.", "docId": "ccr-get-auto-follow-pattern", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-get-auto-follow-pattern-1", "extDocId": "ccr-auto-follow", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication/manage-auto-follow-patterns", "name": "ccr.get_auto_follow_pattern", "privileges": { "cluster": [ "manage_ccr" ] }, "request": { "name": "Request", "namespace": "ccr.get_auto_follow_pattern" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.get_auto_follow_pattern" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ccr/auto_follow" }, { "methods": [ "GET" ], "path": "/_ccr/auto_follow/{name}" } ] }, { "availability": { "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Pause an auto-follow pattern.\n\nPause a cross-cluster replication auto-follow pattern.\nWhen the API returns, the auto-follow pattern is inactive.\nNew indices that are created on the remote cluster and match the auto-follow patterns are ignored.\n\nYou can resume auto-following with the resume auto-follow pattern API.\nWhen it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns.\nRemote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim.", "docId": "ccr-pause-auto-follow-pattern", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-pause-auto-follow-pattern", "extDocId": "ccr-auto-follow", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication/manage-auto-follow-patterns", "name": "ccr.pause_auto_follow_pattern", "privileges": { "cluster": [ "manage_ccr" ] }, "request": { "name": "Request", "namespace": "ccr.pause_auto_follow_pattern" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.pause_auto_follow_pattern" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ccr/auto_follow/{name}/pause" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Pause a follower.\n\nPause a cross-cluster replication follower index.\nThe follower index will not fetch any additional operations from the leader index.\nYou can resume following with the resume follower API.\nYou can pause and resume a follower index to change the configuration of the following task.", "docId": "ccr-post-pause-follow", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-pause-follow", "name": "ccr.pause_follow", "privileges": { "cluster": [ "manage_ccr" ] }, "request": { "name": "Request", "namespace": "ccr.pause_follow" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.pause_follow" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_ccr/pause_follow" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Create or update auto-follow patterns.\nCreate a collection of cross-cluster replication auto-follow patterns for a remote cluster.\nNewly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices.\nIndices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern.\n\nThis API can also be used to update auto-follow patterns.\nNOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns.", "docId": "ccr-put-auto-follow-pattern", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-put-auto-follow-pattern", "extDocId": "ccr-auto-follow", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication/manage-auto-follow-patterns", "name": "ccr.put_auto_follow_pattern", "request": { "name": "Request", "namespace": "ccr.put_auto_follow_pattern" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ccr.put_auto_follow_pattern" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ccr/auto_follow/{name}" } ] }, { "availability": { "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Resume an auto-follow pattern.\n\nResume a cross-cluster replication auto-follow pattern that was paused.\nThe auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster.\nRemote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim.", "docId": "ccr-resume-auto-follow-pattern", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-auto-follow-pattern", "extDocId": "ccr-auto-follow", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication/manage-auto-follow-patterns", "name": "ccr.resume_auto_follow_pattern", "privileges": { "cluster": [ "manage_ccr" ] }, "request": { "name": "Request", "namespace": "ccr.resume_auto_follow_pattern" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.resume_auto_follow_pattern" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ccr/auto_follow/{name}/resume" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Resume a follower.\nResume a cross-cluster replication follower index that was paused.\nThe follower index could have been paused with the pause follower API.\nAlternatively it could be paused due to replication that cannot be retried due to failures during following tasks.\nWhen this API returns, the follower index will resume fetching operations from the leader index.", "docId": "ccr-post-resume-follow", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-follow", "extDocId": "ccr", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication", "name": "ccr.resume_follow", "request": { "name": "Request", "namespace": "ccr.resume_follow" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ccr.resume_follow" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_ccr/resume_follow" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Get cross-cluster replication stats.\n\nThis API returns stats about auto-following and the same shard-level stats as the get follower stats API.", "docId": "ccr-get-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-stats", "name": "ccr.stats", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "ccr.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ccr/stats" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Unfollow an index.\n\nConvert a cross-cluster replication follower index to a regular index.\nThe API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.\nThe follower index must be paused and closed before you call the unfollow API.\n\n> info\n> Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation.", "docId": "ccr-post-unfollow", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-unfollow", "extDocId": "ccr", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/cross-cluster-replication", "name": "ccr.unfollow", "privileges": { "index": [ "manage_follow_index" ] }, "request": { "name": "Request", "namespace": "ccr.unfollow" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ccr.unfollow" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_ccr/unfollow" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Clear a scrolling search.\nClear the search context and results for a scrolling search.", "docId": "clear-scroll-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-clear-scroll", "extDocId": "scroll-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "clear_scroll", "request": { "name": "Request", "namespace": "_global.clear_scroll" }, "requestBodyRequired": false, "requestMediaType": [ "application/json", "text/plain" ], "response": { "name": "Response", "namespace": "_global.clear_scroll" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_search/scroll" }, { "deprecation": { "description": "A scroll id can be quite large and should be specified as part of the body", "version": "7.0.0" }, "methods": [ "DELETE" ], "path": "/_search/scroll/{scroll_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Close a point in time.\nA point in time must be opened explicitly before being used in search requests.\nThe `keep_alive` parameter tells Elasticsearch how long it should persist.\nA point in time is automatically closed when the `keep_alive` period has elapsed.\nHowever, keeping points in time has a cost; close them as soon as they are no longer required for search requests.", "docId": "point-in-time-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time", "name": "close_point_in_time", "request": { "name": "Request", "namespace": "_global.close_point_in_time" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.close_point_in_time" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_pit" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Explain the shard allocations.\nGet explanations for shard allocations in the cluster.\nFor unassigned shards, it provides an explanation for why the shard is unassigned.\nFor assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.\nThis API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.", "docId": "cluster-allocation-explain", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-allocation-explain", "name": "cluster.allocation_explain", "request": { "name": "Request", "namespace": "cluster.allocation_explain" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "cluster.allocation_explain" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_cluster/allocation/explain" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.8.0", "stability": "stable" } }, "description": "Delete component templates.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.", "docId": "indices-component-template", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template", "name": "cluster.delete_component_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "cluster.delete_component_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.delete_component_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_component_template/{name}" } ] }, { "availability": { "stack": { "since": "7.0.0", "stability": "stable" } }, "description": "Clear cluster voting config exclusions.\nRemove master-eligible nodes from the voting configuration exclusion list.", "docId": "voting-config-exclusions", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions", "extDocId": "add-nodes", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/maintenance/add-and-remove-elasticsearch-nodes", "name": "cluster.delete_voting_config_exclusions", "request": { "name": "Request", "namespace": "cluster.delete_voting_config_exclusions" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.delete_voting_config_exclusions" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_cluster/voting_config_exclusions" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.8.0", "stability": "stable" } }, "description": "Check component templates.\nReturns information about whether a particular component template exists.", "docId": "indices-component-template", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template", "name": "cluster.exists_component_template", "request": { "name": "Request", "namespace": "cluster.exists_component_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.exists_component_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/_component_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.8.0", "stability": "stable" } }, "description": "Get component templates.\nGet information about component templates.", "docId": "indices-component-template", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template", "name": "cluster.get_component_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "cluster.get_component_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.get_component_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_component_template" }, { "methods": [ "GET" ], "path": "/_component_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get cluster-wide settings.\nBy default, it returns only settings that have been explicitly defined.", "docId": "cluster-get-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-get-settings", "name": "cluster.get_settings", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cluster.get_settings" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.get_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cluster/settings" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Get the cluster health status.\n\nYou can also use the API to get the health status of only specified data streams and indices.\nFor data streams, the API retrieves the health status of the stream’s backing indices.\n\nThe cluster health status is: green, yellow or red.\nOn the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated.\nThe index level status is controlled by the worst shard status.\n\nOne of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level.\nThe cluster status is controlled by the worst index status.", "docId": "cluster-health", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-health", "name": "cluster.health", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "cluster.health" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.health" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cluster/health" }, { "methods": [ "GET" ], "path": "/_cluster/health/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.9.0", "stability": "stable" } }, "description": "Get cluster info.\nReturns basic information about the cluster.", "docId": "cluster-info", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-info", "name": "cluster.info", "request": { "name": "Request", "namespace": "cluster.info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_info/{target}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get the pending cluster tasks.\nGet information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.\n\nNOTE: This API returns a list of any pending updates to the cluster state.\nThese are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.\nHowever, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.", "docId": "cluster-pending", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-pending-tasks", "name": "cluster.pending_tasks", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cluster.pending_tasks" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.pending_tasks" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cluster/pending_tasks" } ] }, { "availability": { "stack": { "since": "7.0.0", "stability": "stable" } }, "description": "Update voting configuration exclusions.\nUpdate the cluster voting config exclusions by node IDs or node names.\nBy default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks.\nIf you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually.\nThe API adds an entry for each specified node to the cluster’s voting configuration exclusions list.\nIt then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes.\n\nClusters should have no voting configuration exclusions in normal operation.\nOnce the excluded nodes have stopped, clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`.\nThis API waits for the nodes to be fully removed from the cluster before it returns.\nIf your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false` to clear the voting configuration exclusions without waiting for the nodes to leave the cluster.\n\nA response to `POST /_cluster/voting_config_exclusions` with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`.\nIf the call to `POST /_cluster/voting_config_exclusions` fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration.\nIn that case, you may safely retry the call.\n\nNOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period.\nThey are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.", "docId": "voting-config-exclusions", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions", "extDocId": "add-nodes", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/maintenance/add-and-remove-elasticsearch-nodes", "name": "cluster.post_voting_config_exclusions", "request": { "name": "Request", "namespace": "cluster.post_voting_config_exclusions" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.post_voting_config_exclusions" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_cluster/voting_config_exclusions" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.8.0", "stability": "stable" } }, "description": "Create or update a component template.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.\n\nAn index template can be composed of multiple component templates.\nTo use a component template, specify it in an index template’s `composed_of` list.\nComponent templates are only applied to new data streams and indices as part of a matching index template.\n\nSettings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template.\n\nComponent templates are only used during index creation.\nFor data streams, this includes data stream creation and the creation of a stream’s backing indices.\nChanges to component templates do not affect existing indices, including a stream’s backing indices.\n\nYou can use C-style `/* *\\/` block comments in component templates.\nYou can include comments anywhere in the request body except before the opening curly bracket.\n\n**Applying component templates**\n\nYou cannot directly apply a component template to a data stream or index.\nTo be applied, a component template must be included in an index template's `composed_of` list.", "docId": "indices-component-template", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template", "name": "cluster.put_component_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "cluster.put_component_template" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "cluster.put_component_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_component_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Update the cluster settings.\n\nConfigure and update dynamic settings on a running cluster.\nYou can also configure dynamic settings locally on an unstarted or shut down node in `elasticsearch.yml`.\n\nUpdates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart.\nYou can also reset transient or persistent settings by assigning them a null value.\n\nIf you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) `elasticsearch.yml` setting; 4) Default setting value.\nFor example, you can apply a transient setting to override a persistent setting or `elasticsearch.yml` setting.\nHowever, a change to an `elasticsearch.yml` setting will not override a defined transient or persistent setting.\n\nTIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster.\nIf you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings.\nOnly use `elasticsearch.yml` for static cluster settings and node settings.\nThe API doesn’t require a restart and ensures a setting’s value is the same on all nodes.\n\nWARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead.\nIf a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.", "docId": "cluster-update-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings", "name": "cluster.put_settings", "request": { "name": "Request", "namespace": "cluster.put_settings" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "cluster.put_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_cluster/settings" } ] }, { "availability": { "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Get remote cluster information.\n\nGet information about configured remote clusters.\nThe API returns connection and endpoint information keyed by the configured remote cluster alias.\n\n> info\n> This API returns information that reflects current state on the local cluster.\n> The `connected` field does not necessarily reflect whether a remote cluster is down or unavailable, only whether there is currently an open connection to it.\n> Elasticsearch does not spontaneously try to reconnect to a disconnected remote cluster.\n> To trigger a reconnection, attempt a cross-cluster search, ES|QL cross-cluster search, or try the [resolve cluster endpoint](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster).", "docId": "cluster-remote-info", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-remote-info", "extDocId": "modules-cross-cluster-search", "extDocUrl": "https://www.elastic.co/docs/solutions/search/cross-cluster-search", "name": "cluster.remote_info", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cluster.remote_info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.remote_info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_remote/info" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Reroute the cluster.\nManually change the allocation of individual shards in the cluster.\nFor example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node.\n\nIt is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as `cluster.routing.rebalance.enable`) in order to remain in a balanced state.\nFor example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out.\n\nThe cluster can be set to disable allocations using the `cluster.routing.allocation.enable` setting.\nIf allocations are disabled then the only allocations that will be performed are explicit ones given using the reroute command, and consequent allocations due to rebalancing.\n\nThe cluster will attempt to allocate a shard a maximum of `index.allocation.max_retries` times in a row (defaults to `5`), before giving up and leaving the shard unallocated.\nThis scenario can be caused by structural problems such as having an analyzer which refers to a stopwords file which doesn’t exist on all nodes.\n\nOnce the problem has been corrected, allocation can be manually retried by calling the reroute API with the `?retry_failed` URI query parameter, which will attempt a single retry round for these shards.", "docId": "cluster-reroute", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-reroute", "name": "cluster.reroute", "request": { "name": "Request", "namespace": "cluster.reroute" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "cluster.reroute" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_cluster/reroute" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Get the cluster state.\nGet comprehensive information about the state of the cluster.\n\nThe cluster state is an internal data structure which keeps track of a variety of information needed by every node, including the identity and attributes of the other nodes in the cluster; cluster-wide settings; index metadata, including the mapping and settings for each index; the location and status of every shard copy in the cluster.\n\nThe elected master node ensures that every node in the cluster has a copy of the same cluster state.\nThis API lets you retrieve a representation of this internal state for debugging or diagnostic purposes.\nYou may need to consult the Elasticsearch source code to determine the precise meaning of the response.\n\nBy default the API will route requests to the elected master node since this node is the authoritative source of cluster states.\nYou can also retrieve the cluster state held on the node handling the API request by adding the `?local=true` query parameter.\n\nElasticsearch may need to expend significant effort to compute a response to this API in larger clusters, and the response may comprise a very large quantity of data.\nIf you use this API repeatedly, your cluster may become unstable.\n\nWARNING: The response is a representation of an internal data structure.\nIts format is not subject to the same compatibility guarantees as other more stable APIs and may change from version to version.\nDo not query this API using external monitoring tools.\nInstead, obtain the information you require using other more stable cluster APIs.", "docId": "cluster-state", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-state", "name": "cluster.state", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "cluster.state" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.state" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cluster/state" }, { "methods": [ "GET" ], "path": "/_cluster/state/{metric}" }, { "methods": [ "GET" ], "path": "/_cluster/state/{metric}/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Get cluster statistics.\nGet basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).", "docId": "cluster-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-stats", "name": "cluster.stats", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "cluster.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "cluster.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_cluster/stats" }, { "methods": [ "GET" ], "path": "/_cluster/stats/nodes/{node_id}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "experimental" } }, "description": "Check in a connector.\n\nUpdate the `last_seen` field in the connector and set it to the current timestamp.", "docId": "connector-checkin", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-check-in", "name": "connector.check_in", "request": { "name": "Request", "namespace": "connector.check_in" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.check_in" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_check_in" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Delete a connector.\n\nRemoves a connector and associated sync jobs.\nThis is a destructive action that is not recoverable.\nNOTE: This action doesn’t delete any API keys, ingest pipelines, or data indices associated with the connector.\nThese need to be removed manually.", "docId": "connector-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-delete", "name": "connector.delete", "request": { "name": "Request", "namespace": "connector.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_connector/{connector_id}" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Get a connector.\n\nGet the details about a connector.", "docId": "connector-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-get", "name": "connector.get", "request": { "name": "Request", "namespace": "connector.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_connector/{connector_id}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "8.12.0", "stability": "experimental", "visibility": "private" } }, "description": "Update the connector last sync stats.\n\nUpdate the fields related to the last sync of a connector.\nThis action is used for analytics and monitoring.", "docId": "connector-last-sync", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-last-sync", "name": "connector.last_sync", "request": { "name": "Request", "namespace": "connector.last_sync" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.last_sync" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_last_sync" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Get all connectors.\n\nGet information about all connectors.", "docId": "connector-list", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-list", "name": "connector.list", "request": { "name": "Request", "namespace": "connector.list" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.list" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_connector" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Create a connector.\n\nConnectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure.\nElastic managed connectors (Native connectors) are a managed service on Elastic Cloud.\nSelf-managed connectors (Connector clients) are self-managed on your infrastructure.", "docId": "connector-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-put", "name": "connector.post", "request": { "name": "Request", "namespace": "connector.post" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.post" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_connector" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Create or update a connector.", "docId": "connector-put", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-put", "name": "connector.put", "request": { "name": "Request", "namespace": "connector.put" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.put" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}" }, { "methods": [ "PUT" ], "path": "/_connector" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Deletes a connector secret.", "docUrl": null, "name": "connector.secret_delete", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_connector/_secret/{id}" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Retrieves a secret stored by Connectors.", "docUrl": null, "name": "connector.secret_get", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_connector/_secret/{id}" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Creates a secret for a Connector.", "docUrl": null, "name": "connector.secret_post", "request": null, "requestBodyRequired": true, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_connector/_secret" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Creates or updates a secret for a Connector.", "docUrl": null, "name": "connector.secret_put", "request": null, "requestBodyRequired": true, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/_secret/{id}" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Cancel a connector sync job.\n\nCancel a connector sync job, which sets the status to cancelling and updates `cancellation_requested_at` to the current time.\nThe connector service is then responsible for setting the status of connector sync jobs to cancelled.", "docId": "connector-sync-job-cancel", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-cancel", "name": "connector.sync_job_cancel", "request": { "name": "Request", "namespace": "connector.sync_job_cancel" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.sync_job_cancel" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/_sync_job/{connector_sync_job_id}/_cancel" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "description": "Check in a connector sync job.\nCheck in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "docId": "connector-sync-job-checkin", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-check-in", "name": "connector.sync_job_check_in", "request": { "name": "Request", "namespace": "connector.sync_job_check_in" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.sync_job_check_in" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/_sync_job/{connector_sync_job_id}/_check_in" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "description": "Claim a connector sync job.\nThis action updates the job status to `in_progress` and sets the `last_seen` and `started_at` timestamps to the current time.\nAdditionally, it can set the `sync_cursor` property for the sync job.\n\nThis API is not intended for direct connector management by users.\nIt supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "docId": "connector-sync-job-claim", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-claim", "name": "connector.sync_job_claim", "request": { "name": "Request", "namespace": "connector.sync_job_claim" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.sync_job_claim" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/_sync_job/{connector_sync_job_id}/_claim" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Delete a connector sync job.\n\nRemove a connector sync job and its associated data.\nThis is a destructive action that is not recoverable.", "docId": "connector-sync-job-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-delete", "name": "connector.sync_job_delete", "request": { "name": "Request", "namespace": "connector.sync_job_delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.sync_job_delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_connector/_sync_job/{connector_sync_job_id}" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "description": "Set a connector sync job error.\nSet the `error` field for a connector sync job and set its `status` to `error`.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "docId": "connector-sync-job-error", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-error", "name": "connector.sync_job_error", "request": { "name": "Request", "namespace": "connector.sync_job_error" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.sync_job_error" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/_sync_job/{connector_sync_job_id}/_error" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Get a connector sync job.", "docId": "connector-sync-job-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-get", "name": "connector.sync_job_get", "request": { "name": "Request", "namespace": "connector.sync_job_get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.sync_job_get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_connector/_sync_job/{connector_sync_job_id}" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Get all connector sync jobs.\n\nGet information about all stored connector sync jobs listed by their creation date in ascending order.", "docId": "connector-sync-job-list", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-list", "name": "connector.sync_job_list", "request": { "name": "Request", "namespace": "connector.sync_job_list" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "connector.sync_job_list" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_connector/_sync_job" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Create a connector sync job.\n\nCreate a connector sync job document in the internal index and initialize its counters and timestamps with default values.", "docId": "connector-sync-job-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-post", "name": "connector.sync_job_post", "request": { "name": "Request", "namespace": "connector.sync_job_post" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.sync_job_post" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_connector/_sync_job" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "description": "Set the connector sync job stats.\nStats include: `deleted_document_count`, `indexed_document_count`, `indexed_document_volume`, and `total_document_count`.\nYou can also update `last_seen`.\nThis API is mainly used by the connector service for updating sync job information.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "docId": "connector-sync-job-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-update-stats", "name": "connector.sync_job_update_stats", "request": { "name": "Request", "namespace": "connector.sync_job_update_stats" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.sync_job_update_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/_sync_job/{connector_sync_job_id}/_stats" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "experimental" } }, "description": "Activate the connector draft filter.\n\nActivates the valid draft filtering for a connector.", "docId": "connector-update-filtering", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering", "name": "connector.update_active_filtering", "request": { "name": "Request", "namespace": "connector.update_active_filtering" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_active_filtering" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_filtering/_activate" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector API key ID.\n\nUpdate the `api_key_id` and `api_key_secret_id` fields of a connector.\nYou can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored.\nThe connector secret ID is required only for Elastic managed (native) connectors.\nSelf-managed connectors (connector clients) do not use this field.", "docId": "connector-update-api-key-id", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-api-key-id", "name": "connector.update_api_key_id", "request": { "name": "Request", "namespace": "connector.update_api_key_id" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_api_key_id" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_api_key_id" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector configuration.\n\nUpdate the configuration field in the connector document.", "docId": "connector-configuration", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-configuration", "name": "connector.update_configuration", "request": { "name": "Request", "namespace": "connector.update_configuration" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_configuration" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_configuration" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "experimental" } }, "description": "Update the connector error field.\n\nSet the error field for the connector.\nIf the error provided in the request body is non-null, the connector’s status is updated to error.\nOtherwise, if the error is reset to null, the connector status is updated to connected.", "docId": "connector-update-error", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-error", "name": "connector.update_error", "request": { "name": "Request", "namespace": "connector.update_error" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_error" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_error" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "description": "Update the connector features.\nUpdate the connector features in the connector document.\nThis API can be used to control the following aspects of a connector:\n\n* document-level security\n* incremental syncs\n* advanced sync rules\n* basic sync rules\n\nNormally, the running connector service automatically manages these features.\nHowever, you can use this API to override the default behavior.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "docId": "connector-features", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-features", "name": "connector.update_features", "request": { "name": "Request", "namespace": "connector.update_features" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_features" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_features" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector filtering.\n\nUpdate the draft filtering configuration of a connector and marks the draft validation state as edited.\nThe filtering draft is activated once validated by the running Elastic connector service.\nThe filtering property is used to configure sync rules (both basic and advanced) for a connector.", "docId": "connector-update-filtering", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering", "name": "connector.update_filtering", "request": { "name": "Request", "namespace": "connector.update_filtering" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_filtering" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_filtering" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "experimental" } }, "description": "Update the connector draft filtering validation.\n\nUpdate the draft filtering validation info for a connector.", "docId": "connector-update-filtering-validation", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering-validation", "name": "connector.update_filtering_validation", "request": { "name": "Request", "namespace": "connector.update_filtering_validation" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_filtering_validation" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_filtering/_validation" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector index name.\n\nUpdate the `index_name` field of a connector, specifying the index where the data ingested by the connector is stored.", "docId": "connector-update-index-name", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-index-name", "name": "connector.update_index_name", "request": { "name": "Request", "namespace": "connector.update_index_name" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_index_name" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_index_name" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector name and description.", "docId": "connector-update-name", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-name", "name": "connector.update_name", "request": { "name": "Request", "namespace": "connector.update_name" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_name" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_name" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector is_native flag.", "docId": "connector-update-native", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-native", "name": "connector.update_native", "request": { "name": "Request", "namespace": "connector.update_native" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_native" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_native" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector pipeline.\n\nWhen you create a new connector, the configuration of an ingest pipeline is populated with default settings.", "docId": "connector-update-pipeline", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-pipeline", "name": "connector.update_pipeline", "request": { "name": "Request", "namespace": "connector.update_pipeline" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_pipeline" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector scheduling.", "docId": "connector-update-scheduling", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-scheduling", "name": "connector.update_scheduling", "request": { "name": "Request", "namespace": "connector.update_scheduling" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_scheduling" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_scheduling" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "beta" } }, "description": "Update the connector service type.", "docId": "connector-update-service-type", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-service-type", "name": "connector.update_service_type", "request": { "name": "Request", "namespace": "connector.update_service_type" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_service_type" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_service_type" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "experimental" } }, "description": "Update the connector status.", "docId": "connector-update-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-status", "name": "connector.update_status", "request": { "name": "Request", "namespace": "connector.update_status" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "connector.update_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_connector/{connector_id}/_status" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Count search results.\nGet the number of documents matching a query.\n\nThe query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body.\nThe query is optional. When no query is provided, the API uses `match_all` to count all the documents.\n\nThe count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices.\n\nThe operation is broadcast across all shards.\nFor each shard ID group, a replica is chosen and the search is run against it.\nThis means that replicas increase the scalability of the count.", "docId": "search-count", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-count", "name": "count", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.count" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.count" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "GET" ], "path": "/_count" }, { "methods": [ "POST", "GET" ], "path": "/{index}/_count" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Create a new document in the index.\n\nYou can index a new JSON document with the `//_doc/` or `//_create/<_id>` APIs\nUsing `_create` guarantees that the document is indexed only if it does not already exist.\nIt returns a 409 response when a document with a same ID already exists in the index.\nTo update an existing document, you must use the `//_doc/` API.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:\n\n* To add a document using the `PUT //_create/<_id>` or `POST //_create/<_id>` request formats, you must have the `create_doc`, `create`, `index`, or `write` index privilege.\n* To automatically create a data stream or index with this API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege.\n\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\n**Automatically create data streams and indices**\n\nIf the request's target doesn't exist and matches an index template with a `data_stream` definition, the index operation automatically creates the data stream.\n\nIf the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates.\n\nNOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation.\n\nIf no mapping exists, the index operation creates a dynamic mapping.\nBy default, new fields and objects are automatically added to the mapping if needed.\n\nAutomatic index creation is controlled by the `action.auto_create_index` setting.\nIf it is `true`, any index can be created automatically.\nYou can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to `false` to turn off automatic index creation entirely.\nSpecify a comma-separated list of patterns you want to allow or prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked.\nWhen a list is specified, the default behaviour is to disallow.\n\nNOTE: The `action.auto_create_index` setting affects the automatic creation of indices only.\nIt does not affect the creation of data streams.\n\n**Routing**\n\nBy default, shard placement — or routing — is controlled by using a hash of the document's ID value.\nFor more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the `routing` parameter.\n\nWhen setting up explicit mapping, you can also use the `_routing` field to direct the index operation to extract the routing value from the document itself.\nThis does come at the (very minimal) cost of an additional document parsing pass.\nIf the `_routing` mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted.\n\nNOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template.\n\n**Distributed**\n\nThe index operation is directed to the primary shard based on its route and performed on the actual node containing this shard.\nAfter the primary shard completes the operation, if needed, the update is distributed to applicable replicas.\n\n**Active shards**\n\nTo improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation.\nIf the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs.\nBy default, write operations only wait for the primary shards to be active before proceeding (that is to say `wait_for_active_shards` is `1`).\nThis default can be overridden in the index settings dynamically by setting `index.write.wait_for_active_shards`.\nTo alter this behavior per operation, use the `wait_for_active_shards request` parameter.\n\nValid values are all or any positive integer up to the total number of configured copies per shard in the index (which is `number_of_replicas`+1).\nSpecifying a negative value or a number greater than the number of shard copies will throw an error.\n\nFor example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes).\nIf you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding.\nThis means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data.\nIf `wait_for_active_shards` is set on the request to `3` (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding.\nThis requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard.\nHowever, if you set `wait_for_active_shards` to `all` (or to `4`, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index.\nThe operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard.\n\nIt is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts.\nAfter the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary.\nThe `_shards` section of the API response reveals the number of shard copies on which replication succeeded and failed.", "docId": "docs-index", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create", "extDocId": "data-streams", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/data-streams", "name": "create", "privileges": { "index": [ "create" ] }, "request": { "name": "Request", "namespace": "_global.create" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.create" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_create/{id}" } ] }, { "availability": { "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Delete a dangling index.\nIf Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.\nFor example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.", "docId": "dangling-index-delete", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-delete-dangling-index", "name": "dangling_indices.delete_dangling_index", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "dangling_indices.delete_dangling_index" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "dangling_indices.delete_dangling_index" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_dangling/{index_uuid}" } ] }, { "availability": { "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Import a dangling index.\n\nIf Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.\nFor example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.", "docId": "dangling-index-import", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-import-dangling-index", "name": "dangling_indices.import_dangling_index", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "dangling_indices.import_dangling_index" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "dangling_indices.import_dangling_index" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_dangling/{index_uuid}" } ] }, { "availability": { "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get the dangling indices.\n\nIf Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.\nFor example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.\n\nUse this API to list dangling indices, which you can then import or delete.", "docId": "dangling-indices-list", "docTag": "indices", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-list-dangling-indices", "name": "dangling_indices.list_dangling_indices", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "dangling_indices.list_dangling_indices" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "dangling_indices.list_dangling_indices" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_dangling" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Delete a document.\n\nRemove a JSON document from the specified index.\n\nNOTE: You cannot send deletion requests directly to a data stream.\nTo delete a document in a data stream, you must target the backing index containing the document.\n\n**Optimistic concurrency control**\n\nDelete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the `if_seq_no` and `if_primary_term` parameters.\nIf a mismatch is detected, the operation will result in a `VersionConflictException` and a status code of `409`.\n\n**Versioning**\n\nEach document indexed is versioned.\nWhen deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime.\nEvery write operation run on a document, deletes included, causes its version to be incremented.\nThe version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations.\nThe length of time for which a deleted document's version remains available is determined by the `index.gc_deletes` index setting.\n\n**Routing**\n\nIf routing is used during indexing, the routing value also needs to be specified to delete a document.\n\nIf the `_routing` mapping is set to `required` and no routing value is specified, the delete API throws a `RoutingMissingException` and rejects the request.\n\nFor example:\n\n```\nDELETE /my-index-000001/_doc/1?routing=shard-1\n```\n\nThis request deletes the document with ID 1, but it is routed based on the user.\nThe document is not deleted if the correct routing is not specified.\n\n**Distributed**\n\nThe delete operation gets hashed into a specific shard ID.\nIt then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group.", "docId": "docs-delete", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete", "name": "delete", "privileges": { "index": [ "delete" ] }, "request": { "name": "Request", "namespace": "_global.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/{index}/_doc/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Delete documents.\n\nDeletes documents that match the specified query.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias:\n\n* `read`\n* `delete` or `write`\n\nYou can specify the query criteria in the request URI or the request body using the same syntax as the search API.\nWhen you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning.\nIf a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails.\n\nNOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number.\n\nWhile processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete.\nA bulk delete request is performed for each batch of matching documents.\nIf a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off.\nIf the maximum retry limit is reached, processing halts and all failed requests are returned in the response.\nAny delete requests that completed successfully still stick, they are not rolled back.\n\nYou can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`.\nNote that if you opt to count version conflicts the operation could attempt to delete more documents from the source than `max_docs` until it has successfully deleted `max_docs documents`, or it has gone through every document in the source query.\n\n**Throttling delete requests**\n\nTo control the rate at which delete by query issues batches of delete operations, you can set `requests_per_second` to any positive decimal number.\nThis pads each batch with a wait time to throttle the rate.\nSet `requests_per_second` to `-1` to disable throttling.\n\nThrottling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account.\nThe padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing.\nBy default the batch size is `1000`, so if `requests_per_second` is set to `500`:\n\n```\ntarget_time = 1000 / 500 per second = 2 seconds\nwait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds\n```\n\nSince the batch is issued as a single `_bulk` request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set.\nThis is \"bursty\" instead of \"smooth\".\n\n**Slicing**\n\nDelete by query supports sliced scroll to parallelize the delete process.\nThis can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nSetting `slices` to `auto` lets Elasticsearch choose the number of slices to use.\nThis setting will use one slice per shard, up to a certain limit.\nIf there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards.\nAdding slices to the delete by query operation creates sub-requests which means it has some quirks:\n\n* You can see these requests in the tasks APIs. These sub-requests are \"child\" tasks of the task for the request with slices.\n* Fetching the status of the task for the request with slices only contains the status of completed slices.\n* These sub-requests are individually addressable for things like cancellation and rethrottling.\n* Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally.\n* Canceling the request with `slices` will cancel each sub-request.\n* Due to the nature of `slices` each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution.\n* Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being deleted.\n* Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time.\n\nIf you're slicing manually or otherwise tuning automatic slicing, keep in mind that:\n\n* Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many `slices` hurts performance. Setting `slices` higher than the number of shards generally does not improve efficiency and adds overhead.\n* Delete performance scales linearly across available resources with the number of slices.\n\nWhether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources.\n\n**Cancel a delete by query operation**\n\nAny delete by query can be canceled using the task cancel API. For example:\n\n```\nPOST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel\n```\n\nThe task ID can be found by using the get tasks API.\n\nCancellation should happen quickly but might take a few seconds.\nThe get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself.", "docId": "docs-delete-by-query", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query", "name": "delete_by_query", "privileges": { "index": [ "read", "delete" ] }, "request": { "name": "Request", "namespace": "_global.delete_by_query" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.delete_by_query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_delete_by_query" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Throttle a delete by query operation.\n\nChange the number of requests per second for a particular delete by query operation.\nRethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.", "docId": "docs-delete-by-query-rethrottle", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query-rethrottle", "name": "delete_by_query_rethrottle", "request": { "name": "Request", "namespace": "_global.delete_by_query_rethrottle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.delete_by_query_rethrottle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_delete_by_query/{task_id}/_rethrottle" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Delete a script or search template.\nDeletes a stored script or search template.", "docId": "script-delete", "docTag": "script", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-script", "name": "delete_script", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "_global.delete_script" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.delete_script" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_scripts/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Delete an enrich policy.\nDeletes an existing enrich policy and its enrich index.", "docId": "delete-enrich-policy-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-delete-policy", "name": "enrich.delete_policy", "request": { "name": "Request", "namespace": "enrich.delete_policy" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "enrich.delete_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_enrich/policy/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Run an enrich policy.\nCreate the enrich index for an existing enrich policy.", "docId": "execute-enrich-policy-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-execute-policy", "name": "enrich.execute_policy", "request": { "name": "Request", "namespace": "enrich.execute_policy" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "enrich.execute_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_enrich/policy/{name}/_execute" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Get an enrich policy.\nReturns information about an enrich policy.", "docId": "get-enrich-policy-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-get-policy", "name": "enrich.get_policy", "request": { "name": "Request", "namespace": "enrich.get_policy" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "enrich.get_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_enrich/policy/{name}" }, { "methods": [ "GET" ], "path": "/_enrich/policy" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Create an enrich policy.\nCreates an enrich policy.", "docId": "put-enrich-policy-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-put-policy", "name": "enrich.put_policy", "request": { "name": "Request", "namespace": "enrich.put_policy" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "enrich.put_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_enrich/policy/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Get enrich stats.\nReturns enrich coordinator statistics and information about enrich policies that are currently executing.", "docId": "enrich-stats-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-stats", "name": "enrich.stats", "request": { "name": "Request", "namespace": "enrich.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "enrich.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_enrich/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Delete an async EQL search.\nDelete an async EQL search or a stored synchronous EQL search.\nThe API also deletes results for the search.", "docId": "eql-async-search-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-delete", "name": "eql.delete", "request": { "name": "Request", "namespace": "eql.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "eql.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_eql/search/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get async EQL search results.\nGet the current status and available results for an async EQL search or a stored synchronous EQL search.", "docId": "eql-async-search-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-get", "name": "eql.get", "request": { "name": "Request", "namespace": "eql.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "eql.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_eql/search/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get the async EQL status.\nGet the current status for an async EQL search or a stored synchronous EQL search without returning results.", "docId": "eql-async-search-status-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-get-status", "name": "eql.get_status", "request": { "name": "Request", "namespace": "eql.get_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "eql.get_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_eql/search/status/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get EQL search results.\nReturns search results for an Event Query Language (EQL) query.\nEQL assumes each document in a data stream or index corresponds to an event.", "docId": "eql-search-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-search", "extDocId": "eql", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/eql", "name": "eql.search", "request": { "name": "Request", "namespace": "eql.search" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "eql.search" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_eql/search" } ] }, { "availability": { "stack": { "since": "8.13.0", "stability": "stable", "visibility": "public" } }, "description": "Run an async ES|QL query.\nAsynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available.\n\nThe API accepts the same parameters and request body as the synchronous query API, along with additional async related properties.", "docId": "esql-async-query", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query", "extDocId": "esql", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql", "name": "esql.async_query", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "esql.async_query" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "esql.async_query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_query/async" } ] }, { "availability": { "stack": { "since": "8.13.0", "stability": "stable", "visibility": "public" } }, "description": "Delete an async ES|QL query.\nIf the query is still running, it is cancelled.\nOtherwise, the stored results are deleted.\n\nIf the Elasticsearch security features are enabled, only the following users can use this API to delete a query:\n\n* The authenticated user that submitted the original query request\n* Users with the `cancel_task` cluster privilege", "docId": "esql-async-query-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-delete", "extDocId": "esql", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql", "name": "esql.async_query_delete", "request": { "name": "Request", "namespace": "esql.async_query_delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "esql.async_query_delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_query/async/{id}" } ] }, { "availability": { "stack": { "since": "8.13.0", "stability": "stable", "visibility": "public" } }, "description": "Get async ES|QL query results.\nGet the current status and available results or stored results for an ES|QL asynchronous query.\nIf the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API.", "docId": "esql-async-query-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-get", "extDocId": "esql", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql", "name": "esql.async_query_get", "request": { "name": "Request", "namespace": "esql.async_query_get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "esql.async_query_get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_query/async/{id}" } ] }, { "availability": { "stack": { "since": "8.18.0", "stability": "stable", "visibility": "public" } }, "description": "Stop async ES|QL query.\n\nThis API interrupts the query execution and returns the results so far.\nIf the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it.", "docId": "esql-async-query-stop", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-stop", "extDocId": "esql", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql", "name": "esql.async_query_stop", "request": { "name": "Request", "namespace": "esql.async_query_stop" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "esql.async_query_stop" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_query/async/{id}/stop" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "9.1.0", "stability": "experimental", "visibility": "public" } }, "description": "Get a specific running ES|QL query information.\nReturns an object extended information about a running ES|QL query.", "docUrl": null, "name": "esql.get_query", "privileges": { "cluster": [ "monitor_esql" ] }, "request": { "name": "Request", "namespace": "esql.get_query" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "esql.get_query" }, "responseMediaType": [], "urls": [ { "methods": [ "GET" ], "path": "/_query/queries/{id}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "9.1.0", "stability": "experimental", "visibility": "public" } }, "description": "Get running ES|QL queries information.\nReturns an object containing IDs and other information about the running ES|QL queries.", "docUrl": null, "name": "esql.list_queries", "privileges": { "cluster": [ "monitor_esql" ] }, "request": { "name": "Request", "namespace": "esql.list_queries" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "esql.list_queries" }, "responseMediaType": [], "urls": [ { "methods": [ "GET" ], "path": "/_query/queries" } ] }, { "availability": { "serverless": {}, "stack": { "since": "8.11.0" } }, "description": "Run an ES|QL query.\nGet search results for an ES|QL (Elasticsearch query language) query.", "docId": "esql-query", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest", "extDocId": "esql", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql", "name": "esql.query", "request": { "name": "Request", "namespace": "esql.query" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "esql.query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_query" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Check a document.\n\nVerify that a document exists.\nFor example, check to see if a document with the `_id` 0 exists:\n\n```\nHEAD my-index-000001/_doc/0\n```\n\nIf the document exists, the API returns a status code of `200 - OK`.\nIf the document doesn’t exist, the API returns `404 - Not Found`.\n\n**Versioning support**\n\nYou can use the `version` parameter to check the document only if its current version is equal to the specified one.\n\nInternally, Elasticsearch has marked the old document as deleted and added an entirely new document.\nThe old version of the document doesn't disappear immediately, although you won't be able to access it.\nElasticsearch cleans up deleted documents in the background as you continue to index more data.", "docId": "docs-get", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "exists", "request": { "name": "Request", "namespace": "_global.exists" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.exists" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/{index}/_doc/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Check for a document source.\n\nCheck whether a document source exists in an index.\nFor example:\n\n```\nHEAD my-index-000001/_source/1\n```\n\nA document's source is not available if it is disabled in the mapping.", "docId": "docs-get", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "extDocId": "mapping-source-field", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-source-field", "name": "exists_source", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.exists_source" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.exists_source" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/{index}/_source/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Explain a document match result.\nGet information about why a specific document matches, or doesn't match, a query.\nIt computes a score explanation for a query and a specific document.", "docId": "search-explain", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-explain", "name": "explain", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.explain" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.explain" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_explain/{id}" } ] }, { "availability": { "stack": { "since": "7.12.0", "stability": "stable" } }, "description": "Get the features.\nGet a list of features that can be included in snapshots using the `feature_states` field when creating a snapshot.\nYou can use this API to determine which feature states to include when taking a snapshot.\nBy default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not.\n\nA feature state includes one or more system indices necessary for a given feature to function.\nIn order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together.\n\nThe features listed by this API are a combination of built-in features and features defined by plugins.\nIn order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node.", "docId": "get-features-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-features-get-features", "extDocId": "snapshot-create", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/create-snapshots", "name": "features.get_features", "request": { "name": "Request", "namespace": "features.get_features" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "features.get_features" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_features" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.12.0", "stability": "experimental" } }, "description": "Reset the features.\nClear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices.\n\nWARNING: Intended for development and testing use only. Do not reset features on a production cluster.\n\nReturn a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features.\nThis deletes all state information stored in system indices.\n\nThe response code is HTTP 200 if the state is successfully reset for all features.\nIt is HTTP 500 if the reset operation failed for any feature.\n\nNote that select features might provide a way to reset particular system indices.\nUsing this API resets all features, both those that are built-in and implemented as plugins.\n\nTo list the features that will be affected, use the get features API.\n\nIMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes.", "docId": "features-reset", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-features-reset-features", "name": "features.reset_features", "request": { "name": "Request", "namespace": "features.reset_features" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "features.reset_features" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_features/_reset" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Get the field capabilities.\n\nGet information about the capabilities of fields among multiple indices.\n\nFor data streams, the API returns field capabilities among the stream’s backing indices.\nIt returns runtime fields like any other field.\nFor example, a runtime field with a type of keyword is returned the same as any other field that belongs to the `keyword` family.", "docId": "search-field-caps", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-field-caps", "name": "field_caps", "privileges": { "index": [ "view_index_metadata", "read" ] }, "request": { "name": "Request", "namespace": "_global.field_caps" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.field_caps" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_field_caps" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_field_caps" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Deletes a secret stored by Fleet.", "docUrl": null, "name": "fleet.delete_secret", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_fleet/secret/{id}" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Retrieves a secret stored by Fleet.", "docUrl": null, "name": "fleet.get_secret", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_fleet/secret/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Get global checkpoints.\n\nGet the current global checkpoints for an index.\nThis API is designed for internal use by the Fleet server project.", "docId": "get-global-checkpoints", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-fleet", "name": "fleet.global_checkpoints", "request": { "name": "Request", "namespace": "fleet.global_checkpoints" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "fleet.global_checkpoints" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_fleet/global_checkpoints" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.16.0", "stability": "experimental" } }, "description": "Run multiple Fleet searches.\nRun several Fleet searches with a single API request.\nThe API follows the same structure as the multi search API.\nHowever, similar to the Fleet search API, it supports the `wait_for_checkpoints` parameter.", "docId": "fleet-multi-search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-fleet-msearch", "name": "fleet.msearch", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "fleet.msearch" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson" ], "response": { "name": "Response", "namespace": "fleet.msearch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_fleet/_fleet_msearch" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_fleet/_fleet_msearch" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "private" } }, "description": "Creates a secret stored by Fleet.", "docUrl": null, "name": "fleet.post_secret", "request": null, "requestBodyRequired": true, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_fleet/secret" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.16.0", "stability": "experimental" } }, "description": "Run a Fleet search.\nThe purpose of the Fleet search API is to provide an API where the search will be run only\nafter the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.", "docId": "fleet-search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-fleet-search", "name": "fleet.search", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "fleet.search" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "fleet.search" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_fleet/_fleet_search" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get a document by its ID.\n\nGet a document and its source or stored fields from an index.\n\nBy default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search).\nIn the case where stored fields are requested with the `stored_fields` parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields.\nTo turn off realtime behavior, set the `realtime` parameter to false.\n\n**Source filtering**\n\nBy default, the API returns the contents of the `_source` field unless you have used the `stored_fields` parameter or the `_source` field is turned off.\nYou can turn off `_source` retrieval by using the `_source` parameter:\n\n```\nGET my-index-000001/_doc/0?_source=false\n```\n\nIf you only need one or two fields from the `_source`, use the `_source_includes` or `_source_excludes` parameters to include or filter out particular fields.\nThis can be helpful with large documents where partial retrieval can save on network overhead\nBoth parameters take a comma separated list of fields or wildcard expressions.\nFor example:\n\n```\nGET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities\n```\n\nIf you only want to specify includes, you can use a shorter notation:\n\n```\nGET my-index-000001/_doc/0?_source=*.id\n```\n\n**Routing**\n\nIf routing is used during indexing, the routing value also needs to be specified to retrieve a document.\nFor example:\n\n```\nGET my-index-000001/_doc/2?routing=user1\n```\n\nThis request gets the document with ID 2, but it is routed based on the user.\nThe document is not fetched if the correct routing is not specified.\n\n**Distributed**\n\nThe GET operation is hashed into a specific shard ID.\nIt is then redirected to one of the replicas within that shard ID and returns the result.\nThe replicas are the primary shard and its replicas within that shard ID group.\nThis means that the more replicas you have, the better your GET scaling will be.\n\n**Versioning support**\n\nYou can use the `version` parameter to retrieve the document only if its current version is equal to the specified one.\n\nInternally, Elasticsearch has marked the old document as deleted and added an entirely new document.\nThe old version of the document doesn't disappear immediately, although you won't be able to access it.\nElasticsearch cleans up deleted documents in the background as you continue to index more data.", "docId": "docs-get", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "get", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_doc/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get a script or search template.\nRetrieves a stored script or search template.", "docId": "script-get", "docTag": "script", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script", "name": "get_script", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "_global.get_script" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.get_script" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_scripts/{id}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get script contexts.\n\nGet a list of supported script contexts and their methods.", "docId": "script-contexts", "docTag": "script", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-context", "name": "get_script_context", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "_global.get_script_context" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.get_script_context" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_script_context" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get script languages.\n\nGet a list of available script types, languages, and contexts.", "docId": "script-languages", "docTag": "script", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-languages", "name": "get_script_languages", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "_global.get_script_languages" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.get_script_languages" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_script_language" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get a document's source.\n\nGet the source of a document.\nFor example:\n\n```\nGET my-index-000001/_source/1\n```\n\nYou can use the source filtering parameters to control which parts of the `_source` are returned:\n\n```\nGET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities\n```", "docId": "docs-get", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "extDocId": "mapping-source-field", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-source-field", "name": "get_source", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.get_source" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.get_source" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_source/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Explore graph analytics.\nExtract and summarize information about the documents and terms in an Elasticsearch data stream or index.\nThe easiest way to understand the behavior of this API is to use the Graph UI to explore connections.\nAn initial request to the `_explore` API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph.\nSubsequent requests enable you to spider out from one more vertices of interest.\nYou can exclude vertices that have already been returned.", "docId": "graph-explore-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-graph", "extDocId": "graph", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/visualize/graph", "name": "graph.explore", "request": { "name": "Request", "namespace": "graph.explore" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "graph.explore" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_graph/explore" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.7.0", "stability": "stable" } }, "description": "Get the cluster health.\nGet a report with the health status of an Elasticsearch cluster.\nThe report contains a list of indicators that compose Elasticsearch functionality.\n\nEach indicator has a health status of: green, unknown, yellow or red.\nThe indicator will provide an explanation and metadata describing the reason for its current health status.\n\nThe cluster’s status is controlled by the worst indicator status.\n\nIn the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue.\nEach impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system.\n\nSome health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system.\nThe root cause and remediation steps are encapsulated in a diagnosis.\nA diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem.\n\nNOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently.\nWhen setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic.", "docId": "health-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-health-report", "name": "health_report", "request": { "name": "Request", "namespace": "_global.health_report" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.health_report" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_health_report" }, { "methods": [ "GET" ], "path": "/_health_report/{feature}" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Delete a lifecycle policy.\nYou cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.", "docId": "ilm-delete-lifecycle", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-delete-lifecycle", "name": "ilm.delete_lifecycle", "privileges": { "cluster": [ "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.delete_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.delete_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ilm/policy/{policy}" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Explain the lifecycle state.\nGet the current lifecycle status for one or more indices.\nFor data streams, the API retrieves the current lifecycle status for the stream's backing indices.\n\nThe response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.", "docId": "ilm-explain-lifecycle", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-explain-lifecycle", "name": "ilm.explain_lifecycle", "privileges": { "index": [ "view_index_metadata", "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.explain_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.explain_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_ilm/explain" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Get lifecycle policies.", "docId": "ilm-get-lifecycle", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-get-lifecycle", "name": "ilm.get_lifecycle", "privileges": { "cluster": [ "manage_ilm", "read_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.get_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.get_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ilm/policy/{policy}" }, { "methods": [ "GET" ], "path": "/_ilm/policy" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Get the ILM status.\n\nGet the current index lifecycle management status.", "docId": "ilm-get-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-get-status", "name": "ilm.get_status", "privileges": { "cluster": [ "read_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.get_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.get_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ilm/status" } ] }, { "availability": { "stack": { "since": "7.14.0", "stability": "stable" } }, "description": "Migrate to data tiers routing.\nSwitch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers.\nOptionally, delete one legacy index template.\nUsing node roles enables ILM to automatically move the indices between data tiers.\n\nMigrating away from custom node attributes routing can be manually performed.\nThis API provides an automated way of performing three out of the four manual steps listed in the migration guide:\n\n1. Stop setting the custom hot attribute on new indices.\n1. Remove custom allocation settings from existing ILM policies.\n1. Replace custom allocation settings from existing indices with the corresponding tier preference.\n\nILM must be stopped before performing the migration.\nUse the stop ILM and get ILM status APIs to wait until the reported operation mode is `STOPPED`.", "docId": "ilm-migrate-to-data-tiers", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-migrate-to-data-tiers", "extDocId": "migrate-index-allocation-filters", "extDocUrl": "https://www.elastic.co/docs/manage-data/lifecycle/index-lifecycle-management/migrate-index-allocation-filters-to-node-roles", "name": "ilm.migrate_to_data_tiers", "request": { "name": "Request", "namespace": "ilm.migrate_to_data_tiers" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ilm.migrate_to_data_tiers" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ilm/migrate_to_data_tiers" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Move to a lifecycle step.\nManually move an index into a specific step in the lifecycle policy and run that step.\n\nWARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API.\n\nYou must specify both the current step and the step to be executed in the body of the request.\nThe request will fail if the current step does not match the step currently running for the index\nThis is to prevent the index from being moved from an unexpected step into the next step.\n\nWhen specifying the target (`next_step`) to which the index will be moved, either the name or both the action and name fields are optional.\nIf only the phase is specified, the index will move to the first step of the first action in the target phase.\nIf the phase and action are specified, the index will move to the first step of the specified action in the specified phase.\nOnly actions specified in the ILM policy are considered valid.\nAn index cannot move to a step that is not part of its policy.", "docId": "ilm-move-to-step", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-move-to-step", "name": "ilm.move_to_step", "privileges": { "index": [ "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.move_to_step" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ilm.move_to_step" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ilm/move/{index}" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Create or update a lifecycle policy.\nIf the specified policy exists, it is replaced and the policy version is incremented.\n\nNOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.", "docId": "ilm-put-lifecycle", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-put-lifecycle", "extDocId": "ilm-index-lifecycle", "extDocUrl": "https://www.elastic.co/docs/manage-data/lifecycle/index-lifecycle-management/index-lifecycle", "name": "ilm.put_lifecycle", "privileges": { "cluster": [ "manage_ilm" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "ilm.put_lifecycle" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ilm.put_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ilm/policy/{policy}" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Remove policies from an index.\nRemove the assigned lifecycle policies from an index or a data stream's backing indices.\nIt also stops managing the indices.", "docId": "ilm-remove-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-remove-policy", "name": "ilm.remove_policy", "privileges": { "index": [ "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.remove_policy" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.remove_policy" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_ilm/remove" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Retry a policy.\nRetry running the lifecycle policy for an index that is in the ERROR step.\nThe API sets the policy back to the step where the error occurred and runs the step.\nUse the explain lifecycle state API to determine whether an index is in the ERROR step.", "docId": "ilm-retry-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-retry", "name": "ilm.retry", "privileges": { "index": [ "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.retry" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.retry" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_ilm/retry" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Start the ILM plugin.\nStart the index lifecycle management plugin if it is currently stopped.\nILM is started automatically when the cluster is formed.\nRestarting ILM is necessary only when it has been stopped using the stop ILM API.", "docId": "ilm-start", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-start", "name": "ilm.start", "privileges": { "cluster": [ "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.start" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.start" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ilm/start" } ] }, { "availability": { "stack": { "since": "6.6.0", "stability": "stable" } }, "description": "Stop the ILM plugin.\nHalt all lifecycle management operations and stop the index lifecycle management plugin.\nThis is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.\n\nThe API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.\nUse the get ILM status API to check whether ILM is running.", "docId": "ilm-stop", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-stop", "name": "ilm.stop", "privileges": { "cluster": [ "manage_ilm" ] }, "request": { "name": "Request", "namespace": "ilm.stop" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ilm.stop" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ilm/stop" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Create or update a document in an index.\n\nAdd a JSON document to the specified data stream or index and make it searchable.\nIf the target is an index and the document already exists, the request updates the document and increments its version.\n\nNOTE: You cannot use this API to send update requests for existing documents in a data stream.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:\n\n* To add or overwrite a document using the `PUT //_doc/<_id>` request format, you must have the `create`, `index`, or `write` index privilege.\n* To add a document using the `POST //_doc/` request format, you must have the `create_doc`, `create`, `index`, or `write` index privilege.\n* To automatically create a data stream or index with this API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege.\n\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\nNOTE: Replica shards might not all be started when an indexing operation returns successfully.\nBy default, only the primary is required. Set `wait_for_active_shards` to change this default behavior.\n\n**Automatically create data streams and indices**\n\nIf the request's target doesn't exist and matches an index template with a `data_stream` definition, the index operation automatically creates the data stream.\n\nIf the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates.\n\nNOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation.\n\nIf no mapping exists, the index operation creates a dynamic mapping.\nBy default, new fields and objects are automatically added to the mapping if needed.\n\nAutomatic index creation is controlled by the `action.auto_create_index` setting.\nIf it is `true`, any index can be created automatically.\nYou can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to `false` to turn off automatic index creation entirely.\nSpecify a comma-separated list of patterns you want to allow or prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked.\nWhen a list is specified, the default behaviour is to disallow.\n\nNOTE: The `action.auto_create_index` setting affects the automatic creation of indices only.\nIt does not affect the creation of data streams.\n\n**Optimistic concurrency control**\n\nIndex operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the `if_seq_no` and `if_primary_term` parameters.\nIf a mismatch is detected, the operation will result in a `VersionConflictException` and a status code of `409`.\n\n**Routing**\n\nBy default, shard placement — or routing — is controlled by using a hash of the document's ID value.\nFor more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the `routing` parameter.\n\nWhen setting up explicit mapping, you can also use the `_routing` field to direct the index operation to extract the routing value from the document itself.\nThis does come at the (very minimal) cost of an additional document parsing pass.\nIf the `_routing` mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted.\n\nNOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template.\n\n**Distributed**\n\nThe index operation is directed to the primary shard based on its route and performed on the actual node containing this shard.\nAfter the primary shard completes the operation, if needed, the update is distributed to applicable replicas.\n\n**Active shards**\n\nTo improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation.\nIf the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs.\nBy default, write operations only wait for the primary shards to be active before proceeding (that is to say `wait_for_active_shards` is `1`).\nThis default can be overridden in the index settings dynamically by setting `index.write.wait_for_active_shards`.\nTo alter this behavior per operation, use the `wait_for_active_shards request` parameter.\n\nValid values are all or any positive integer up to the total number of configured copies per shard in the index (which is `number_of_replicas`+1).\nSpecifying a negative value or a number greater than the number of shard copies will throw an error.\n\nFor example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes).\nIf you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding.\nThis means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data.\nIf `wait_for_active_shards` is set on the request to `3` (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding.\nThis requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard.\nHowever, if you set `wait_for_active_shards` to `all` (or to `4`, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index.\nThe operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard.\n\nIt is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts.\nAfter the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary.\nThe `_shards` section of the API response reveals the number of shard copies on which replication succeeded and failed.\n\n**No operation (noop) updates**\n\nWhen updating a document by using this API, a new version of the document is always created even if the document hasn't changed.\nIf this isn't acceptable use the `_update` API with `detect_noop` set to `true`.\nThe `detect_noop` option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source.\n\nThere isn't a definitive rule for when noop updates aren't acceptable.\nIt's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates.\n\n**Versioning**\n\nEach indexed document is given a version number.\nBy default, internal versioning is used that starts at 1 and increments with each update, deletes included.\nOptionally, the version number can be set to an external value (for example, if maintained in a database).\nTo enable this functionality, `version_type` should be set to `external`.\nThe value provided must be a numeric, long value greater than or equal to 0, and less than around `9.2e+18`.\n\nNOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations.\nIf no version is provided, the operation runs without any version checks.\n\nWhen using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document.\nIf true, the document will be indexed and the new version number used.\nIf the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example:\n\n```\nPUT my-index-000001/_doc/1?version=2&version_type=external\n{\n \"user\": {\n \"id\": \"elkbee\"\n }\n}\n\nIn this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.\nIf the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).\n\nA nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.\nEven the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.", "docId": "docs-index", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create", "extDocId": "data-streams", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/data-streams", "name": "index", "privileges": { "index": [ "index" ] }, "request": { "name": "Request", "namespace": "_global.index" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.index" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_doc/{id}" }, { "methods": [ "POST" ], "path": "/{index}/_doc" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Add an index block.\n\nAdd an index block to an index.\nIndex blocks limit the operations allowed on an index by blocking specific operation types.", "docId": "index-block-add", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-add-block", "name": "indices.add_block", "request": { "name": "Request", "namespace": "indices.add_block" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.add_block" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/{index}/_block/{block}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get tokens from text analysis.\nThe analyze API performs analysis on a text string and returns the resulting tokens.\n\nGenerating excessive amount of tokens may cause a node to run out of memory.\nThe `index.analyze.max_token_count` setting enables you to limit the number of tokens that can be produced.\nIf more than this limit of tokens gets generated, an error occurs.\nThe `_analyze` endpoint without a specified index will always use `10000` as its limit.", "docId": "indices-analyze", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-analyze", "extDocId": "analysis", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "indices.analyze", "privileges": { "index": [ "index" ] }, "request": { "name": "Request", "namespace": "indices.analyze" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.analyze" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_analyze" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_analyze" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "8.18.0", "stability": "experimental" } }, "description": "Cancel a migration reindex operation.\n\nCancel a migration reindex attempt for a data stream or index.", "docId": "migration-api-cancel", "docTag": "migration", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-cancel-migrate-reindex", "name": "indices.cancel_migrate_reindex", "request": { "name": "Request", "namespace": "indices.cancel_migrate_reindex" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.cancel_migrate_reindex" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_migration/reindex/{index}/_cancel" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Clear the cache.\nClear the cache of one or more indices.\nFor data streams, the API clears the caches of the stream's backing indices.\n\nBy default, the clear cache API clears all caches.\nTo clear only specific caches, use the `fielddata`, `query`, or `request` parameters.\nTo clear the cache only of specific fields, use the `fields` parameter.", "docId": "indices-clearcache", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clear-cache", "name": "indices.clear_cache", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.clear_cache" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.clear_cache" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_cache/clear" }, { "methods": [ "POST" ], "path": "/{index}/_cache/clear" } ] }, { "availability": { "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Clone an index.\nClone an existing index into a new index.\nEach original primary shard is cloned into a new primary shard in the new index.\n\nIMPORTANT: Elasticsearch does not apply index templates to the resulting index.\nThe API also does not copy index metadata from the original index.\nIndex metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information.\nFor example, if you clone a CCR follower index, the resulting clone will not be a follower index.\n\nThe clone API copies most index settings from the source index to the resulting index, with the exception of `index.number_of_replicas` and `index.auto_expand_replicas`.\nTo set the number of replicas in the resulting index, configure these settings in the clone request.\n\nCloning works as follows:\n\n* First, it creates a new target index with the same definition as the source index.\n* Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process.\n* Finally, it recovers the target index as though it were a closed index which had just been re-opened.\n\nIMPORTANT: Indices can only be cloned if they meet the following requirements:\n\n* The index must be marked as read-only and have a cluster health status of green.\n* The target index must not exist.\n* The source index must have the same number of primary shards as the target index.\n* The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index.\n\nThe current write index on a data stream cannot be cloned.\nIn order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned.\n\nNOTE: Mappings cannot be specified in the `_clone` request. The mappings of the source index will be used for the target index.\n\n**Monitor the cloning process**\n\nThe cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the `wait_for_status` parameter to `yellow`.\n\nThe `_clone` API returns as soon as the target index has been added to the cluster state, before any shards have been allocated.\nAt this point, all shards are in the state unassigned.\nIf, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node.\n\nOnce the primary shard is allocated, it moves to state initializing, and the clone process begins.\nWhen the clone operation completes, the shard will become active.\nAt that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node.\n\n**Wait for active shards**\n\nBecause the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well.", "docId": "indices-clone-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clone", "name": "indices.clone", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.clone" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.clone" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_clone/{target}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Close an index.\nA closed index is blocked for read or write operations and does not allow all operations that opened indices allow.\nIt is not possible to index documents or to search for documents in a closed index.\nClosed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster.\n\nWhen opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index.\nThe shards will then go through the normal recovery process.\nThe data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.\n\nYou can open and close multiple indices.\nAn error is thrown if the request explicitly refers to a missing index.\nThis behaviour can be turned off using the `ignore_unavailable=true` parameter.\n\nBy default, you must explicitly name the indices you are opening or closing.\nTo open or close indices with `_all`, `*`, or other wildcard expressions, change the` action.destructive_requires_name` setting to `false`. This setting can also be changed with the cluster update settings API.\n\nClosed indices consume a significant amount of disk-space which can cause problems in managed environments.\nClosing indices can be turned off with the cluster settings API by setting `cluster.indices.close.enable` to `false`.", "docId": "indices-close", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-close", "name": "indices.close", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.close" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.close" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_close" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Create an index.\nYou can use the create index API to add a new index to an Elasticsearch cluster.\nWhen creating an index, you can specify the following:\n\n* Settings for the index.\n* Mappings for fields in the index.\n* Index aliases\n\n**Wait for active shards**\n\nBy default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out.\nThe index creation response will indicate what happened.\nFor example, `acknowledged` indicates whether the index was successfully created in the cluster, `while shards_acknowledged` indicates whether the requisite number of shard copies were started for each shard in the index before timing out.\nNote that it is still possible for either `acknowledged` or `shards_acknowledged` to be `false`, but for the index creation to be successful.\nThese values simply indicate whether the operation completed before the timeout.\nIf `acknowledged` is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon.\nIf `shards_acknowledged` is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, `acknowledged` is `true`).\n\nYou can change the default of only waiting for the primary shards to start through the index setting `index.write.wait_for_active_shards`.\nNote that changing this setting will also affect the `wait_for_active_shards` value on all subsequent write operations.", "docId": "indices-create-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create", "name": "indices.create", "privileges": { "index": [ "create_index", "manage" ] }, "request": { "name": "Request", "namespace": "indices.create" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.create" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Create a data stream.\n\nYou must have a matching index template with data stream enabled.", "docId": "indices-create-data-stream", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-data-stream", "name": "indices.create_data_stream", "privileges": { "index": [ "create_index" ] }, "request": { "name": "Request", "namespace": "indices.create_data_stream" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.create_data_stream" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_data_stream/{name}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "8.18.0", "stability": "experimental" } }, "description": "Create an index from a source index.\n\nCopy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.", "docId": "migration-api-create-from", "docTag": "migration", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-from", "name": "indices.create_from", "request": { "name": "Request", "namespace": "indices.create_from" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.create_from" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_create_from/{source}/{dest}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get data stream stats.\n\nGet statistics for one or more data streams.", "docId": "data-stream-stats-api", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-data-streams-stats-1", "name": "indices.data_streams_stats", "privileges": { "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "indices.data_streams_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.data_streams_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_data_stream/_stats" }, { "methods": [ "GET" ], "path": "/_data_stream/{name}/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Delete indices.\nDeleting an index deletes its documents, shards, and metadata.\nIt does not delete related Kibana components, such as data views, visualizations, or dashboards.\n\nYou cannot delete the current write index of a data stream.\nTo delete the index, you must roll over the data stream so a new write index is created.\nYou can then use the delete index API to delete the previous write index.", "docId": "indices-delete-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete", "name": "indices.delete", "privileges": { "index": [ "delete_index" ] }, "request": { "name": "Request", "namespace": "indices.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Delete an alias.\nRemoves a data stream or index from an alias.", "docId": "indices-delete-alias", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-alias", "name": "indices.delete_alias", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.delete_alias" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.delete_alias" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/{index}/_alias/{name}" }, { "methods": [ "DELETE" ], "path": "/{index}/_aliases/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Delete data stream lifecycles.\nRemoves the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.", "docId": "data-stream-delete-lifecycle", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-lifecycle", "name": "indices.delete_data_lifecycle", "request": { "name": "Request", "namespace": "indices.delete_data_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.delete_data_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_data_stream/{name}/_lifecycle" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Delete data streams.\nDeletes one or more data streams and their backing indices.", "docId": "data-stream-delete", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-stream", "name": "indices.delete_data_stream", "privileges": { "index": [ "delete_index" ] }, "request": { "name": "Request", "namespace": "indices.delete_data_stream" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.delete_data_stream" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_data_stream/{name}" } ] }, { "availability": { "stack": { "featureFlag": "es.failure_store_feature_flag_enabled", "stability": "experimental", "visibility": "feature_flag" } }, "description": "Deletes the data stream options of the selected data streams.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", "name": "indices.delete_data_stream_options", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_data_stream/{name}/_options" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.8.0", "stability": "stable" } }, "description": "Delete an index template.\nThe provided may contain multiple template names separated by a comma. If multiple template\nnames are specified then there is no wildcard support and the provided names should match completely with\nexisting templates.", "docId": "indices-delete-template", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-index-template", "name": "indices.delete_index_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.delete_index_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.delete_index_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_index_template/{name}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Delete a legacy index template.", "docId": "indices-delete-template-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-template", "name": "indices.delete_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.delete_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.delete_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_template/{name}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.15.0", "stability": "experimental" } }, "description": "Analyze the index disk usage.\nAnalyze the disk usage of each field of an index or data stream.\nThis API might not support indices created in previous Elasticsearch versions.\nThe result of a small index can be inaccurate as some parts of an index might not be analyzed by the API.\n\nNOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index `store_size` value because some small metadata files are ignored and some parts of data files might not be scanned by the API.\nSince stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate.\nThe stored size of the `_id` field is likely underestimated while the `_source` field is overestimated.", "docId": "indices-disk-usage", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-disk-usage", "name": "indices.disk_usage", "request": { "name": "Request", "namespace": "indices.disk_usage" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.disk_usage" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_disk_usage" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "8.5.0", "stability": "experimental" } }, "description": "Downsample an index.\nAggregate a time series (TSDS) index and store pre-computed statistical summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric field grouped by a configured time interval.\nFor example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.\nAll documents within an hour interval are summarized and stored as a single document in the downsample index.\n\nNOTE: Only indices in a time series data stream are supported.\nNeither field nor document level security can be defined on the source index.\nThe source index must be read only (`index.blocks.write: true`).", "docId": "indices-downsample-data-stream", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-downsample", "name": "indices.downsample", "request": { "name": "Request", "namespace": "indices.downsample" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.downsample" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_downsample/{target_index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Check indices.\nCheck if one or more indices, index aliases, or data streams exist.", "docId": "indices-exists", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists", "name": "indices.exists", "request": { "name": "Request", "namespace": "indices.exists" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.exists" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Check aliases.\n\nCheck if one or more data stream or index aliases exist.", "docId": "indices-aliases-exist", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-alias", "name": "indices.exists_alias", "request": { "name": "Request", "namespace": "indices.exists_alias" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.exists_alias" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/_alias/{name}" }, { "methods": [ "HEAD" ], "path": "/{index}/_alias/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Check index templates.\n\nCheck whether index templates exist.", "docId": "index-templates-exist", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-index-template", "name": "indices.exists_index_template", "request": { "name": "Request", "namespace": "indices.exists_index_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.exists_index_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/_index_template/{name}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Check existence of index templates.\nGet information about whether index templates exist.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "docId": "indices-template-exists-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-template", "extDocId": "index-templates", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/templates", "name": "indices.exists_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.exists_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.exists_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Get the status for a data stream lifecycle.\nGet information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.", "docId": "data-stream-explain-lifecycle", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-explain-data-lifecycle", "name": "indices.explain_data_lifecycle", "request": { "name": "Request", "namespace": "indices.explain_data_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.explain_data_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_lifecycle/explain" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.15.0", "stability": "experimental" } }, "description": "Get field usage stats.\nGet field usage information for each shard and field of an index.\nField usage statistics are automatically captured when queries are running on a cluster.\nA shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use.\n\nThe response body reports the per-shard usage count of the data structures that back the fields in the index.\nA given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times.", "docId": "field-usage-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-field-usage-stats", "name": "indices.field_usage_stats", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.field_usage_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.field_usage_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_field_usage_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Flush data streams or indices.\nFlushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index.\nWhen restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart.\nElasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush.\n\nAfter each operation has been flushed it is permanently stored in the Lucene index.\nThis may mean that there is no need to maintain an additional copy of it in the transaction log.\nThe transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space.\n\nIt is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly.\nIf you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called.", "docId": "indices-flush", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-flush", "name": "indices.flush", "privileges": { "index": [ "maintenance" ] }, "request": { "name": "Request", "namespace": "indices.flush" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.flush" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "GET" ], "path": "/_flush" }, { "methods": [ "POST", "GET" ], "path": "/{index}/_flush" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "2.1.0", "stability": "stable" } }, "description": "Force a merge.\nPerform the force merge operation on the shards of one or more indices.\nFor data streams, the API forces a merge on the shards of the stream's backing indices.\n\nMerging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents.\nMerging normally happens automatically, but sometimes it is useful to trigger a merge manually.\n\nWARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes).\nWhen documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a \"tombstone\".\nThese soft-deleted documents are automatically cleaned up during regular segment merges.\nBut force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges.\nSo the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance.\nIf you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally.\n\n**Blocks during a force merge**\n\nCalls to this API block until the merge is complete (unless request contains `wait_for_completion=false`).\nIf the client connection is lost before completion then the force merge process will continue in the background.\nAny new requests to force merge the same indices will also block until the ongoing force merge is complete.\n\n**Running force merge asynchronously**\n\nIf the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task.\nHowever, you can not cancel this task as the force merge task is not cancelable.\nElasticsearch creates a record of this task as a document at `_tasks/`.\nWhen you are done with a task, you should delete the task document so Elasticsearch can reclaim the space.\n\n**Force merging multiple indices**\n\nYou can force merge multiple indices with a single request by targeting:\n\n* One or more data streams that contain multiple backing indices\n* Multiple indices\n* One or more aliases\n* All data streams and indices in a cluster\n\nEach targeted shard is force-merged separately using the force_merge threadpool.\nBy default each node only has a single `force_merge` thread which means that the shards on that node are force-merged one at a time.\nIf you expand the `force_merge` threadpool on a node then it will force merge its shards in parallel\n\nForce merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case `max_num_segments parameter` is set to `1`, to rewrite all segments into a new one.\n\n**Data streams and time-based indices**\n\nForce-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover.\nIn these cases, each index only receives indexing traffic for a certain period of time.\nOnce an index receive no more writes, its shards can be force-merged to a single segment.\nThis can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches.\nFor example:\n\n```\nPOST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1\n```", "docId": "indices-forcemerge", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge", "extDocId": "index-modules-merge", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/index-settings/merge", "name": "indices.forcemerge", "privileges": { "index": [ "maintenance" ] }, "request": { "name": "Request", "namespace": "indices.forcemerge" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.forcemerge" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_forcemerge" }, { "methods": [ "POST" ], "path": "/{index}/_forcemerge" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get index information.\nGet information about one or more indices. For data streams, the API returns information about the\nstream’s backing indices.", "docId": "indices-get-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get", "name": "indices.get", "privileges": { "index": [ "view_index_metadata", "manage" ] }, "request": { "name": "Request", "namespace": "indices.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get aliases.\nRetrieves information for one or more data stream or index aliases.", "docId": "indices-get-alias", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-alias", "name": "indices.get_alias", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.get_alias" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_alias" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_alias" }, { "methods": [ "GET" ], "path": "/_alias/{name}" }, { "methods": [ "GET" ], "path": "/{index}/_alias/{name}" }, { "methods": [ "GET" ], "path": "/{index}/_alias" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Get data stream lifecycles.\n\nGet the data stream lifecycle configuration of one or more data streams.", "docId": "data-stream-get-lifecycle", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-lifecycle", "name": "indices.get_data_lifecycle", "request": { "name": "Request", "namespace": "indices.get_data_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_data_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_data_stream/{name}/_lifecycle" } ] }, { "availability": { "stack": { "since": "8.12.0", "stability": "stable" } }, "description": "Get data stream lifecycle stats.\nGet statistics about the data streams that are managed by a data stream lifecycle.", "docId": "data-stream-lifecycle-stats", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-lifecycle-stats", "name": "indices.get_data_lifecycle_stats", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "indices.get_data_lifecycle_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_data_lifecycle_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_lifecycle/stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get data streams.\n\nGet information about one or more data streams.", "docId": "data-stream-get", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream", "name": "indices.get_data_stream", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.get_data_stream" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_data_stream" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_data_stream" }, { "methods": [ "GET" ], "path": "/_data_stream/{name}" } ] }, { "availability": { "stack": { "featureFlag": "es.failure_store_feature_flag_enabled", "stability": "experimental", "visibility": "feature_flag" } }, "description": "Returns the data stream options of the selected data streams.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", "name": "indices.get_data_stream_options", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_data_stream/{name}/_options" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get mapping definitions.\nRetrieves mapping definitions for one or more fields.\nFor data streams, the API retrieves field mappings for the stream’s backing indices.\n\nThis API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields.", "docId": "indices-get-field-mapping", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping", "name": "indices.get_field_mapping", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.get_field_mapping" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_field_mapping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_mapping/field/{fields}" }, { "methods": [ "GET" ], "path": "/{index}/_mapping/field/{fields}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Get index templates.\nGet information about one or more index templates.", "docId": "indices-get-template", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-index-template", "name": "indices.get_index_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.get_index_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_index_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_index_template" }, { "methods": [ "GET" ], "path": "/_index_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get mapping definitions.\nFor data streams, the API retrieves mappings for the stream’s backing indices.", "docId": "indices-get-mapping", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping", "name": "indices.get_mapping", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.get_mapping" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_mapping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_mapping" }, { "methods": [ "GET" ], "path": "/{index}/_mapping" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "8.18.0", "stability": "experimental" } }, "description": "Get the migration reindexing status.\n\nGet the status of a migration reindex attempt for a data stream or index.", "docId": "migrate", "docTag": "migration", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-migration", "name": "indices.get_migrate_reindex_status", "request": { "name": "Request", "namespace": "indices.get_migrate_reindex_status" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.get_migrate_reindex_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_migration/reindex/{index}/_status" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get index settings.\nGet setting information for one or more indices.\nFor data streams, it returns setting information for the stream's backing indices.", "docId": "indices-get-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-settings", "name": "indices.get_settings", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.get_settings" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_settings" }, { "methods": [ "GET" ], "path": "/{index}/_settings" }, { "methods": [ "GET" ], "path": "/{index}/_settings/{name}" }, { "methods": [ "GET" ], "path": "/_settings/{name}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get index templates.\nGet information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "docId": "indices-get-template-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-template", "extDocId": "index-templates", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/templates", "name": "indices.get_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.get_template" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.get_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_template" }, { "methods": [ "GET" ], "path": "/_template/{name}" } ] }, { "availability": { "stack": { "since": "8.18.0", "stability": "experimental" } }, "description": "Reindex legacy backing indices.\n\nReindex all legacy backing indices for a data stream.\nThis operation occurs in a persistent task.\nThe persistent task ID is returned immediately and the reindexing work is completed in that task.", "docId": "migration-api-reindex", "docTag": "migration", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-reindex", "name": "indices.migrate_reindex", "request": { "name": "Request", "namespace": "indices.migrate_reindex" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.migrate_reindex" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_migration/reindex" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Convert an index alias to a data stream.\nConverts an index alias to a data stream.\nYou must have a matching index template that is data stream enabled.\nThe alias must meet the following criteria:\nThe alias must have a write index;\nAll indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;\nThe alias must not have any filters;\nThe alias must not use custom routing.\nIf successful, the request removes the alias and creates a data stream with the same name.\nThe indices for the alias become hidden backing indices for the stream.\nThe write index for the alias becomes the write index for the stream.", "docId": "data-stream-migrate", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream", "name": "indices.migrate_to_data_stream", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.migrate_to_data_stream" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.migrate_to_data_stream" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_data_stream/_migrate/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.16.0", "stability": "stable" } }, "description": "Update data streams.\nPerforms one or more data stream modification actions in a single atomic operation.", "docId": "data-stream-update", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream", "name": "indices.modify_data_stream", "request": { "name": "Request", "namespace": "indices.modify_data_stream" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.modify_data_stream" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_data_stream/_modify" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Open a closed index.\nFor data streams, the API opens any closed backing indices.\n\nA closed index is blocked for read/write operations and does not allow all operations that opened indices allow.\nIt is not possible to index documents or to search for documents in a closed index.\nThis allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster.\n\nWhen opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index.\nThe shards will then go through the normal recovery process.\nThe data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.\n\nYou can open and close multiple indices.\nAn error is thrown if the request explicitly refers to a missing index.\nThis behavior can be turned off by using the `ignore_unavailable=true` parameter.\n\nBy default, you must explicitly name the indices you are opening or closing.\nTo open or close indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`.\nThis setting can also be changed with the cluster update settings API.\n\nClosed indices consume a significant amount of disk-space which can cause problems in managed environments.\nClosing indices can be turned off with the cluster settings API by setting `cluster.indices.close.enable` to `false`.\n\nBecause opening or closing an index allocates its shards, the `wait_for_active_shards` setting on index creation applies to the `_open` and `_close` index actions as well.", "docId": "indices-open-close", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-open", "name": "indices.open", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.open" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.open" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_open" } ] }, { "availability": { "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Promote a data stream.\nPromote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream.\n\nWith CCR auto following, a data stream from a remote cluster can be replicated to the local cluster.\nThese data streams can't be rolled over in the local cluster.\nThese replicated data streams roll over only if the upstream data stream rolls over.\nIn the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster.\n\nNOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream.\nIf this is missing, the data stream will not be able to roll over until a matching index template is created.\nThis will affect the lifecycle management of the data stream and interfere with the data stream size and retention.", "docId": "data-stream-promote", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-promote-data-stream", "name": "indices.promote_data_stream", "request": { "name": "Request", "namespace": "indices.promote_data_stream" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.promote_data_stream" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_data_stream/_promote/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Create or update an alias.\nAdds a data stream or index to an alias.", "docId": "alias-update", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-alias", "name": "indices.put_alias", "request": { "name": "Request", "namespace": "indices.put_alias" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.put_alias" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_alias/{name}" }, { "methods": [ "PUT", "POST" ], "path": "/{index}/_aliases/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Update data stream lifecycles.\nUpdate the data stream lifecycle of the specified data streams.", "docId": "data-stream-put-lifecycle", "docTag": "data stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-lifecycle", "name": "indices.put_data_lifecycle", "request": { "name": "Request", "namespace": "indices.put_data_lifecycle" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.put_data_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_data_stream/{name}/_lifecycle" } ] }, { "availability": { "stack": { "featureFlag": "es.failure_store_feature_flag_enabled", "stability": "experimental", "visibility": "feature_flag" } }, "description": "Updates the data stream options of the selected data streams.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html", "name": "indices.put_data_stream_options", "request": null, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_data_stream/{name}/_options" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\n\nElasticsearch applies templates to new indices based on an wildcard pattern that matches the index name.\nIndex templates are applied during data stream or index creation.\nFor data streams, these settings and mappings are applied when the stream's backing indices are created.\nSettings and mappings specified in a create index API request override any settings or mappings specified in an index template.\nChanges to index templates do not affect existing indices, including the existing backing indices of a data stream.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Multiple matching templates**\n\nIf multiple index templates match the name of a new index or data stream, the template with the highest priority is used.\n\nMultiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities.\n\n**Composing aliases, mappings, and settings**\n\nWhen multiple component templates are specified in the `composed_of` field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates.\nAny mappings, settings, or aliases from the parent index template are merged in next.\nFinally, any configuration on the index request itself is merged.\nMapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration.\nIf a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one.\nThis recursive merging strategy applies not only to field mappings, but also root options like `dynamic_templates` and `meta`.\nIf an earlier component contains a `dynamic_templates` block, then by default new `dynamic_templates` entries are appended onto the end.\nIf an entry already exists with the same key, then it is overwritten by the new definition.", "docId": "index-templates-put", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template", "name": "indices.put_index_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.put_index_template" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.put_index_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_index_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Update field mappings.\nAdd new fields to an existing data stream or index.\nYou can also use this API to change the search settings of existing fields and add new properties to existing object fields.\nFor data streams, these changes are applied to all backing indices by default.\n\n**Add multi-fields to an existing field**\n\nMulti-fields let you index the same field in different ways.\nYou can use this API to update the fields mapping parameter and enable multi-fields for an existing field.\nWARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field.\nYou can populate the new multi-field with the update by query API.\n\n**Change supported mapping parameters for an existing field**\n\nThe documentation for each mapping parameter indicates whether you can update it for an existing field using this API.\nFor example, you can use the update mapping API to update the `ignore_above` parameter.\n\n**Change the mapping of an existing field**\n\nExcept for supported mapping parameters, you can't change the mapping or field type of an existing field.\nChanging an existing field could invalidate data that's already indexed.\n\nIf you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams.\nIf you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index.\n\n**Rename a field**\n\nRenaming a field would invalidate data already indexed under the old field name.\nInstead, add an alias field to create an alternate field name.", "docId": "indices-put-mapping", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping", "extDocId": "mapping-params", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-parameters", "name": "indices.put_mapping", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.put_mapping" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.put_mapping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_mapping" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Update index settings.\nChanges dynamic index settings in real time.\nFor data streams, index setting changes are applied to all backing indices by default.\n\nTo revert a setting to the default value, use a null value.\nThe list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.\nTo preserve existing settings from being updated, set the `preserve_existing` parameter to `true`.\n\nNOTE: You can only define new analyzers on closed indices.\nTo add an analyzer, you must close the index, define the analyzer, and reopen the index.\nYou cannot close the write index of a data stream.\nTo update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream.\nThen roll over the data stream to apply the new analyzer to the stream's write index and future backing indices.\nThis affects searches and any new data added to the stream after the rollover.\nHowever, it does not affect the data stream's backing indices or their existing data.\nTo change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it.", "docId": "indices-update-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-settings", "extDocId": "index-modules", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/index-settings/index-modules", "name": "indices.put_settings", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.put_settings" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.put_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_settings" }, { "methods": [ "PUT" ], "path": "/{index}/_settings" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", "docId": "index-templates-v1", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-template", "extDocId": "index-templates", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/templates", "name": "indices.put_template", "privileges": { "cluster": [ "manage_index_templates", "manage" ] }, "request": { "name": "Request", "namespace": "indices.put_template" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.put_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_template/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get index recovery information.\nGet information about ongoing and completed shard recoveries for one or more indices.\nFor data streams, the API returns information for the stream's backing indices.\n\nAll recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time.\n\nShard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard.\nWhen a shard recovery completes, the recovered shard is available for search and indexing.\n\nRecovery automatically occurs during the following processes:\n\n* When creating an index for the first time.\n* When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path.\n* Creation of new replica shard copies from the primary.\n* Relocation of a shard copy to a different node in the same cluster.\n* A snapshot restore operation.\n* A clone, shrink, or split operation.\n\nYou can determine the cause of a shard recovery using the recovery or cat recovery APIs.\n\nThe index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster.\nIt only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist.\nThis means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API.", "docId": "indices-recovery", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-recovery", "name": "indices.recovery", "privileges": { "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "indices.recovery" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.recovery" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_recovery" }, { "methods": [ "GET" ], "path": "/{index}/_recovery" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Refresh an index.\nA refresh makes recent operations performed on one or more indices available for search.\nFor data streams, the API runs the refresh operation on the stream’s backing indices.\n\nBy default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds.\nYou can change this default interval with the `index.refresh_interval` setting.\n\nRefresh requests are synchronous and do not return a response until the refresh operation completes.\n\nRefreshes are resource-intensive.\nTo ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible.\n\nIf your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's `refresh=wait_for` query parameter option.\nThis option ensures the indexing operation waits for a periodic refresh before running the search.", "docId": "indices-refresh", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-refresh", "name": "indices.refresh", "privileges": { "index": [ "maintenance" ] }, "request": { "name": "Request", "namespace": "indices.refresh" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.refresh" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "GET" ], "path": "/_refresh" }, { "methods": [ "POST", "GET" ], "path": "/{index}/_refresh" } ] }, { "availability": { "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Reload search analyzers.\nReload an index's search analyzers and their resources.\nFor data streams, the API reloads search analyzers and resources for the stream's backing indices.\n\nIMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer.\n\nYou can use the reload search analyzers API to pick up changes to synonym files used in the `synonym_graph` or `synonym` token filter of a search analyzer.\nTo be eligible, the token filter must have an `updateable` flag of `true` and only be used in search analyzers.\n\nNOTE: This API does not perform a reload for each shard of an index.\nInstead, it performs a reload for each node containing index shards.\nAs a result, the total shard count returned by the API can differ from the number of index shards.\nBecause reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API.\nThis ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future.", "docId": "indices-reload-analyzers", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-reload-search-analyzers", "extDocId": "search-analyzer", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/search-analyzer", "name": "indices.reload_search_analyzers", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.reload_search_analyzers" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.reload_search_analyzers" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_reload_search_analyzers" } ] }, { "availability": { "stack": { "since": "8.13.0", "stability": "stable" } }, "description": "Resolve the cluster.\n\nResolve the specified index expressions to return information about each cluster, including the local \"querying\" cluster, if included.\nIf no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster.\n\nThis endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search.\n\nYou use the same index expression with this endpoint as you would for cross-cluster search.\nIndex and cluster exclusions are also supported with this endpoint.\n\nFor each cluster in the index expression, information is returned about:\n\n* Whether the querying (\"local\") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the `remote/info` endpoint.\n* Whether each remote cluster is configured with `skip_unavailable` as `true` or `false`.\n* Whether there are any indices, aliases, or data streams on that cluster that match the index expression.\n* Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index).\n* Cluster version information, including the Elasticsearch server version.\n\nFor example, `GET /_resolve/cluster/my-index-*,cluster*:my-index-*` returns information about the local cluster and all remotely configured clusters that start with the alias `cluster*`.\nEach cluster returns information about whether it has any indices, aliases or data streams that match `my-index-*`.\n\n## Note on backwards compatibility\nThe ability to query without an index expression was added in version 8.18, so when\nquerying remote clusters older than that, the local cluster will send the index\nexpression `dummy*` to those remote clusters. Thus, if an errors occur, you may see a reference\nto that index expression even though you didn't request it. If it causes a problem, you can\ninstead include an index expression like `*:*` to bypass the issue.\n\n## Advantages of using this endpoint before a cross-cluster search\n\nYou may want to exclude a cluster or index from a search when:\n\n* A remote cluster is not currently connected and is configured with `skip_unavailable=false`. Running a cross-cluster search under those conditions will cause the entire search to fail.\n* A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is `logs*,remote1:logs*` and the remote1 cluster has no indices, aliases or data streams that match `logs*`. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search.\n* The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the \"error\" field in the `_resolve/cluster` response will be present. (This is also where security/permission errors will be shown.)\n* A remote cluster is an older version that does not support the feature you want to use in your search.\n\n## Test availability of remote clusters\n\nThe `remote/info` endpoint is commonly used to test whether the \"local\" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not.\nThe remote cluster may be available, while the local cluster is not currently connected to it.\n\nYou can use the `_resolve/cluster` API to attempt to reconnect to remote clusters.\nFor example with `GET _resolve/cluster` or `GET _resolve/cluster/*:*`.\nThe `connected` field in the response will indicate whether it was successful.\nIf a connection was (re-)established, this will also cause the `remote/info` endpoint to now indicate a connected status.", "docId": "indices-resolve-cluster-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster", "name": "indices.resolve_cluster", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.resolve_cluster" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.resolve_cluster" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_resolve/cluster" }, { "methods": [ "GET" ], "path": "/_resolve/cluster/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Resolve indices.\nResolve the names and/or index patterns for indices, aliases, and data streams.\nMultiple patterns and remote clusters are supported.", "docId": "indices-resolve-index-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-index", "name": "indices.resolve_index", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "indices.resolve_index" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.resolve_index" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_resolve/index/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Roll over to a new index.\nTIP: It is recommended to use the index lifecycle rollover action to automate rollovers.\n\nThe rollover API creates a new index for a data stream or index alias.\nThe API behavior depends on the rollover target.\n\n**Roll over a data stream**\n\nIf you roll over a data stream, the API creates a new write index for the stream.\nThe stream's previous write index becomes a regular backing index.\nA rollover also increments the data stream's generation.\n\n**Roll over an index alias with a write index**\n\nTIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data.\nData streams replace this functionality, require less maintenance, and automatically integrate with data tiers.\n\nIf an index alias points to multiple indices, one of the indices must be a write index.\nThe rollover API creates a new write index for the alias with `is_write_index` set to `true`.\nThe API also `sets is_write_index` to `false` for the previous write index.\n\n**Roll over an index alias with one index**\n\nIf you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias.\n\nNOTE: A rollover creates a new index and is subject to the `wait_for_active_shards` setting.\n\n**Increment index names for an alias**\n\nWhen you roll over an index alias, you can specify a name for the new index.\nIf you don't specify a name and the current index ends with `-` and a number, such as `my-index-000001` or `my-index-3`, the new index name increments that number.\nFor example, if you roll over an alias with a current index of `my-index-000001`, the rollover creates a new index named `my-index-000002`.\nThis number is always six characters and zero-padded, regardless of the previous index's name.\n\nIf you use an index alias for time series data, you can use date math in the index name to track the rollover date.\nFor example, you can create an alias that points to an index named ``.\nIf you create the index on May 6, 2099, the index's name is `my-index-2099.05.06-000001`.\nIf you roll over the alias on May 7, 2099, the new index's name is `my-index-2099.05.07-000002`.", "docId": "indices-rollover-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-rollover", "name": "indices.rollover", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.rollover" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.rollover" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{alias}/_rollover" }, { "methods": [ "POST" ], "path": "/{alias}/_rollover/{new_index}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get index segments.\nGet low-level information about the Lucene segments in index shards.\nFor data streams, the API returns information about the stream's backing indices.", "docId": "indices-segments", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-segments", "name": "indices.segments", "privileges": { "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "indices.segments" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.segments" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_segments" }, { "methods": [ "GET" ], "path": "/{index}/_segments" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get index shard stores.\nGet store information about replica shards in one or more indices.\nFor data streams, the API retrieves store information for the stream's backing indices.\n\nThe index shard stores API returns the following information:\n\n* The node on which each replica shard exists.\n* The allocation ID for each replica shard.\n* A unique ID for each replica shard.\n* Any errors encountered while opening the shard index or from an earlier failure.\n\nBy default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards.", "docId": "indices-shards-stores", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shard-stores", "name": "indices.shard_stores", "privileges": { "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "indices.shard_stores" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.shard_stores" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_shard_stores" }, { "methods": [ "GET" ], "path": "/{index}/_shard_stores" } ] }, { "availability": { "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Shrink an index.\nShrink an index into a new index with fewer primary shards.\n\nBefore you can shrink an index:\n\n* The index must be read-only.\n* A copy of every shard in the index must reside on the same node.\n* The index must have a green health status.\n\nTo make shard allocation easier, we recommend you also remove the index's replica shards.\nYou can later re-add replica shards as part of the shrink operation.\n\nThe requested number of primary shards in the target index must be a factor of the number of shards in the source index.\nFor example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1.\nIf the number of shards in the index is a prime number it can only be shrunk into a single primary shard\n Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node.\n\nThe current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk.\n\nA shrink operation:\n\n* Creates a new target index with the same definition as the source index, but with a smaller number of primary shards.\n* Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks.\n* Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the `.routing.allocation.initial_recovery._id` index setting.\n\nIMPORTANT: Indices can only be shrunk if they satisfy the following requirements:\n\n* The target index must not exist.\n* The source index must have more primary shards than the target index.\n* The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index.\n* The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard.\n* The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index.", "docId": "indices-shrink-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shrink", "name": "indices.shrink", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.shrink" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.shrink" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_shrink/{target}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Simulate an index.\nGet the index configuration that would be applied to the specified index from an existing index template.", "docId": "indices-simulate", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-index-template", "name": "indices.simulate_index_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.simulate_index_template" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.simulate_index_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_index_template/_simulate_index/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Simulate an index template.\nGet the index configuration that would be applied by a particular index template.", "docId": "indices-simulate-template", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-template", "name": "indices.simulate_template", "privileges": { "cluster": [ "manage_index_templates" ] }, "request": { "name": "Request", "namespace": "indices.simulate_template" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.simulate_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_index_template/_simulate" }, { "methods": [ "POST" ], "path": "/_index_template/_simulate/{name}" } ] }, { "availability": { "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Split an index.\nSplit an index into a new index with more primary shards.\n* Before you can split an index:\n\n* The index must be read-only.\n* The cluster health status must be green.\n\nYou can do make an index read-only with the following request using the add index block API:\n\n```\nPUT /my_source_index/_block/write\n```\n\nThe current write index on a data stream cannot be split.\nIn order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split.\n\nThe number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the `index.number_of_routing_shards` setting.\nThe number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing.\nFor instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3.\n\nA split operation:\n\n* Creates a new target index with the same definition as the source index, but with a larger number of primary shards.\n* Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process.\n* Hashes all documents again, after low level files are created, to delete documents that belong to a different shard.\n* Recovers the target index as though it were a closed index which had just been re-opened.\n\nIMPORTANT: Indices can only be split if they satisfy the following requirements:\n\n* The target index must not exist.\n* The source index must have fewer primary shards than the target index.\n* The number of primary shards in the target index must be a multiple of the number of primary shards in the source index.\n* The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index.", "docId": "indices-split-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-split", "name": "indices.split", "privileges": { "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "indices.split" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.split" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/{index}/_split/{target}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Get index statistics.\nFor data streams, the API retrieves statistics for the stream's backing indices.\n\nBy default, the returned statistics are index-level with `primaries` and `total` aggregations.\n`primaries` are the values for only the primary shards.\n`total` are the accumulated values for both primary and replica shards.\n\nTo get shard-level statistics, set the `level` parameter to `shards`.\n\nNOTE: When moving to another node, the shard-level statistics for a shard are cleared.\nAlthough the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed.", "docId": "indices-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-stats", "name": "indices.stats", "privileges": { "index": [ "monitor" ] }, "request": { "name": "Request", "namespace": "indices.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "indices.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_stats" }, { "methods": [ "GET" ], "path": "/_stats/{metric}" }, { "methods": [ "GET" ], "path": "/{index}/_stats" }, { "methods": [ "GET" ], "path": "/{index}/_stats/{metric}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Create or update an alias.\nAdds a data stream or index to an alias.", "docId": "aliases-update", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-update-aliases", "name": "indices.update_aliases", "request": { "name": "Request", "namespace": "indices.update_aliases" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.update_aliases" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_aliases" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Validate a query.\nValidates a query without running it.", "docId": "search-validate", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-validate-query", "name": "indices.validate_query", "request": { "name": "Request", "namespace": "indices.validate_query" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "indices.validate_query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_validate/query" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_validate/query" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.18.0", "stability": "stable", "visibility": "public" } }, "description": "Perform chat completion inference", "docId": "inference-api-chat-completion", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-unified-inference", "name": "inference.chat_completion_unified", "request": { "name": "Request", "namespace": "inference.chat_completion_unified" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.chat_completion_unified" }, "responseMediaType": [ "text/event-stream" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/chat_completion/{inference_id}/_stream" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Perform completion inference on the service", "docId": "inference-api-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference", "name": "inference.completion", "request": { "name": "Request", "namespace": "inference.completion" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.completion" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/completion/{inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Delete an inference endpoint", "docId": "inference-api-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-delete", "name": "inference.delete", "request": { "name": "Request", "namespace": "inference.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "inference.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_inference/{inference_id}" }, { "methods": [ "DELETE" ], "path": "/_inference/{task_type}/{inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Get an inference endpoint", "docId": "inference-api-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-get", "name": "inference.get", "request": { "name": "Request", "namespace": "inference.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "inference.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_inference" }, { "methods": [ "GET" ], "path": "/_inference/{inference_id}" }, { "methods": [ "GET" ], "path": "/_inference/{task_type}/{inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Perform inference on the service.\n\nThis API enables you to use machine learning models to perform specific tasks on data that you provide as an input.\nIt returns a response with the results of the tasks.\nThe inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API.\n\nFor details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation.\n\n> info\n> The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.", "docId": "inference-api-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference", "name": "inference.inference", "privileges": { "cluster": [ "monitor_inference" ] }, "request": { "name": "Request", "namespace": "inference.inference" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.inference" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/{inference_id}" }, { "methods": [ "POST" ], "path": "/_inference/{task_type}/{inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Create an inference endpoint.\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.\n\nIMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.\nFor built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models.\nHowever, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.", "docId": "inference-api-put", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put", "name": "inference.put", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{inference_id}" }, { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.16.0", "stability": "stable", "visibility": "public" } }, "description": "Create an AlibabaCloud AI Search inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `alibabacloud-ai-search` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-alibabacloud", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-alibabacloud", "name": "inference.put_alibabacloud", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_alibabacloud" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_alibabacloud" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{alibabacloud_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "stable", "visibility": "public" } }, "description": "Create an Amazon Bedrock inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `amazonbedrock` service.\n\n>info\n> You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-amazonbedrock", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-amazonbedrock", "name": "inference.put_amazonbedrock", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_amazonbedrock" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_amazonbedrock" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{amazonbedrock_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.16.0", "stability": "stable", "visibility": "public" } }, "description": "Create an Anthropic inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `anthropic` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-anthropic", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-anthropic", "name": "inference.put_anthropic", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_anthropic" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_anthropic" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{anthropic_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.14.0", "stability": "stable", "visibility": "public" } }, "description": "Create an Azure AI studio inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `azureaistudio` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-azureaistudio", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureaistudio", "name": "inference.put_azureaistudio", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_azureaistudio" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_azureaistudio" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{azureaistudio_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.14.0", "stability": "stable", "visibility": "public" } }, "description": "Create an Azure OpenAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `azureopenai` service.\n\nThe list of chat completion models that you can choose from in your Azure OpenAI deployment include:\n\n* [GPT-4 and GPT-4 Turbo models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models)\n* [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35)\n\nThe list of embeddings models that you can choose from in your deployment can be found in the [Azure models documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings).\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-azureopenai", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureopenai", "name": "inference.put_azureopenai", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_azureopenai" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_azureopenai" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{azureopenai_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.13.0", "stability": "stable", "visibility": "public" } }, "description": "Create a Cohere inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `cohere` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-cohere", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-cohere", "name": "inference.put_cohere", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_cohere" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_cohere" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{cohere_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.13.0", "stability": "stable", "visibility": "public" } }, "description": "Create an Elasticsearch inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `elasticsearch` service.\n\n> info\n> Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings.\n\nIf you use the ELSER or the E5 model through the `elasticsearch` service, the API request will automatically download and deploy the model if it isn't downloaded yet.\n\n> info\n> You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value.\n\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-elasticsearch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elasticsearch", "name": "inference.put_elasticsearch", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_elasticsearch" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_elasticsearch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{elasticsearch_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "deprecation": { "description": "The elser service is deprecated and will be removed in a future release. Use the Elasticsearch inference integration instead, with model_id included in the service_settings.", "version": "8.16.0" }, "description": "Create an ELSER inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `elser` service.\nYou can also deploy ELSER by using the Elasticsearch inference integration.\n\n> info\n> Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings.\n\nThe API request will automatically download and deploy the ELSER model if it isn't already downloaded.\n\n> info\n> You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value.\n\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-elser", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elser", "name": "inference.put_elser", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_elser" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_elser" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{elser_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable", "visibility": "public" } }, "description": "Create an Google AI Studio inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `googleaistudio` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-googleaistudio", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googleaistudio", "name": "inference.put_googleaistudio", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_googleaistudio" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_googleaistudio" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{googleaistudio_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable", "visibility": "public" } }, "description": "Create a Google Vertex AI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `googlevertexai` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-googlevertexai", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googlevertexai", "name": "inference.put_googlevertexai", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_googlevertexai" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_googlevertexai" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{googlevertexai_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "stable", "visibility": "public" } }, "description": "Create a Hugging Face inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `hugging_face` service.\n\nYou must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL.\nSelect the model you want to use on the new endpoint creation page (for example `intfloat/e5-small-v2`), then select the sentence embeddings task under the advanced configuration section.\nCreate the endpoint and copy the URL after the endpoint initialization has been finished.\n\nThe following models are recommended for the Hugging Face service:\n\n* `all-MiniLM-L6-v2`\n* `all-MiniLM-L12-v2`\n* `all-mpnet-base-v2`\n* `e5-base-v2`\n* `e5-small-v2`\n* `multilingual-e5-base`\n* `multilingual-e5-small`\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-huggingface", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-hugging-face", "name": "inference.put_hugging_face", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_hugging_face" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_hugging_face" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{huggingface_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.18.0", "stability": "stable", "visibility": "public" } }, "description": "Create an JinaAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `jinaai` service.\n\nTo review the available `rerank` models, refer to .\nTo review the available `text_embedding` models, refer to the .\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-jinaai", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-jinaai", "name": "inference.put_jinaai", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_jinaai" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_jinaai" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{jinaai_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable", "visibility": "public" } }, "description": "Create a Mistral inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `mistral` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-mistral", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-mistral", "name": "inference.put_mistral", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_mistral" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_mistral" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{mistral_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.12.0", "stability": "stable", "visibility": "public" } }, "description": "Create an OpenAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `openai` service or `openai` compatible APIs.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-openai", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openai", "name": "inference.put_openai", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_openai" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_openai" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{openai_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.19.0", "stability": "stable", "visibility": "public" } }, "description": "Create a VoyageAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `voyageai` service.\n\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-voyageai", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-voyageai", "name": "inference.put_voyageai", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_voyageai" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_voyageai" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{voyageai_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.16.0", "stability": "stable", "visibility": "public" } }, "description": "Create a Watsonx inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `watsonxai` service.\nYou need an IBM Cloud Databases for Elasticsearch deployment to use the `watsonxai` inference service.\nYou can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "docId": "inference-api-put-watsonx", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-watsonx", "name": "inference.put_watsonx", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.put_watsonx" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.put_watsonx" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{watsonx_inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Perform rereanking inference on the service", "docId": "inference-api-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference", "name": "inference.rerank", "privileges": { "cluster": [ "monitor_inference" ] }, "request": { "name": "Request", "namespace": "inference.rerank" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.rerank" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/rerank/{inference_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Perform sparse embedding inference on the service", "docId": "inference-api-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference", "name": "inference.sparse_embedding", "request": { "name": "Request", "namespace": "inference.sparse_embedding" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.sparse_embedding" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/sparse_embedding/{inference_id}" } ] }, { "availability": { "stack": { "since": "8.16.0", "stability": "stable", "visibility": "public" } }, "description": "Perform streaming inference.\nGet real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation.\nThis API works only with the completion task type.\n\nIMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.\n\nThis API requires the `monitor_inference` cluster privilege (the built-in `inference_admin` and `inference_user` roles grant this privilege). You must use a client that supports streaming.", "docId": "inference-api-stream", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-stream-inference", "name": "inference.stream_completion", "privileges": { "cluster": [ "monitor_inference" ] }, "request": { "name": "Request", "namespace": "inference.stream_completion" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.stream_completion" }, "responseMediaType": [ "text/event-stream" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/completion/{inference_id}/_stream" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable", "visibility": "public" } }, "description": "Perform text embedding inference on the service", "docId": "inference-api-post", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference", "name": "inference.text_embedding", "request": { "name": "Request", "namespace": "inference.text_embedding" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.text_embedding" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_inference/text_embedding/{inference_id}" } ] }, { "availability": { "stack": { "since": "8.17.0", "stability": "stable", "visibility": "public" } }, "description": "Update an inference endpoint.\n\nModify `task_settings`, secrets (within `service_settings`), or `num_allocations` for an inference endpoint, depending on the specific endpoint service and `task_type`.\n\nIMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.\nFor built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models.\nHowever, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.", "docId": "inference-api-update", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-update", "name": "inference.update", "privileges": { "cluster": [ "manage_inference" ] }, "request": { "name": "Request", "namespace": "inference.update" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "inference.update" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_inference/{inference_id}/_update" }, { "methods": [ "PUT" ], "path": "/_inference/{task_type}/{inference_id}/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get cluster info.\nGet basic build, version, and cluster information.", "docId": "api-root", "docTag": "info", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-info", "name": "info", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "_global.info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/" } ] }, { "availability": { "serverless": { "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Delete GeoIP database configurations.\n\nDelete one or more IP geolocation database configurations.", "docId": "geoip-delete-database", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-geoip-database", "name": "ingest.delete_geoip_database", "request": { "name": "Request", "namespace": "ingest.delete_geoip_database" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.delete_geoip_database" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ingest/geoip/database/{id}" } ] }, { "availability": { "serverless": { "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Delete IP geolocation database configurations.", "docId": "ip-location-delete-database", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-ip-location-database", "name": "ingest.delete_ip_location_database", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "ingest.delete_ip_location_database" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.delete_ip_location_database" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ingest/ip_location/database/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Delete pipelines.\nDelete one or more ingest pipelines.", "docId": "delete-pipeline-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-pipeline", "extDocId": "ingest", "extDocUrl": "https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines", "name": "ingest.delete_pipeline", "request": { "name": "Request", "namespace": "ingest.delete_pipeline" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.delete_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ingest/pipeline/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Get GeoIP statistics.\nGet download statistics for GeoIP2 databases that are used with the GeoIP processor.", "docId": "geoip-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/geoip-processor", "extDocId": "geoip-processor", "extDocUrl": "https://www.elastic.co/docs/reference/enrich-processor/geoip-processor", "name": "ingest.geo_ip_stats", "request": { "name": "Request", "namespace": "ingest.geo_ip_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.geo_ip_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ingest/geoip/stats" } ] }, { "availability": { "serverless": { "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Get GeoIP database configurations.\n\nGet information about one or more IP geolocation database configurations.", "docId": "geoip-get-database", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-geoip-database", "name": "ingest.get_geoip_database", "request": { "name": "Request", "namespace": "ingest.get_geoip_database" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.get_geoip_database" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ingest/geoip/database" }, { "methods": [ "GET" ], "path": "/_ingest/geoip/database/{id}" } ] }, { "availability": { "serverless": { "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Get IP geolocation database configurations.", "docId": "ip-location-get-database", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-ip-location-database", "name": "ingest.get_ip_location_database", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "ingest.get_ip_location_database" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.get_ip_location_database" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ingest/ip_location/database" }, { "methods": [ "GET" ], "path": "/_ingest/ip_location/database/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Get pipelines.\n\nGet information about one or more ingest pipelines.\nThis API returns a local reference of the pipeline.", "docId": "get-pipeline-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-pipeline", "extDocId": "ingest", "extDocUrl": "https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines", "name": "ingest.get_pipeline", "request": { "name": "Request", "namespace": "ingest.get_pipeline" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.get_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ingest/pipeline" }, { "methods": [ "GET" ], "path": "/_ingest/pipeline/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Run a grok processor.\nExtract structured fields out of a single text field within a document.\nYou must choose which field to extract matched fields from, as well as the grok pattern you expect will match.\nA grok pattern is like a regular expression that supports aliased expressions that can be reused.", "docId": "grok-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/grok-processor", "extDocId": "grok-processor", "extDocUrl": "https://www.elastic.co/docs/reference/enrich-processor/grok-processor", "name": "ingest.processor_grok", "request": { "name": "Request", "namespace": "ingest.processor_grok" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ingest.processor_grok" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ingest/processor/grok" } ] }, { "availability": { "serverless": { "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Create or update a GeoIP database configuration.\n\nRefer to the create or update IP geolocation database configuration API.", "docId": "geoip-put-database", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-geoip-database", "name": "ingest.put_geoip_database", "request": { "name": "Request", "namespace": "ingest.put_geoip_database" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ingest.put_geoip_database" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ingest/geoip/database/{id}" } ] }, { "availability": { "serverless": { "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Create or update an IP geolocation database configuration.", "docId": "ip-location-put-database", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-ip-location-database", "name": "ingest.put_ip_location_database", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "ingest.put_ip_location_database" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ingest.put_ip_location_database" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ingest/ip_location/database/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Create or update a pipeline.\nChanges made using this API take effect immediately.", "docId": "ingest", "docUrl": "https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines", "extDocId": "ingest", "extDocUrl": "https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines", "name": "ingest.put_pipeline", "request": { "name": "Request", "namespace": "ingest.put_pipeline" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ingest.put_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ingest/pipeline/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Simulate a pipeline.\n\nRun an ingest pipeline against a set of provided documents.\nYou can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.", "docId": "simulate-pipeline-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-simulate", "name": "ingest.simulate", "privileges": { "cluster": [ "read_pipeline" ] }, "request": { "name": "Request", "namespace": "ingest.simulate" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ingest.simulate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ingest/pipeline/_simulate" }, { "methods": [ "GET", "POST" ], "path": "/_ingest/pipeline/{id}/_simulate" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "description": "Performs a kNN search.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html", "name": "knn_search", "request": null, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_knn_search" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Delete the license.\n\nWhen the license expires, your subscription level reverts to Basic.\n\nIf the operator privileges feature is enabled, only operator users can use this API.", "docId": "delete-license", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-delete", "extDocId": "license-management", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/license/manage-your-license-in-self-managed-cluster", "name": "license.delete", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "license.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "license.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_license" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get license information.\n\nGet information about your Elastic license including its type, its status, when it was issued, and when it expires.\n\n>info\n> If the master node is generating a new cluster state, the get license API may return a `404 Not Found` response.\n> If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.", "docId": "get-license", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get", "name": "license.get", "request": { "name": "Request", "namespace": "license.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "license.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_license" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "stable" } }, "description": "Get the basic license status.", "docId": "get-basic-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-basic-status", "name": "license.get_basic_status", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "license.get_basic_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "license.get_basic_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_license/basic_status" } ] }, { "availability": { "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Get the trial status.", "docId": "get-trial-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-trial-status", "name": "license.get_trial_status", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "license.get_trial_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "license.get_trial_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_license/trial_status" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Update the license.\n\nYou can update your license at runtime without shutting down your nodes.\nLicense updates take effect immediately.\nIf the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response.\nYou must then re-submit the API request with the acknowledge parameter set to true.\n\nNOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license.\nIf the operator privileges feature is enabled, only operator users can use this API.", "docId": "update-license", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post", "name": "license.post", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "license.post" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "license.post" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_license" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "stable" } }, "description": "Start a basic license.\n\nStart an indefinite basic license, which gives access to all the basic features.\n\nNOTE: In order to start a basic license, you must not currently have a basic license.\n\nIf the basic license does not support all of the features that are available with your current license, however, you are notified in the response.\nYou must then re-submit the API request with the `acknowledge` parameter set to `true`.\n\nTo check the status of your basic license, use the get basic license API.", "docId": "start-basic", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-basic", "name": "license.post_start_basic", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "license.post_start_basic" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "license.post_start_basic" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_license/start_basic" } ] }, { "availability": { "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Start a trial.\nStart a 30-day trial, which gives access to all subscription features.\n\nNOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version.\nFor example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension.\n\nTo check the status of your trial, use the get trial status API.", "docId": "start-trial", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-trial", "name": "license.post_start_trial", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "license.post_start_trial" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "license.post_start_trial" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_license/start_trial" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.12.0", "stability": "stable" } }, "description": "Delete a Logstash pipeline.\nDelete a pipeline that is used for Logstash Central Management.\nIf the request succeeds, you receive an empty response with an appropriate status code.", "docId": "logstash-api-delete-pipeline", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-delete-pipeline", "extDocId": "logstash-centralized-pipeline-management", "extDocUrl": "https://www.elastic.co/docs/reference/logstash/logstash-centralized-pipeline-management", "name": "logstash.delete_pipeline", "privileges": { "cluster": [ "manage_logstash_pipelines" ] }, "request": { "name": "Request", "namespace": "logstash.delete_pipeline" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "logstash.delete_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_logstash/pipeline/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.12.0", "stability": "stable" } }, "description": "Get Logstash pipelines.\nGet pipelines that are used for Logstash Central Management.", "docId": "logstash-api-get-pipeline", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-get-pipeline", "extDocId": "logstash-centralized-pipeline-management", "extDocUrl": "https://www.elastic.co/docs/reference/logstash/logstash-centralized-pipeline-management", "name": "logstash.get_pipeline", "privileges": { "cluster": [ "manage_logstash_pipelines" ] }, "request": { "name": "Request", "namespace": "logstash.get_pipeline" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "logstash.get_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_logstash/pipeline" }, { "methods": [ "GET" ], "path": "/_logstash/pipeline/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.12.0", "stability": "stable" } }, "description": "Create or update a Logstash pipeline.\n\nCreate a pipeline that is used for Logstash Central Management.\nIf the specified pipeline exists, it is replaced.", "docId": "logstash-api-put-pipeline", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-put-pipeline", "extDocId": "logstash-centralized-pipeline-management", "extDocUrl": "https://www.elastic.co/docs/reference/logstash/logstash-centralized-pipeline-management", "name": "logstash.put_pipeline", "privileges": { "cluster": [ "manage_logstash_pipelines" ] }, "request": { "name": "Request", "namespace": "logstash.put_pipeline" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "logstash.put_pipeline" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_logstash/pipeline/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Get multiple documents.\n\nGet multiple JSON documents by ID from one or more indices.\nIf you specify an index in the request URI, you only need to specify the document IDs in the request body.\nTo ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail.\n\n**Filter source fields**\n\nBy default, the `_source` field is returned for every document (if stored).\nUse the `_source` and `_source_include` or `source_exclude` attributes to filter what fields are returned for a particular document.\nYou can include the `_source`, `_source_includes`, and `_source_excludes` query parameters in the request URI to specify the defaults to use when there are no per-document instructions.\n\n**Get stored fields**\n\nUse the `stored_fields` attribute to specify the set of stored fields you want to retrieve.\nAny requested fields that are not stored are ignored.\nYou can include the `stored_fields` query parameter in the request URI to specify the defaults to use when there are no per-document instructions.", "docId": "docs-multi-get", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mget", "name": "mget", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.mget" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.mget" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_mget" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_mget" } ] }, { "availability": { "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Get deprecation information.\nGet information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.\n\nTIP: This APIs is designed for indirect use by the Upgrade Assistant.\nYou are strongly recommended to use the Upgrade Assistant.", "docId": "migration-api-deprecation", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-deprecations", "name": "migration.deprecations", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "migration.deprecations" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "migration.deprecations" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_migration/deprecations" }, { "methods": [ "GET" ], "path": "/{index}/_migration/deprecations" } ] }, { "availability": { "stack": { "since": "7.16.0", "stability": "stable" } }, "description": "Get feature migration information.\nVersion upgrades sometimes require changes to how features store configuration information and data in system indices.\nCheck which features need to be migrated and the status of any migrations that are in progress.\n\nTIP: This API is designed for indirect use by the Upgrade Assistant.\nYou are strongly recommended to use the Upgrade Assistant.", "docId": "migration-api-feature-upgrade", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status", "name": "migration.get_feature_upgrade_status", "privileges": { "cluster": [ "manage" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "migration.get_feature_upgrade_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "migration.get_feature_upgrade_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_migration/system_features" } ] }, { "availability": { "stack": { "since": "7.16.0", "stability": "stable" } }, "description": "Start the feature migration.\nVersion upgrades sometimes require changes to how features store configuration information and data in system indices.\nThis API starts the automatic migration process.\n\nSome functionality might be temporarily unavailable during the migration process.\n\nTIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant.", "docId": "migration-api-feature-upgrade", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status", "name": "migration.post_feature_upgrade", "privileges": { "cluster": [ "manage" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "migration.post_feature_upgrade" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "migration.post_feature_upgrade" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_migration/system_features" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.5.0", "stability": "stable" } }, "description": "Clear trained model deployment cache.\n\nCache will be cleared on all nodes where the trained model is assigned.\nA trained model deployment may have an inference cache enabled.\nAs requests are handled by each allocated node, their responses may be cached on that individual node.\nCalling this API clears the caches without restarting the deployment.", "docId": "clear-trained-model", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-clear-trained-model-deployment-cache", "name": "ml.clear_trained_model_deployment_cache", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.clear_trained_model_deployment_cache" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.clear_trained_model_deployment_cache" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/trained_models/{model_id}/deployment/cache/_clear" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Close anomaly detection jobs.\n\nA job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.\nWhen you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.\nIf you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.\nWhen a datafeed that has a specified end date stops, it automatically closes its associated job.", "docId": "ml-close-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-close-job", "name": "ml.close_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.close_job" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.close_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_close" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Delete a calendar.\n\nRemove all scheduled events from a calendar, then delete it.", "docId": "ml-delete-calendar", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar", "name": "ml.delete_calendar", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_calendar" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_calendar" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/calendars/{calendar_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Delete events from a calendar.", "docId": "ml-delete-calendar-event", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar-event", "name": "ml.delete_calendar_event", "request": { "name": "Request", "namespace": "ml.delete_calendar_event" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_calendar_event" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/calendars/{calendar_id}/events/{event_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Delete anomaly jobs from a calendar.", "docId": "ml-delete-calendar-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar-job", "name": "ml.delete_calendar_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_calendar_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_calendar_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/calendars/{calendar_id}/jobs/{job_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Delete a data frame analytics job.", "docId": "ml-delete-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-data-frame-analytics", "name": "ml.delete_data_frame_analytics", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_data_frame_analytics" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/data_frame/analytics/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Delete a datafeed.", "docId": "ml-delete-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-datafeed", "name": "ml.delete_datafeed", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_datafeed" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_datafeed" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/datafeeds/{datafeed_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Delete expired ML data.\n\nDelete all job results, model snapshots and forecast data that have exceeded\ntheir retention days period. Machine learning state documents that are not\nassociated with any job are also deleted.\nYou can limit the request to a single or set of anomaly detection jobs by\nusing a job identifier, a group name, a comma-separated list of jobs, or a\nwildcard expression. You can delete expired data for all anomaly detection\njobs by using `_all`, by specifying `*` as the ``, or by omitting the\n``.", "docId": "ml-delete-expired-data", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-expired-data", "name": "ml.delete_expired_data", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_expired_data" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.delete_expired_data" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/_delete_expired_data/{job_id}" }, { "methods": [ "DELETE" ], "path": "/_ml/_delete_expired_data" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Delete a filter.\n\nIf an anomaly detection job references the filter, you cannot delete the\nfilter. You must update or delete the job before you can delete the filter.", "docId": "ml-delete-filter", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-filter", "name": "ml.delete_filter", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_filter" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_filter" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/filters/{filter_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Delete forecasts from a job.\n\nBy default, forecasts are retained for 14 days. You can specify a\ndifferent retention period with the `expires_in` parameter in the forecast\njobs API. The delete forecast API enables you to delete one or more\nforecasts before they expire.", "docId": "ml-delete-forecast", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-forecast", "name": "ml.delete_forecast", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_forecast" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_forecast" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/anomaly_detectors/{job_id}/_forecast" }, { "methods": [ "DELETE" ], "path": "/_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Delete an anomaly detection job.\n\nAll job configuration, model state and results are deleted.\nIt is not currently possible to delete multiple jobs using wildcards or a\ncomma separated list. If you delete a job that has a datafeed, the request\nfirst tries to delete the datafeed. This behavior is equivalent to calling\nthe delete datafeed API with the same timeout and force parameters as the\ndelete job request.", "docId": "ml-delete-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-job", "name": "ml.delete_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/anomaly_detectors/{job_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Delete a model snapshot.\n\nYou cannot delete the active model snapshot. To delete that snapshot, first\nrevert to a different one. To identify the active model snapshot, refer to\nthe `model_snapshot_id` in the results from the get jobs API.", "docId": "ml-delete-snapshot", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-model-snapshot", "name": "ml.delete_model_snapshot", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_model_snapshot" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_model_snapshot" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Delete an unreferenced trained model.\n\nThe request deletes a trained inference model that is not referenced by an ingest pipeline.", "docId": "delete-trained-models", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model", "name": "ml.delete_trained_model", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_trained_model" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.delete_trained_model" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/trained_models/{model_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Delete a trained model alias.\n\nThis API deletes an existing model alias that refers to a trained model. If\nthe model alias is missing or refers to a model other than the one identified\nby the `model_id`, this API returns an error.", "docId": "delete-trained-models-aliases", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model-alias", "name": "ml.delete_trained_model_alias", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.delete_trained_model_alias" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.delete_trained_model_alias" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.7.0", "stability": "stable" } }, "description": "Estimate job model memory usage.\n\nMake an estimation of the memory usage for an anomaly detection job model.\nThe estimate is based on analysis configuration details for the job and cardinality\nestimates for the fields it references.", "docId": "ml-estimate-memory", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-estimate-model-memory", "name": "ml.estimate_model_memory", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.estimate_model_memory" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.estimate_model_memory" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/_estimate_model_memory" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Evaluate data frame analytics.\n\nThe API packages together commonly used evaluation metrics for various types\nof machine learning features. This has been designed for use on indexes\ncreated by data frame analytics. Evaluation requires both a ground truth\nfield and an analytics result field to be present.", "docId": "evaluate-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-evaluate-data-frame", "name": "ml.evaluate_data_frame", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.evaluate_data_frame" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.evaluate_data_frame" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/data_frame/_evaluate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Explain data frame analytics config.\n\nThis API provides explanations for a data frame analytics config that either\nexists already or one that has not been created yet. The following\nexplanations are provided:\n* which fields are included or not in the analysis and why,\n* how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on.\nIf you have object fields or fields that are excluded via source filtering, they are not included in the explanation.", "docId": "explain-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-explain-data-frame-analytics", "name": "ml.explain_data_frame_analytics", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.explain_data_frame_analytics" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.explain_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/data_frame/analytics/_explain" }, { "methods": [ "GET", "POST" ], "path": "/_ml/data_frame/analytics/{id}/_explain" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "deprecation": { "description": "Forcing any buffered data to be processed is deprecated, in a future major version a datafeed will be required.", "version": "9.1.0" }, "description": "Force buffered data to be processed.\nThe flush jobs API is only applicable when sending data for analysis using\nthe post data API. Depending on the content of the buffer, then it might\nadditionally calculate new results. Both flush and close operations are\nsimilar, however the flush is more efficient if you are expecting to send\nmore data for analysis. When flushing, the job remains open and is available\nto continue analyzing data. A close operation additionally prunes and\npersists the model state to disk and the job must be opened again before\nanalyzing further data.", "docId": "ml-flush-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-flush-job", "name": "ml.flush_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.flush_job" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.flush_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_flush" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Predict future behavior of a time series.\n\nForecasts are not supported for jobs that perform population analysis; an\nerror occurs if you try to create a forecast for a job that has an\n`over_field_name` in its configuration. Forcasts predict future behavior\nbased on historical data.", "docId": "ml-forecast", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-forecast", "name": "ml.forecast", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.forecast" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.forecast" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_forecast" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Get anomaly detection job results for buckets.\nThe API presents a chronological view of the records, grouped by bucket.", "docId": "ml-get-bucket", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-buckets", "name": "ml.get_buckets", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_buckets" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_buckets" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}" }, { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/buckets" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Get info about events in calendars.", "docId": "ml-get-calendar-event", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendar-events", "name": "ml.get_calendar_events", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_calendar_events" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_calendar_events" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/calendars/{calendar_id}/events" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Get calendar configuration info.", "docId": "ml-get-calendar", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendars", "name": "ml.get_calendars", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_calendars" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_calendars" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/calendars" }, { "methods": [ "GET", "POST" ], "path": "/_ml/calendars/{calendar_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Get anomaly detection job results for categories.", "docId": "ml-get-category", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-categories", "name": "ml.get_categories", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_categories" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_categories" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/categories/{category_id}" }, { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/categories" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Get data frame analytics job configuration info.\nYou can get information for multiple data frame analytics jobs in a single\nAPI request by using a comma-separated list of data frame analytics jobs or a\nwildcard expression.", "docId": "get-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-data-frame-analytics", "name": "ml.get_data_frame_analytics", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_data_frame_analytics" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/data_frame/analytics/{id}" }, { "methods": [ "GET" ], "path": "/_ml/data_frame/analytics" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Get data frame analytics jobs usage info.", "docId": "get-dfanalytics-stats", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-data-frame-analytics-stats", "name": "ml.get_data_frame_analytics_stats", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_data_frame_analytics_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_data_frame_analytics_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/data_frame/analytics/_stats" }, { "methods": [ "GET" ], "path": "/_ml/data_frame/analytics/{id}/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get datafeeds usage info.\nYou can get statistics for multiple datafeeds in a single API request by\nusing a comma-separated list of datafeeds or a wildcard expression. You can\nget statistics for all datafeeds by using `_all`, by specifying `*` as the\n``, or by omitting the ``. If the datafeed is stopped, the\nonly information you receive is the `datafeed_id` and the `state`.\nThis API returns a maximum of 10,000 datafeeds.", "docId": "ml-get-datafeed-stats", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-datafeed-stats", "name": "ml.get_datafeed_stats", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_datafeed_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_datafeed_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/datafeeds/{datafeed_id}/_stats" }, { "methods": [ "GET" ], "path": "/_ml/datafeeds/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get datafeeds configuration info.\nYou can get information for multiple datafeeds in a single API request by\nusing a comma-separated list of datafeeds or a wildcard expression. You can\nget information for all datafeeds by using `_all`, by specifying `*` as the\n``, or by omitting the ``.\nThis API returns a maximum of 10,000 datafeeds.", "docId": "ml-get-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-datafeeds", "name": "ml.get_datafeeds", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_datafeeds" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_datafeeds" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/datafeeds/{datafeed_id}" }, { "methods": [ "GET" ], "path": "/_ml/datafeeds" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get filters.\nYou can get a single filter or all filters.", "docId": "ml-get-filter", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-filters", "name": "ml.get_filters", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_filters" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_filters" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/filters" }, { "methods": [ "GET" ], "path": "/_ml/filters/{filter_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Get anomaly detection job results for influencers.\nInfluencers are the entities that have contributed to, or are to blame for,\nthe anomalies. Influencer results are available only if an\n`influencer_field_name` is specified in the job configuration.", "docId": "ml-get-influencer", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-influencers", "name": "ml.get_influencers", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_influencers" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_influencers" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/influencers" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get anomaly detection jobs usage info.", "docId": "ml-get-job-stats", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-job-stats", "name": "ml.get_job_stats", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_job_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_job_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/anomaly_detectors/_stats" }, { "methods": [ "GET" ], "path": "/_ml/anomaly_detectors/{job_id}/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get anomaly detection jobs configuration info.\nYou can get information for multiple anomaly detection jobs in a single API\nrequest by using a group name, a comma-separated list of jobs, or a wildcard\nexpression. You can get information for all anomaly detection jobs by using\n`_all`, by specifying `*` as the ``, or by omitting the ``.", "docId": "ml-get-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-jobs", "name": "ml.get_jobs", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_jobs" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_jobs" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/anomaly_detectors/{job_id}" }, { "methods": [ "GET" ], "path": "/_ml/anomaly_detectors" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Get machine learning memory usage info.\nGet information about how machine learning jobs and trained models are using memory,\non each node, both within the JVM heap, and natively, outside of the JVM.", "docId": "ml-get-memory", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-memory-stats", "name": "ml.get_memory_stats", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_memory_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_memory_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/memory/_stats" }, { "methods": [ "GET" ], "path": "/_ml/memory/{node_id}/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.16.0", "stability": "stable" } }, "description": "Get anomaly detection job model snapshot upgrade usage info.", "docId": "ml-get-job-model-snapshot-upgrade-stats", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshot-upgrade-stats", "name": "ml.get_model_snapshot_upgrade_stats", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_model_snapshot_upgrade_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_model_snapshot_upgrade_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Get model snapshots info.", "docId": "ml-get-snapshot", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshots", "name": "ml.get_model_snapshots", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_model_snapshots" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_model_snapshots" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" }, { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.1.0", "stability": "stable" } }, "description": "Get overall bucket results.\n\nRetrievs overall bucket results that summarize the bucket results of\nmultiple anomaly detection jobs.\n\nThe `overall_score` is calculated by combining the scores of all the\nbuckets within the overall bucket span. First, the maximum\n`anomaly_score` per anomaly detection job in the overall bucket is\ncalculated. Then the `top_n` of those scores are averaged to result in\nthe `overall_score`. This means that you can fine-tune the\n`overall_score` so that it is more or less sensitive to the number of\njobs that detect an anomaly at the same time. For example, if you set\n`top_n` to `1`, the `overall_score` is the maximum bucket score in the\noverall bucket. Alternatively, if you set `top_n` to the number of jobs,\nthe `overall_score` is high only when all jobs detect anomalies in that\noverall bucket. If you set the `bucket_span` parameter (to a value\ngreater than its default), the `overall_score` is the maximum\n`overall_score` of the overall buckets that have a span equal to the\njobs' largest bucket span.", "docId": "ml-get-overall-buckets", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-overall-buckets", "name": "ml.get_overall_buckets", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_overall_buckets" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_overall_buckets" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/overall_buckets" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Get anomaly records for an anomaly detection job.\nRecords contain the detailed analytical results. They describe the anomalous\nactivity that has been identified in the input data based on the detector\nconfiguration.\nThere can be many anomaly records depending on the characteristics and size\nof the input data. In practice, there are often too many to be able to\nmanually process them. The machine learning features therefore perform a\nsophisticated aggregation of the anomaly records into buckets.\nThe number of record results depends on the number of anomalies found in each\nbucket, which relates to the number of time series being modeled and the\nnumber of detectors.", "docId": "ml-get-record", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-records", "name": "ml.get_records", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_records" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.get_records" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/results/records" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Get trained model configuration info.", "docId": "get-trained-models", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-trained-models", "name": "ml.get_trained_models", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_trained_models" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_trained_models" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/trained_models/{model_id}" }, { "methods": [ "GET" ], "path": "/_ml/trained_models" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Get trained models usage info.\nYou can get usage information for multiple trained\nmodels in a single API request by using a comma-separated list of model IDs or a wildcard expression.", "docId": "get-trained-models-stats", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-trained-models-stats", "name": "ml.get_trained_models_stats", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.get_trained_models_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.get_trained_models_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/trained_models/{model_id}/_stats" }, { "methods": [ "GET" ], "path": "/_ml/trained_models/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.3.0", "stability": "stable" } }, "description": "Evaluate a trained model.", "docId": "infer-trained-model", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-infer-trained-model", "name": "ml.infer_trained_model", "request": { "name": "Request", "namespace": "ml.infer_trained_model" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.infer_trained_model" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/trained_models/{model_id}/_infer" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.3.0", "stability": "stable" } }, "description": "Get machine learning information.\nGet defaults and limits used by machine learning.\nThis endpoint is designed to be used by a user interface that needs to fully\nunderstand machine learning configurations where some options are not\nspecified, meaning that the defaults should be used. This endpoint may be\nused to find out what those defaults are. It also provides information about\nthe maximum size of machine learning jobs that could run in the current\ncluster configuration.", "docId": "get-ml-info", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-info", "name": "ml.info", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ml/info" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Open anomaly detection jobs.\n\nAn anomaly detection job must be opened to be ready to receive and analyze\ndata. It can be opened and closed multiple times throughout its lifecycle.\nWhen you open a new job, it starts with an empty model.\nWhen you open an existing job, the most recent model state is automatically\nloaded. The job is ready to resume its analysis from where it left off, once\nnew data is received.", "docId": "ml-open-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-open-job", "name": "ml.open_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.open_job" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.open_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_open" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Add scheduled events to the calendar.", "docId": "ml-post-calendar-event", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-post-calendar-events", "name": "ml.post_calendar_events", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.post_calendar_events" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.post_calendar_events" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/calendars/{calendar_id}/events" } ] }, { "availability": { "stack": { "since": "5.4.0", "stability": "stable" } }, "deprecation": { "description": "Posting data directly to anomaly detection jobs is deprecated, in a future major version a datafeed will be required.", "version": "7.11.0" }, "description": "Send data to an anomaly detection job for analysis.\n\nIMPORTANT: For each job, data can be accepted from only a single connection at a time.\nIt is not currently possible to post data to multiple jobs using wildcards or a comma-separated list.", "docId": "ml-post-data", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-post-data", "name": "ml.post_data", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.post_data" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson", "application/json" ], "response": { "name": "Response", "namespace": "ml.post_data" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_data" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Preview features used by data frame analytics.\nPreview the extracted features used by a data frame analytics config.", "docId": "preview-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-preview-data-frame-analytics", "name": "ml.preview_data_frame_analytics", "privileges": { "cluster": [ "monitor_ml" ] }, "request": { "name": "Request", "namespace": "ml.preview_data_frame_analytics" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.preview_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/data_frame/analytics/_preview" }, { "methods": [ "GET", "POST" ], "path": "/_ml/data_frame/analytics/{id}/_preview" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Preview a datafeed.\nThis API returns the first \"page\" of search results from a datafeed.\nYou can preview an existing datafeed or provide configuration details for a datafeed\nand anomaly detection job in the API. The preview shows the structure of the data\nthat will be passed to the anomaly detection engine.\nIMPORTANT: When Elasticsearch security features are enabled, the preview uses the credentials of the user that\ncalled the API. However, when the datafeed starts it uses the roles of the last user that created or updated the\ndatafeed. To get a preview that accurately reflects the behavior of the datafeed, use the appropriate credentials.\nYou can also use secondary authorization headers to supply the credentials.", "docId": "ml-preview-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-preview-datafeed", "name": "ml.preview_datafeed", "privileges": { "cluster": [ "manage_ml" ], "index": [ "read" ] }, "request": { "name": "Request", "namespace": "ml.preview_datafeed" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.preview_datafeed" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ml/datafeeds/{datafeed_id}/_preview" }, { "methods": [ "GET", "POST" ], "path": "/_ml/datafeeds/_preview" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Create a calendar.", "docId": "ml-put-calendar", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-calendar", "name": "ml.put_calendar", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_calendar" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_calendar" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/calendars/{calendar_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Add anomaly detection job to calendar.", "docId": "ml-put-calendar-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-calendar-job", "name": "ml.put_calendar_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_calendar_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.put_calendar_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/calendars/{calendar_id}/jobs/{job_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Create a data frame analytics job.\nThis API creates a data frame analytics job that performs an analysis on the\nsource indices and stores the outcome in a destination index.\nBy default, the query used in the source configuration is `{\"match_all\": {}}`.\n\nIf the destination index does not exist, it is created automatically when you start the job.\n\nIf you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters.", "docId": "put-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-data-frame-analytics", "name": "ml.put_data_frame_analytics", "privileges": { "cluster": [ "manage_ml" ], "index": [ "create_index", "index", "manage", "read", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "ml.put_data_frame_analytics" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/data_frame/analytics/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Create a datafeed.\nDatafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job.\nYou can associate only one datafeed with each anomaly detection job.\nThe datafeed contains a query that runs at a defined interval (`frequency`).\nIf you are concerned about delayed data, you can add a delay (`query_delay') at each interval.\nBy default, the datafeed uses the following query: `{\"match_all\": {\"boost\": 1}}`.\n\nWhen Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had\nat the time of creation and runs the query using those same roles. If you provide secondary authorization headers,\nthose credentials are used instead.\nYou must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed\ndirectly to the `.ml-config` index. Do not give users `write` privileges on the `.ml-config` index.", "docId": "ml-put-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-datafeed", "name": "ml.put_datafeed", "privileges": { "cluster": [ "manage_ml" ], "index": [ "read" ] }, "request": { "name": "Request", "namespace": "ml.put_datafeed" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_datafeed" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/datafeeds/{datafeed_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Create a filter.\nA filter contains a list of strings. It can be used by one or more anomaly detection jobs.\nSpecifically, filters are referenced in the `custom_rules` property of detector configuration objects.", "docId": "ml-put-filter", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-filter", "name": "ml.put_filter", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_filter" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_filter" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/filters/{filter_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Create an anomaly detection job.\n\nIf you include a `datafeed_config`, you must have read index privileges on the source index.\nIf you include a `datafeed_config` but do not provide a query, the datafeed uses `{\"match_all\": {\"boost\": 1}}`.", "docId": "ml-put-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-job", "name": "ml.put_job", "privileges": { "cluster": [ "manage_ml" ], "index": [ "read" ] }, "request": { "name": "Request", "namespace": "ml.put_job" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/anomaly_detectors/{job_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Create a trained model.\nEnable you to supply a trained model that is not created by data frame analytics.", "docId": "put-trained-models", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model", "name": "ml.put_trained_model", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_trained_model" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_trained_model" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/trained_models/{model_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Create or update a trained model alias.\nA trained model alias is a logical name used to reference a single trained\nmodel.\nYou can use aliases instead of trained model identifiers to make it easier to\nreference your models. For example, you can use aliases in inference\naggregations and processors.\nAn alias must be unique and refer to only a single trained model. However,\nyou can have multiple aliases for each trained model.\nIf you use this API to update an alias such that it references a different\ntrained model ID and the model uses a different type of data frame analytics,\nan error occurs. For example, this situation occurs if you have a trained\nmodel for regression analysis and a trained model for classification\nanalysis; you cannot reassign an alias from one type of trained model to\nanother.\nIf you use this API to update an alias and there are very few input fields in\ncommon between the old and new trained models for the model alias, the API\nreturns a warning.", "docId": "put-trained-models-aliases", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-alias", "name": "ml.put_trained_model_alias", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_trained_model_alias" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_trained_model_alias" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.0.0", "stability": "stable" } }, "description": "Create part of a trained model definition.", "docId": "put-trained-model-definition-part", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-definition-part", "name": "ml.put_trained_model_definition_part", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_trained_model_definition_part" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_trained_model_definition_part" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/trained_models/{model_id}/definition/{part}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.0.0", "stability": "stable" } }, "description": "Create a trained model vocabulary.\nThis API is supported only for natural language processing (NLP) models.\nThe vocabulary is stored in the index as described in `inference_config.*.vocabulary` of the trained model definition.", "docId": "put-trained-model-vocabulary", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-vocabulary", "name": "ml.put_trained_model_vocabulary", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.put_trained_model_vocabulary" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.put_trained_model_vocabulary" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_ml/trained_models/{model_id}/vocabulary" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.14.0", "stability": "stable" } }, "description": "Reset an anomaly detection job.\nAll model state and results are deleted. The job is ready to start over as if\nit had just been created.\nIt is not currently possible to reset multiple jobs using wildcards or a\ncomma separated list.", "docId": "ml-reset-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-reset-job", "name": "ml.reset_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.reset_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.reset_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_reset" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Revert to a snapshot.\nThe machine learning features react quickly to anomalous input, learning new\nbehaviors in data. Highly anomalous input increases the variance in the\nmodels whilst the system learns whether this is a new step-change in behavior\nor a one-off event. In the case where this anomalous input is known to be a\none-off, then it might be appropriate to reset the model state to a time\nbefore this event. For example, you might consider reverting to a saved\nsnapshot after Black Friday or a critical system failure.", "docId": "ml-revert-snapshot", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-revert-model-snapshot", "name": "ml.revert_model_snapshot", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.revert_model_snapshot" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.revert_model_snapshot" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.7.0", "stability": "stable" } }, "description": "Set upgrade_mode for ML indices.\nSets a cluster wide upgrade_mode setting that prepares machine learning\nindices for an upgrade.\nWhen upgrading your cluster, in some circumstances you must restart your\nnodes and reindex your machine learning indices. In those circumstances,\nthere must be no machine learning jobs running. You can close the machine\nlearning jobs, do the upgrade, then open all the jobs again. Alternatively,\nyou can use this API to temporarily halt tasks associated with the jobs and\ndatafeeds and prevent new jobs from opening. You can also use this API\nduring upgrades that do not require you to reindex your machine learning\nindices, though stopping jobs is not a requirement in that case.\nYou can see the current value for the upgrade_mode setting by using the get\nmachine learning info API.", "docId": "ml-set-upgrade-mode", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-set-upgrade-mode", "name": "ml.set_upgrade_mode", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.set_upgrade_mode" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.set_upgrade_mode" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/set_upgrade_mode" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Start a data frame analytics job.\nA data frame analytics job can be started and stopped multiple times\nthroughout its lifecycle.\nIf the destination index does not exist, it is created automatically the\nfirst time you start the data frame analytics job. The\n`index.number_of_shards` and `index.number_of_replicas` settings for the\ndestination index are copied from the source index. If there are multiple\nsource indices, the destination index copies the highest setting values. The\nmappings for the destination index are also copied from the source indices.\nIf there are any mapping conflicts, the job fails to start.\nIf the destination index exists, it is used as is. You can therefore set up\nthe destination index in advance with custom settings and mappings.", "docId": "start-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-data-frame-analytics", "name": "ml.start_data_frame_analytics", "privileges": { "cluster": [ "manage_ml" ], "index": [ "create_index", "index", "manage", "read", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "ml.start_data_frame_analytics" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.start_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/data_frame/analytics/{id}/_start" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Start datafeeds.\n\nA datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped\nmultiple times throughout its lifecycle.\n\nBefore you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs.\n\nIf you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped.\nIf new data was indexed for that exact millisecond between stopping and starting, it will be ignored.\n\nWhen Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or\nupdate it had at the time of creation or update and runs the query using those same roles. If you provided secondary\nauthorization headers when you created or updated the datafeed, those credentials are used instead.", "docId": "ml-start-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-datafeed", "name": "ml.start_datafeed", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.start_datafeed" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.start_datafeed" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/datafeeds/{datafeed_id}/_start" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.0.0", "stability": "stable" } }, "description": "Start a trained model deployment.\nIt allocates the model to every machine learning node.", "docId": "start-trained-model-deployment", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-trained-model-deployment", "name": "ml.start_trained_model_deployment", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.start_trained_model_deployment" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.start_trained_model_deployment" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/trained_models/{model_id}/deployment/_start" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Stop data frame analytics jobs.\nA data frame analytics job can be started and stopped multiple times\nthroughout its lifecycle.", "docId": "stop-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-data-frame-analytics", "name": "ml.stop_data_frame_analytics", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.stop_data_frame_analytics" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.stop_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/data_frame/analytics/{id}/_stop" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Stop datafeeds.\nA datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped\nmultiple times throughout its lifecycle.", "docId": "ml-stop-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-datafeed", "name": "ml.stop_datafeed", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.stop_datafeed" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.stop_datafeed" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/datafeeds/{datafeed_id}/_stop" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.0.0", "stability": "stable" } }, "description": "Stop a trained model deployment.", "docId": "stop-trained-model-deployment", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-trained-model-deployment", "name": "ml.stop_trained_model_deployment", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.stop_trained_model_deployment" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.stop_trained_model_deployment" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/trained_models/{model_id}/deployment/_stop" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Update a data frame analytics job.", "docId": "update-dfanalytics", "docTag": "ml data frame", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-data-frame-analytics", "name": "ml.update_data_frame_analytics", "privileges": { "cluster": [ "manage_ml" ], "index": [ "read", "create_index", "manage", "index", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "ml.update_data_frame_analytics" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.update_data_frame_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/data_frame/analytics/{id}/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.4.0", "stability": "stable" } }, "description": "Update a datafeed.\nYou must stop and start the datafeed for the changes to be applied.\nWhen Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at\nthe time of the update and runs the query using those same roles. If you provide secondary authorization headers,\nthose credentials are used instead.", "docId": "ml-update-datafeed", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-datafeed", "name": "ml.update_datafeed", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.update_datafeed" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.update_datafeed" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/datafeeds/{datafeed_id}/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.4.0", "stability": "stable" } }, "description": "Update a filter.\nUpdates the description of a filter, adds items, or removes items from the list.", "docId": "ml-update-filter", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-filter", "name": "ml.update_filter", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.update_filter" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.update_filter" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/filters/{filter_id}/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Update an anomaly detection job.\nUpdates certain properties of an anomaly detection job.", "docId": "ml-update-job", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-job", "name": "ml.update_job", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.update_job" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.update_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Update a snapshot.\nUpdates certain properties of a snapshot.", "docId": "ml-update-snapshot", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-model-snapshot", "name": "ml.update_model_snapshot", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.update_model_snapshot" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.update_model_snapshot" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.6.0", "stability": "stable" } }, "description": "Update a trained model deployment.", "docId": "update-trained-model-deployment", "docTag": "ml trained model", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-trained-model-deployment", "name": "ml.update_trained_model_deployment", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.update_trained_model_deployment" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.update_trained_model_deployment" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/trained_models/{model_id}/deployment/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable" } }, "description": "Upgrade a snapshot.\nUpgrade an anomaly detection model snapshot to the latest major version.\nOver time, older snapshot formats are deprecated and removed. Anomaly\ndetection jobs support only snapshots that are from the current or previous\nmajor version.\nThis API provides a means to upgrade a snapshot to the current major version.\nThis aids in preparing the cluster for an upgrade to the next major version.\nOnly one snapshot per anomaly detection job can be upgraded at a time and the\nupgraded snapshot cannot be the current snapshot of the anomaly detection\njob.", "docId": "ml-upgrade-job-model-snapshot", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-upgrade-job-snapshot", "name": "ml.upgrade_job_snapshot", "privileges": { "cluster": [ "manage_ml" ] }, "request": { "name": "Request", "namespace": "ml.upgrade_job_snapshot" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ml.upgrade_job_snapshot" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.3.0", "stability": "stable", "visibility": "private" } }, "description": "Validate an anomaly detection job.", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html", "name": "ml.validate", "request": { "name": "Request", "namespace": "ml.validate" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.validate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/_validate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.4.0", "stability": "stable", "visibility": "private" } }, "description": "Validate an anomaly detection job.", "docId": "apis", "docTag": "ml anomaly", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch", "name": "ml.validate_detector", "request": { "name": "Request", "namespace": "ml.validate_detector" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "ml.validate_detector" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_ml/anomaly_detectors/_validate/detector" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "stable", "visibility": "private" } }, "description": "Send monitoring data.\nThis API is used by the monitoring features to send monitoring data.", "docId": "apis", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch", "name": "monitoring.bulk", "request": { "name": "Request", "namespace": "monitoring.bulk" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson" ], "response": { "name": "Response", "namespace": "monitoring.bulk" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "PUT" ], "path": "/_monitoring/bulk" }, { "deprecation": { "description": "Specifying types in urls has been deprecated", "version": "7.0.0" }, "methods": [ "POST", "PUT" ], "path": "/_monitoring/{type}/bulk" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Run multiple searches.\n\nThe format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format.\nThe structure is as follows:\n\n```\nheader\\n\nbody\\n\nheader\\n\nbody\\n\n```\n\nThis structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node.\n\nIMPORTANT: The final line of data must end with a newline character `\\n`.\nEach newline character may be preceded by a carriage return `\\r`.\nWhen sending requests to this endpoint the `Content-Type` header should be set to `application/x-ndjson`.", "docId": "search-multi-search", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch", "name": "msearch", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.msearch" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson" ], "response": { "name": "Response", "namespace": "_global.msearch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_msearch" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_msearch" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "stable" } }, "description": "Run multiple templated searches.\n\nRun multiple templated searches with a single request.\nIf you are providing a text file or text input to `curl`, use the `--data-binary` flag instead of `-d` to preserve newlines.\nFor example:\n\n```\n$ cat requests\n{ \"index\": \"my-index\" }\n{ \"id\": \"my-search-template\", \"params\": { \"query_string\": \"hello world\", \"from\": 0, \"size\": 10 }}\n{ \"index\": \"my-other-index\" }\n{ \"id\": \"my-other-search-template\", \"params\": { \"query_type\": \"match_all\" }}\n\n$ curl -H \"Content-Type: application/x-ndjson\" -XGET localhost:9200/_msearch/template --data-binary \"@requests\"; echo\n```", "docId": "search-multi-search-template", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch-template", "extDocId": "search-templates", "extDocUrl": "https://www.elastic.co/docs/solutions/search/search-templates", "name": "msearch_template", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.msearch_template" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson" ], "response": { "name": "Response", "namespace": "_global.msearch_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_msearch/template" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_msearch/template" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get multiple term vectors.\n\nGet multiple term vectors with a single request.\nYou can specify existing documents by index and ID or provide artificial documents in the body of the request.\nYou can specify the index in the request body or request URI.\nThe response contains a `docs` array with all the fetched termvectors.\nEach element has the structure provided by the termvectors API.\n\n**Artificial documents**\n\nYou can also use `mtermvectors` to generate term vectors for artificial documents provided in the body of the request.\nThe mapping used is determined by the specified `_index`.", "docId": "docs-multi-termvectors", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mtermvectors", "name": "mtermvectors", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.mtermvectors" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.mtermvectors" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_mtermvectors" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_mtermvectors" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.16.0", "stability": "experimental" } }, "description": "Clear the archived repositories metering.\nClear the archived repositories metering information in the cluster.", "docId": "clear-repositories-metering-archive-api", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-clear-repositories-metering-archive", "name": "nodes.clear_repositories_metering_archive", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "nodes.clear_repositories_metering_archive" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "nodes.clear_repositories_metering_archive" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_nodes/{node_id}/_repositories_metering/{max_archive_version}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "7.16.0", "stability": "experimental" } }, "description": "Get cluster repositories metering.\nGet repositories metering information for a cluster.\nThis API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time.\nAdditionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts.", "docId": "get-repositories-metering-api", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-get-repositories-metering-info", "name": "nodes.get_repositories_metering_info", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "nodes.get_repositories_metering_info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "nodes.get_repositories_metering_info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_nodes/{node_id}/_repositories_metering" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get the hot threads for nodes.\nGet a breakdown of the hot threads on each selected node in the cluster.\nThe output is plain text with a breakdown of the top hot threads for each node.", "docId": "cluster-nodes-hot-threads", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-hot-threads", "name": "nodes.hot_threads", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "nodes.hot_threads" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "nodes.hot_threads" }, "responseMediaType": [ "text/plain" ], "urls": [ { "methods": [ "GET" ], "path": "/_nodes/hot_threads" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/hot_threads" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "1.3.0", "stability": "stable" } }, "description": "Get node information.\n\nBy default, the API returns all attributes and core settings for cluster nodes.", "docId": "cluster-nodes-info", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-info", "name": "nodes.info", "request": { "name": "Request", "namespace": "nodes.info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "nodes.info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_nodes" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}" }, { "methods": [ "GET" ], "path": "/_nodes/{metric}" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/{metric}" } ] }, { "availability": { "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Reload the keystore on nodes in the cluster.\n\nSecure settings are stored in an on-disk keystore. Certain of these settings are reloadable.\nThat is, you can change them on disk and reload them without restarting any nodes in the cluster.\nWhen you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node.\n\nWhen the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings.\nReloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted.\nAlternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password.", "docId": "cluster-nodes-reload-secure-settings", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-reload-secure-settings", "name": "nodes.reload_secure_settings", "request": { "name": "Request", "namespace": "nodes.reload_secure_settings" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "nodes.reload_secure_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_nodes/reload_secure_settings" }, { "methods": [ "POST" ], "path": "/_nodes/{node_id}/reload_secure_settings" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get node statistics.\nGet statistics for nodes in a cluster.\nBy default, all stats are returned. You can limit the returned information by using metrics.", "docId": "cluster-nodes-stats", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-stats", "name": "nodes.stats", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "nodes.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "nodes.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_nodes/stats" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/stats" }, { "methods": [ "GET" ], "path": "/_nodes/stats/{metric}" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/stats/{metric}" }, { "methods": [ "GET" ], "path": "/_nodes/stats/{metric}/{index_metric}" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/stats/{metric}/{index_metric}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.0.0", "stability": "stable" } }, "description": "Get feature usage information.", "docId": "cluster-nodes-usage", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-usage", "name": "nodes.usage", "privileges": { "cluster": [ "monitor", "manage" ] }, "request": { "name": "Request", "namespace": "nodes.usage" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "nodes.usage" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_nodes/usage" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/usage" }, { "methods": [ "GET" ], "path": "/_nodes/usage/{metric}" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/usage/{metric}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Open a point in time.\n\nA search request by default runs against the most recent visible data of the target indices,\nwhich is called point in time. Elasticsearch pit (point in time) is a lightweight view into the\nstate of the data as it existed when initiated. In some cases, it’s preferred to perform multiple\nsearch requests using the same point in time. For example, if refreshes happen between\n`search_after` requests, then the results of those requests might not be consistent as changes happening\nbetween searches are only visible to the more recent point in time.\n\nA point in time must be opened explicitly before being used in search requests.\n\nA subsequent search request with the `pit` parameter must not specify `index`, `routing`, or `preference` values as these parameters are copied from the point in time.\n\nJust like regular searches, you can use `from` and `size` to page through point in time search results, up to the first 10,000 hits.\nIf you want to retrieve more hits, use PIT with `search_after`.\n\nIMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request.\n\nWhen a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a `NoShardAvailableActionException` exception.\nTo get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime.\n\n**Keeping point in time alive**\n\nThe `keep_alive` parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time.\nThe value does not need to be long enough to process all data — it just needs to be long enough for the next request.\n\nNormally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments.\nOnce the smaller segments are no longer needed they are deleted.\nHowever, open point-in-times prevent the old segments from being deleted since they are still in use.\n\nTIP: Keeping older segments alive means that more disk space and file handles are needed.\nEnsure that you have configured your nodes to have ample free file handles.\n\nAdditionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request.\nEnsure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates.\nNote that a point-in-time doesn't prevent its associated indices from being deleted.\nYou can check how many point-in-times (that is, search contexts) are open with the nodes stats API.", "docId": "point-in-time-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time", "name": "open_point_in_time", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.open_point_in_time" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.open_point_in_time" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_pit" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Ping the cluster.\nGet information about whether the cluster is running.", "docId": "cluster-ping", "docTag": "cluster", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cluster", "name": "ping", "request": { "name": "Request", "namespace": "_global.ping" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.ping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "HEAD" ], "path": "/" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "private" } }, "description": "Extracts a UI-optimized structure to render flamegraphs from Universal Profiling.", "docUrl": "https://www.elastic.co/guide/en/observability/current/universal-profiling.html", "name": "profiling.flamegraph", "request": null, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_profiling/flamegraph" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "private" } }, "description": "Extracts raw stacktrace information from Universal Profiling.", "docUrl": "https://www.elastic.co/guide/en/observability/current/universal-profiling.html", "name": "profiling.stacktraces", "request": null, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_profiling/stacktraces" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "private" } }, "description": "Returns basic information about the status of Universal Profiling.", "docUrl": "https://www.elastic.co/guide/en/observability/current/universal-profiling.html", "name": "profiling.status", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_profiling/status" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "private" } }, "description": "Extracts a list of topN functions from Universal Profiling.", "docUrl": "https://www.elastic.co/guide/en/observability/current/universal-profiling.html", "name": "profiling.topn_functions", "request": null, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_profiling/topn/functions" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Create or update a script or search template.\nCreates or updates a stored script or search template.", "docId": "script-put", "docTag": "script", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-put-script", "extDocId": "search-template", "extDocUrl": "https://www.elastic.co/docs/solutions/search/search-templates", "name": "put_script", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "_global.put_script" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.put_script" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_scripts/{id}" }, { "methods": [ "PUT", "POST" ], "path": "/_scripts/{id}/{context}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Delete a query rule.\nDelete a query rule within a query ruleset.\nThis is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.", "docId": "query-rule-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-delete-rule", "name": "query_rules.delete_rule", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.delete_rule" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "query_rules.delete_rule" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_query_rules/{ruleset_id}/_rule/{rule_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Delete a query ruleset.\nRemove a query ruleset and its associated data.\nThis is a destructive action that is not recoverable.", "docId": "query-ruleset-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-delete-ruleset", "name": "query_rules.delete_ruleset", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.delete_ruleset" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "query_rules.delete_ruleset" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_query_rules/{ruleset_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Get a query rule.\nGet details about a query rule within a query ruleset.", "docId": "query-rule-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-rule", "extDocId": "query-rule", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/searching-with-query-rules", "name": "query_rules.get_rule", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.get_rule" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "query_rules.get_rule" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_query_rules/{ruleset_id}/_rule/{rule_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Get a query ruleset.\nGet details about a query ruleset.", "docId": "query-ruleset-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-ruleset", "name": "query_rules.get_ruleset", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.get_ruleset" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "query_rules.get_ruleset" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_query_rules/{ruleset_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Get all query rulesets.\nGet summarized information about the query rulesets.", "docId": "query-ruleset-list", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-list-rulesets", "name": "query_rules.list_rulesets", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.list_rulesets" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "query_rules.list_rulesets" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_query_rules" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Create or update a query rule.\nCreate or update a query rule within a query ruleset.\n\nIMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule.\nIt is advised to use one or the other in query rulesets, to avoid errors.\nAdditionally, pinned queries have a maximum limit of 100 pinned hits.\nIf multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.", "docId": "query-rule-put", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-put-rule", "name": "query_rules.put_rule", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.put_rule" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "query_rules.put_rule" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_query_rules/{ruleset_id}/_rule/{rule_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Create or update a query ruleset.\nThere is a limit of 100 rules per ruleset.\nThis limit can be increased by using the `xpack.applications.rules.max_rules_per_ruleset` cluster setting.\n\nIMPORTANT: Due to limitations within pinned queries, you can only select documents using `ids` or `docs`, but cannot use both in single rule.\nIt is advised to use one or the other in query rulesets, to avoid errors.\nAdditionally, pinned queries have a maximum limit of 100 pinned hits.\nIf multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.", "docId": "query-ruleset-put", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-put-ruleset", "extDocId": "query-rule", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/searching-with-query-rules", "name": "query_rules.put_ruleset", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.put_ruleset" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "query_rules.put_ruleset" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_query_rules/{ruleset_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Test a query ruleset.\nEvaluate match criteria against a query ruleset to identify the rules that would match that criteria.", "docId": "query-ruleset-test", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-test", "name": "query_rules.test", "privileges": { "cluster": [ "manage_search_query_rules" ] }, "request": { "name": "Request", "namespace": "query_rules.test" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "query_rules.test" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_query_rules/{ruleset_id}/_test" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Evaluate ranked search results.\n\nEvaluate the quality of ranked search results over a set of typical search queries.", "docId": "search-rank-eval", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rank-eval", "name": "rank_eval", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.rank_eval" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.rank_eval" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_rank_eval" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_rank_eval" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "2.3.0", "stability": "stable" } }, "description": "Reindex documents.\n\nCopy documents from a source to a destination.\nYou can copy all documents to the destination index or reindex a subset of the documents.\nThe source can be any existing index, alias, or data stream.\nThe destination must differ from the source.\nFor example, you cannot reindex a data stream into itself.\n\nIMPORTANT: Reindex requires `_source` to be enabled for all documents in the source.\nThe destination should be configured as wanted before calling the reindex API.\nReindex does not copy the settings from the source or its associated template.\nMappings, shard counts, and replicas, for example, must be configured ahead of time.\n\nIf the Elasticsearch security features are enabled, you must have the following security privileges:\n\n* The `read` index privilege for the source data stream, index, or alias.\n* The `write` index privilege for the destination data stream, index, or index alias.\n* To automatically create a data stream or index with a reindex API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege for the destination data stream, index, or alias.\n* If reindexing from a remote cluster, the `source.remote.user` must have the `monitor` cluster privilege and the `read` index privilege for the source data stream, index, or alias.\n\nIf reindexing from a remote cluster, you must explicitly allow the remote host in the `reindex.remote.whitelist` setting.\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\nThe `dest` element can be configured like the index API to control optimistic concurrency control.\nOmitting `version_type` or setting it to `internal` causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID.\n\nSetting `version_type` to `external` causes Elasticsearch to preserve the `version` from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source.\n\nSetting `op_type` to `create` causes the reindex API to create only missing documents in the destination.\nAll existing documents will cause a version conflict.\n\nIMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an `op_type` of `create`.\nA reindex can only add new documents to a destination data stream.\nIt cannot update existing documents in a destination data stream.\n\nBy default, version conflicts abort the reindex process.\nTo continue reindexing if there are conflicts, set the `conflicts` request body property to `proceed`.\nIn this case, the response includes a count of the version conflicts that were encountered.\nNote that the handling of other error types is unaffected by the `conflicts` property.\nAdditionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query.\n\nNOTE: The reindex API makes no effort to handle ID collisions.\nThe last document written will \"win\" but the order isn't usually predictable so it is not a good idea to rely on this behavior.\nInstead, make sure that IDs are unique by using a script.\n\n**Running reindex asynchronously**\n\nIf the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task.\nElasticsearch creates a record of this task as a document at `_tasks/`.\n\n**Reindex from multiple sources**\n\nIf you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources.\nThat way you can resume the process if there are any errors by removing the partially completed source and starting over.\nIt also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel.\n\nFor example, you can use a bash script like this:\n\n```\nfor index in i1 i2 i3 i4 i5; do\n curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{\n \"source\": {\n \"index\": \"'$index'\"\n },\n \"dest\": {\n \"index\": \"'$index'-reindexed\"\n }\n }'\ndone\n```\n\n**Throttling**\n\nSet `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, for example) to throttle the rate at which reindex issues batches of index operations.\nRequests are throttled by padding each batch with a wait time.\nTo turn off throttling, set `requests_per_second` to `-1`.\n\nThe throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding.\nThe padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing.\nBy default the batch size is `1000`, so if `requests_per_second` is set to `500`:\n\n```\ntarget_time = 1000 / 500 per second = 2 seconds\nwait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds\n```\n\nSince the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set.\nThis is \"bursty\" instead of \"smooth\".\n\n**Slicing**\n\nReindex supports sliced scroll to parallelize the reindexing process.\nThis parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nNOTE: Reindexing from remote clusters does not support manual or automatic slicing.\n\nYou can slice a reindex request manually by providing a slice ID and total number of slices to each request.\nYou can also let reindex automatically parallelize by using sliced scroll to slice on `_id`.\nThe `slices` parameter specifies the number of slices to use.\n\nAdding `slices` to the reindex request just automates the manual process, creating sub-requests which means it has some quirks:\n\n* You can see these requests in the tasks API. These sub-requests are \"child\" tasks of the task for the request with slices.\n* Fetching the status of the task for the request with `slices` only contains the status of completed slices.\n* These sub-requests are individually addressable for things like cancellation and rethrottling.\n* Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally.\n* Canceling the request with `slices` will cancel each sub-request.\n* Due to the nature of `slices`, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution.\n* Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being reindexed.\n* Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time.\n\nIf slicing automatically, setting `slices` to `auto` will choose a reasonable number for most indices.\nIf slicing manually or otherwise tuning automatic slicing, use the following guidelines.\n\nQuery performance is most efficient when the number of slices is equal to the number of shards in the index.\nIf that number is large (for example, `500`), choose a lower number as too many slices will hurt performance.\nSetting slices higher than the number of shards generally does not improve efficiency and adds overhead.\n\nIndexing performance scales linearly across available resources with the number of slices.\n\nWhether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources.\n\n**Modify documents during reindexing**\n\nLike `_update_by_query`, reindex operations support a script that modifies the document.\nUnlike `_update_by_query`, the script is allowed to modify the document's metadata.\n\nJust as in `_update_by_query`, you can set `ctx.op` to change the operation that is run on the destination.\nFor example, set `ctx.op` to `noop` if your script decides that the document doesn’t have to be indexed in the destination. This \"no operation\" will be reported in the `noop` counter in the response body.\nSet `ctx.op` to `delete` if your script decides that the document must be deleted from the destination.\nThe deletion will be reported in the `deleted` counter in the response body.\nSetting `ctx.op` to anything else will return an error, as will setting any other field in `ctx`.\n\nThink of the possibilities! Just be careful; you are able to change:\n\n* `_id`\n* `_index`\n* `_version`\n* `_routing`\n\nSetting `_version` to `null` or clearing it from the `ctx` map is just like not sending the version in an indexing request.\nIt will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API.\n\n**Reindex from remote**\n\nReindex supports reindexing from a remote Elasticsearch cluster.\nThe `host` parameter must contain a scheme, host, port, and optional path.\nThe `username` and `password` parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication.\nBe sure to use HTTPS when using basic authentication or the password will be sent in plain text.\nThere are a range of settings available to configure the behavior of the HTTPS connection.\n\nWhen using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key.\nRemote hosts must be explicitly allowed with the `reindex.remote.whitelist` setting.\nIt can be set to a comma delimited list of allowed remote host and port combinations.\nScheme is ignored; only the host and port are used.\nFor example:\n\n```\nreindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*\"]\n```\n\nThe list of allowed hosts must be configured on any nodes that will coordinate the reindex.\nThis feature should work with remote clusters of any version of Elasticsearch.\nThis should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version.\n\nWARNING: Elasticsearch does not support forward compatibility across major versions.\nFor example, you cannot reindex from a 7.x cluster into a 6.x cluster.\n\nTo enable queries sent to older versions of Elasticsearch, the `query` parameter is sent directly to the remote host without validation or modification.\n\nNOTE: Reindexing from remote clusters does not support manual or automatic slicing.\n\nReindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb.\nIf the remote index includes very large documents you'll need to use a smaller batch size.\nIt is also possible to set the socket read timeout on the remote connection with the `socket_timeout` field and the connection timeout with the `connect_timeout` field.\nBoth default to 30 seconds.\n\n**Configuring SSL parameters**\n\nReindex from remote supports configurable SSL settings.\nThese must be specified in the `elasticsearch.yml` file, with the exception of the secure settings, which you add in the Elasticsearch keystore.\nIt is not possible to configure SSL in the body of the reindex request.", "docId": "docs-reindex", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex", "name": "reindex", "privileges": { "index": [ "read", "write" ] }, "request": { "name": "Request", "namespace": "_global.reindex" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.reindex" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_reindex" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "2.4.0", "stability": "stable" } }, "description": "Throttle a reindex operation.\n\nChange the number of requests per second for a particular reindex operation.\nFor example:\n\n```\nPOST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1\n```\n\nRethrottling that speeds up the query takes effect immediately.\nRethrottling that slows down the query will take effect after completing the current batch.\nThis behavior prevents scroll timeouts.", "docId": "docs-reindex", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex", "name": "reindex_rethrottle", "request": { "name": "Request", "namespace": "_global.reindex_rethrottle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.reindex_rethrottle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_reindex/{task_id}/_rethrottle" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Render a search template.\n\nRender a search template as a search request body.", "docId": "render-search-template-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-render-search-template", "name": "render_search_template", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.render_search_template" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.render_search_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_render/template" }, { "methods": [ "GET", "POST" ], "path": "/_render/template/{id}" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Delete a rollup job.\n\nA job must be stopped before it can be deleted.\nIf you attempt to delete a started job, an error occurs.\nSimilarly, if you attempt to delete a nonexistent job, an exception occurs.\n\nIMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data.\nThe API does not delete any previously rolled up data.\nThis is by design; a user may wish to roll up a static data set.\nBecause the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data).\nThus the job can be deleted, leaving behind the rolled up data for analysis.\nIf you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index.\nIf the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example:\n\n```\nPOST my_rollup_index/_delete_by_query\n{\n \"query\": {\n \"term\": {\n \"_rollup.id\": \"the_rollup_job_id\"\n }\n }\n}\n```", "docId": "rollup-delete-job", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-delete-job", "name": "rollup.delete_job", "privileges": { "cluster": [ "manage_rollup" ] }, "request": { "name": "Request", "namespace": "rollup.delete_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "rollup.delete_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_rollup/job/{id}" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Get rollup job information.\nGet the configuration, stats, and status of rollup jobs.\n\nNOTE: This API returns only active (both `STARTED` and `STOPPED`) jobs.\nIf a job was created, ran for a while, then was deleted, the API does not return any details about it.\nFor details about a historical rollup job, the rollup capabilities API may be more useful.", "docId": "rollup-get-job", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-get-jobs", "name": "rollup.get_jobs", "privileges": { "cluster": [ "monitor_rollup" ] }, "request": { "name": "Request", "namespace": "rollup.get_jobs" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "rollup.get_jobs" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_rollup/job/{id}" }, { "methods": [ "GET" ], "path": "/_rollup/job" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Get the rollup job capabilities.\nGet the capabilities of any rollup jobs that have been configured for a specific index or index pattern.\n\nThis API is useful because a rollup job is often configured to rollup only a subset of fields from the source index.\nFurthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration.\nThis API enables you to inspect an index and determine:\n\n1. Does this index have associated rollup data somewhere in the cluster?\n2. If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live?", "docId": "rollup-get-rollup-caps", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-get-rollup-caps", "name": "rollup.get_rollup_caps", "privileges": { "cluster": [ "monitor_rollup" ] }, "request": { "name": "Request", "namespace": "rollup.get_rollup_caps" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "rollup.get_rollup_caps" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_rollup/data/{id}" }, { "methods": [ "GET" ], "path": "/_rollup/data" } ] }, { "availability": { "stack": { "since": "6.4.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Get the rollup index capabilities.\nGet the rollup capabilities of all jobs inside of a rollup index.\nA single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine:\n\n* What jobs are stored in an index (or indices specified via a pattern)?\n* What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job?", "docId": "rollup-get-rollup-index-caps", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-get-rollup-index-caps", "name": "rollup.get_rollup_index_caps", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "rollup.get_rollup_index_caps" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "rollup.get_rollup_index_caps" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/{index}/_rollup/data" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Create a rollup job.\n\nWARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run.\n\nThe rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index.\n\nThere are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group.\n\nJobs are created in a `STOPPED` state. You can start them with the start rollup jobs API.", "docId": "rollup-put-job", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-put-job", "name": "rollup.put_job", "privileges": { "cluster": [ "manage", "manage_rollup" ] }, "request": { "name": "Request", "namespace": "rollup.put_job" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "rollup.put_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_rollup/job/{id}" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Search rolled-up data.\nThe rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data.\nIt rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query.\n\nThe request body supports a subset of features from the regular search API.\nThe following functionality is not available:\n\n`size`: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely.\n`highlighter`, `suggestors`, `post_filter`, `profile`, `explain`: These are similarly disallowed.\n\n**Searching both historical rollup and non-rollup data**\n\nThe rollup search API has the capability to search across both \"live\" non-rollup data and the aggregated rollup data.\nThis is done by simply adding the live indices to the URI. For example:\n\n```\nGET sensor-1,sensor_rollup/_rollup_search\n{\n \"size\": 0,\n \"aggregations\": {\n \"max_temperature\": {\n \"max\": {\n \"field\": \"temperature\"\n }\n }\n }\n}\n```\n\nThe rollup search endpoint does two things when the search runs:\n\n* The original request is sent to the non-rollup index unaltered.\n* A rewritten version of the original request is sent to the rollup index.\n\nWhen the two responses are received, the endpoint rewrites the rollup response and merges the two together.\nDuring the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used.", "docId": "rollup-search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-rollup-search", "name": "rollup.rollup_search", "request": { "name": "Request", "namespace": "rollup.rollup_search" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "rollup.rollup_search" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_rollup_search" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Start rollup jobs.\nIf you try to start a job that does not exist, an exception occurs.\nIf you try to start a job that is already started, nothing happens.", "docId": "rollup-start-job", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-start-job", "name": "rollup.start_job", "privileges": { "cluster": [ "manage_rollup" ] }, "request": { "name": "Request", "namespace": "rollup.start_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "rollup.start_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_rollup/job/{id}/_start" } ] }, { "availability": { "stack": { "since": "6.3.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Stop rollup jobs.\nIf you try to stop a job that does not exist, an exception occurs.\nIf you try to stop a job that is already stopped, nothing happens.\n\nSince only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped.\nThis is accomplished with the `wait_for_completion` query parameter, and optionally a timeout. For example:\n\n```\nPOST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s\n```\nThe parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed.\nIf the specified time elapses without the job moving to STOPPED, a timeout exception occurs.", "docId": "rollup-stop-job", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rollup-stop-job", "name": "rollup.stop_job", "privileges": { "cluster": [ "manage_rollup" ] }, "request": { "name": "Request", "namespace": "rollup.stop_job" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "rollup.stop_job" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_rollup/job/{id}/_stop" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "6.3.0", "stability": "experimental" } }, "description": "Run a script.\n\nRuns a script and returns a result.\nUse this API to build and test scripts, such as when defining a script for a runtime field.\nThis API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster.\n\nThe API uses several _contexts_, which control how scripts are run, what variables are available at runtime, and what the return type is.\n\nEach context requires a script, but additional parameters depend on the context you're using for that script.", "docId": "painless-execute-api", "docTag": "script", "docUrl": "https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples", "name": "scripts_painless_execute", "request": { "name": "Request", "namespace": "_global.scripts_painless_execute" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.scripts_painless_execute" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_scripts/painless/_execute" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Run a scrolling search.\n\nIMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the `search_after` parameter with a point in time (PIT).\n\nThe scroll API gets large sets of results from a single scrolling search request.\nTo get the necessary scroll ID, submit a search API request that includes an argument for the `scroll` query parameter.\nThe `scroll` parameter indicates how long Elasticsearch should retain the search context for the request.\nThe search response returns a scroll ID in the `_scroll_id` response body parameter.\nYou can then use the scroll ID with the scroll API to retrieve the next batch of results for the request.\nIf the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search.\n\nYou can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context.\n\nIMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests.", "docId": "scroll-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-scroll", "extDocId": "scroll-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "scroll", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.scroll" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.scroll" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_search/scroll" }, { "deprecation": { "description": "A scroll id can be quite large and should be specified as part of the body", "version": "7.0.0" }, "methods": [ "GET", "POST" ], "path": "/_search/scroll/{scroll_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Run a search.\n\nGet search hits that match the query defined in the request.\nYou can provide search queries using the `q` query string parameter or the request body.\nIf both are specified, only the query parameter is used.\n\nIf the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges.\nTo search a point in time (PIT) for an alias, you must have the `read` index privilege for the alias's data streams or indices.\n\n**Search slicing**\n\nWhen paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the `slice` and `pit` properties.\nBy default the splitting is done first on the shards, then locally on each shard.\nThe local splitting partitions the shard into contiguous ranges based on Lucene document IDs.\n\nFor instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard.\n\nIMPORTANT: The same point-in-time ID should be used for all slices.\nIf different PIT IDs are used, slices can overlap and miss documents.\nThis situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index.", "docId": "search-search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search", "extDocId": "ccs-privileges", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/remote-clusters/remote-clusters-cert#remote-clusters-privileges-ccs", "name": "search", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.search" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.search" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_search" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_search" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "beta" } }, "description": "Delete a search application.\n\nRemove a search application and its associated alias. Indices attached to the search application are not removed.", "docId": "search-application-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete", "name": "search_application.delete", "privileges": { "cluster": [ "manage_search_application" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "search_application.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "search_application.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_application/search_application/{name}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Delete a behavioral analytics collection.\nThe associated data stream is also deleted.", "docId": "delete-analytics-collection", "docTag": "analytics", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete-behavioral-analytics", "name": "search_application.delete_behavioral_analytics", "request": { "name": "Request", "namespace": "search_application.delete_behavioral_analytics" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "search_application.delete_behavioral_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_application/analytics/{name}" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "beta" } }, "description": "Get search application details.", "docId": "search-application-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get", "name": "search_application.get", "privileges": { "cluster": [ "manage_search_application" ] }, "request": { "name": "Request", "namespace": "search_application.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "search_application.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_application/search_application/{name}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Get behavioral analytics collections.", "docId": "list-analytics-collection", "docTag": "analytics", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics", "name": "search_application.get_behavioral_analytics", "request": { "name": "Request", "namespace": "search_application.get_behavioral_analytics" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "search_application.get_behavioral_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_application/analytics" }, { "methods": [ "GET" ], "path": "/_application/analytics/{name}" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "beta" } }, "description": "Get search applications.\nGet information about search applications.", "docId": "list-analytics-collection", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics", "name": "search_application.list", "privileges": { "cluster": [ "manage_search_application" ] }, "request": { "name": "Request", "namespace": "search_application.list" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "search_application.list" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_application/search_application" } ] }, { "availability": { "stack": { "stability": "experimental", "visibility": "public" } }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Create a behavioral analytics collection event.", "docId": "behavioral-analytics-collection-event", "docTag": "analytics", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-post-behavioral-analytics-event", "extDocId": "behavioral-analytics-event-reference", "extDocUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/8.18/behavioral-analytics-event-reference.html", "name": "search_application.post_behavioral_analytics_event", "request": { "name": "Request", "namespace": "search_application.post_behavioral_analytics_event" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "search_application.post_behavioral_analytics_event" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_application/analytics/{collection_name}/event/{event_type}" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "beta" } }, "description": "Create or update a search application.", "docId": "search-application-put", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put", "name": "search_application.put", "privileges": { "cluster": [ "manage_search_application" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "search_application.put" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "search_application.put" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_application/search_application/{name}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "experimental" } }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Create a behavioral analytics collection.", "docId": "put-analytics-collection", "docTag": "analytics", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put-behavioral-analytics", "name": "search_application.put_behavioral_analytics", "request": { "name": "Request", "namespace": "search_application.put_behavioral_analytics" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "search_application.put_behavioral_analytics" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_application/analytics/{name}" } ] }, { "availability": { "stack": { "since": "8.9.0", "stability": "experimental", "visibility": "public" } }, "description": "Render a search application query.\nGenerate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified.\nIf a parameter used in the search template is not specified in `params`, the parameter's default value will be used.\nThe API returns the specific Elasticsearch query that would be generated and run by calling the search application search API.\n\nYou must have `read` privileges on the backing alias of the search application.", "docId": "search-render-query", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-render-query", "name": "search_application.render_query", "request": { "name": "Request", "namespace": "search_application.render_query" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "search_application.render_query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_application/search_application/{name}/_render_query" } ] }, { "availability": { "serverless": { "stability": "beta", "visibility": "public" }, "stack": { "since": "8.8.0", "stability": "beta" } }, "description": "Run a search application search.\nGenerate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template.\nUnspecified template parameters are assigned their default values if applicable.", "docId": "search-application-search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-search", "name": "search_application.search", "request": { "name": "Request", "namespace": "search_application.search" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "search_application.search" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_application/search_application/{name}/_search" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.15.0", "stability": "stable" } }, "description": "Search a vector tile.\n\nSearch a vector tile for geospatial values.\nBefore using this API, you should be familiar with the Mapbox vector tile specification.\nThe API returns results as a binary mapbox vector tile.\n\nInternally, Elasticsearch translates a vector tile search API request into a search containing:\n\n* A `geo_bounding_box` query on the ``. The query uses the `//` tile as a bounding box.\n* A `geotile_grid` or `geohex_grid` aggregation on the ``. The `grid_agg` parameter determines the aggregation type. The aggregation uses the `//` tile as a bounding box.\n* Optionally, a `geo_bounds` aggregation on the ``. The search only includes this aggregation if the `exact_bounds` parameter is `true`.\n* If the optional parameter `with_labels` is `true`, the internal search will include a dynamic runtime field that calls the `getLabelPosition` function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label.\n\nFor example, Elasticsearch may translate a vector tile search API request with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of `true` into the following search\n\n```\nGET my-index/_search\n{\n \"size\": 10000,\n \"query\": {\n \"geo_bounding_box\": {\n \"my-geo-field\": {\n \"top_left\": {\n \"lat\": -40.979898069620134,\n \"lon\": -45\n },\n \"bottom_right\": {\n \"lat\": -66.51326044311186,\n \"lon\": 0\n }\n }\n }\n },\n \"aggregations\": {\n \"grid\": {\n \"geotile_grid\": {\n \"field\": \"my-geo-field\",\n \"precision\": 11,\n \"size\": 65536,\n \"bounds\": {\n \"top_left\": {\n \"lat\": -40.979898069620134,\n \"lon\": -45\n },\n \"bottom_right\": {\n \"lat\": -66.51326044311186,\n \"lon\": 0\n }\n }\n }\n },\n \"bounds\": {\n \"geo_bounds\": {\n \"field\": \"my-geo-field\",\n \"wrap_longitude\": false\n }\n }\n }\n}\n```\n\nThe API returns results as a binary Mapbox vector tile.\nMapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers:\n\n* A `hits` layer containing a feature for each `` value matching the `geo_bounding_box` query.\n* An `aggs` layer containing a feature for each cell of the `geotile_grid` or `geohex_grid`. The layer only contains features for cells with matching data.\n* A meta layer containing:\n * A feature containing a bounding box. By default, this is the bounding box of the tile.\n * Value ranges for any sub-aggregations on the `geotile_grid` or `geohex_grid`.\n * Metadata for the search.\n\nThe API only returns features that can display at its zoom level.\nFor example, if a polygon feature has no area at its zoom level, the API omits it.\nThe API returns errors as UTF-8 encoded JSON.\n\nIMPORTANT: You can specify several options for this API as either a query parameter or request body parameter.\nIf you specify both parameters, the query parameter takes precedence.\n\n**Grid precision for geotile**\n\nFor a `grid_agg` of `geotile`, you can use cells in the `aggs` layer as tiles for lower zoom levels.\n`grid_precision` represents the additional zoom levels available through these cells. The final precision is computed by as follows: ` + grid_precision`.\nFor example, if `` is 7 and `grid_precision` is 8, then the `geotile_grid` aggregation will use a precision of 15.\nThe maximum final precision is 29.\nThe `grid_precision` also determines the number of cells for the grid as follows: `(2^grid_precision) x (2^grid_precision)`.\nFor example, a value of 8 divides the tile into a grid of 256 x 256 cells.\nThe `aggs` layer only contains features for cells with matching data.\n\n**Grid precision for geohex**\n\nFor a `grid_agg` of `geohex`, Elasticsearch uses `` and `grid_precision` to calculate a final precision as follows: ` + grid_precision`.\n\nThis precision determines the H3 resolution of the hexagonal cells produced by the `geohex` aggregation.\nThe following table maps the H3 resolution for each precision.\nFor example, if `` is 3 and `grid_precision` is 3, the precision is 6.\nAt a precision of 6, hexagonal cells have an H3 resolution of 2.\nIf `` is 3 and `grid_precision` is 4, the precision is 7.\nAt a precision of 7, hexagonal cells have an H3 resolution of 3.\n\n| Precision | Unique tile bins | H3 resolution | Unique hex bins |\tRatio |\n| --------- | ---------------- | ------------- | ----------------| ----- |\n| 1 | 4 | 0 | 122 | 30.5 |\n| 2 | 16 | 0 | 122 | 7.625 |\n| 3 | 64 | 1 | 842 | 13.15625 |\n| 4 | 256 | 1 | 842 | 3.2890625 |\n| 5 | 1024 | 2 | 5882 | 5.744140625 |\n| 6 | 4096 | 2 | 5882 | 1.436035156 |\n| 7 | 16384 | 3 | 41162 | 2.512329102 |\n| 8 | 65536 | 3 | 41162 | 0.6280822754 |\n| 9 | 262144 | 4 | 288122 | 1.099098206 |\n| 10 | 1048576 | 4 | 288122 | 0.2747745514 |\n| 11 | 4194304 | 5 | 2016842 | 0.4808526039 |\n| 12 | 16777216 | 6 | 14117882 | 0.8414913416 |\n| 13 | 67108864 | 6 | 14117882 | 0.2103728354 |\n| 14 | 268435456 | 7 | 98825162 | 0.3681524172 |\n| 15 | 1073741824 | 8 | 691776122 | 0.644266719 |\n| 16 | 4294967296 | 8 | 691776122 | 0.1610666797 |\n| 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 |\n| 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 |\n| 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 |\n| 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 |\n| 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 |\n| 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 |\n| 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 |\n| 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 |\n| 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 |\n| 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 |\n| 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 |\n| 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 |\n| 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 |\n\nHexagonal cells don't align perfectly on a vector tile.\nSome cells may intersect more than one vector tile.\nTo compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level.\nElasticsearch uses the H3 resolution that is closest to the corresponding geotile density.", "docId": "search-vector-tile-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-mvt", "extDocId": "mapbox-vector-tile", "extDocUrl": "https://github.com/mapbox/vector-tile-spec/blob/master/README.md", "name": "search_mvt", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.search_mvt" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.search_mvt" }, "responseMediaType": [ "application/vnd.mapbox-vector-tile" ], "urls": [ { "methods": [ "POST", "GET" ], "path": "/{index}/_mvt/{field}/{zoom}/{x}/{y}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get the search shards.\n\nGet the indices and shards that a search request would be run against.\nThis information can be useful for working out issues or planning optimizations with routing and shard preferences.\nWhen filtered aliases are used, the filter is returned as part of the `indices` section.\n\nIf the Elasticsearch security features are enabled, you must have the `view_index_metadata` or `manage` index privilege for the target data stream, index, or alias.", "docId": "search-shards", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-shards", "name": "search_shards", "privileges": { "index": [ "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "_global.search_shards" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.search_shards" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_search_shards" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_search_shards" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "2.0.0", "stability": "stable" } }, "description": "Run a search with a search template.", "docId": "search-template-api", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-template", "extDocId": "search-template", "extDocUrl": "https://www.elastic.co/docs/solutions/search/search-templates", "name": "search_template", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.search_template" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.search_template" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_search/template" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_search/template" } ] }, { "availability": { "stack": { "since": "7.13.0", "stability": "experimental" } }, "description": "Get cache statistics.\nGet statistics about the shared cache for partially mounted indices.", "docId": "searchable-snapshots-api-cache-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-cache-stats", "extDocId": "searchable-snapshots", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/searchable-snapshots", "name": "searchable_snapshots.cache_stats", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "searchable_snapshots.cache_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "searchable_snapshots.cache_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_searchable_snapshots/cache/stats" }, { "methods": [ "GET" ], "path": "/_searchable_snapshots/{node_id}/cache/stats" } ] }, { "availability": { "stack": { "since": "7.10.0", "stability": "experimental" } }, "description": "Clear the cache.\nClear indices and data streams from the shared cache for partially mounted indices.", "docId": "searchable-snapshots-api-clear-cache", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-clear-cache", "extDocId": "searchable-snapshots", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/searchable-snapshots", "name": "searchable_snapshots.clear_cache", "privileges": { "cluster": [ "manage" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "searchable_snapshots.clear_cache" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "searchable_snapshots.clear_cache" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_searchable_snapshots/cache/clear" }, { "methods": [ "POST" ], "path": "/{index}/_searchable_snapshots/cache/clear" } ] }, { "availability": { "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Mount a snapshot.\nMount a snapshot as a searchable snapshot index.\nDo not use this API for snapshots managed by index lifecycle management (ILM).\nManually mounting ILM-managed snapshots can interfere with ILM processes.", "docId": "searchable-snapshots-api-mount-snapshot", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-mount", "name": "searchable_snapshots.mount", "privileges": { "cluster": [ "manage" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "searchable_snapshots.mount" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "searchable_snapshots.mount" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_snapshot/{repository}/{snapshot}/_mount" } ] }, { "availability": { "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Get searchable snapshot statistics.", "docId": "searchable-snapshots-api-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-stats", "name": "searchable_snapshots.stats", "privileges": { "cluster": [ "manage" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "searchable_snapshots.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "searchable_snapshots.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_searchable_snapshots/stats" }, { "methods": [ "GET" ], "path": "/{index}/_searchable_snapshots/stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Activate a user profile.\n\nCreate or update a user profile on behalf of another user.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nThe calling application must have either an `access_token` or a combination of `username` and `password` for the user that the profile document is intended for.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nThis API creates or updates a profile document for end users with information that is extracted from the user's authentication object including `username`, `full_name,` `roles`, and the authentication realm.\nFor example, in the JWT `access_token` case, the profile user's `username` is extracted from the JWT token claim pointed to by the `claims.principal` setting of the JWT realm that authenticated the token.\n\nWhen updating a profile document, the API enables the document if it was disabled.\nAny updates do not change existing content for either the `labels` or `data` fields.", "docId": "security-api-activate-user-profile", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-activate-user-profile", "name": "security.activate_user_profile", "privileges": { "cluster": [ "manage_user_profile" ] }, "request": { "name": "Request", "namespace": "security.activate_user_profile" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.activate_user_profile" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/profile/_activate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Authenticate a user.\n\nAuthenticates a user and returns information about the authenticated user.\nInclude the user information in a [basic auth header](https://en.wikipedia.org/wiki/Basic_access_authentication).\nA successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user.\nIf the user cannot be authenticated, this API returns a 401 status code.", "docId": "security-api-authenticate", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-authenticate", "name": "security.authenticate", "request": { "name": "Request", "namespace": "security.authenticate" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.authenticate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/_authenticate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Bulk delete roles.\n\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe bulk delete roles API cannot delete roles that are defined in roles files.", "docId": "security-api-bulk-delete-role", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-delete-role", "name": "security.bulk_delete_role", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.bulk_delete_role" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.bulk_delete_role" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/role" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Bulk create or update roles.\n\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe bulk create or update roles API cannot update roles that are defined in roles files.", "docId": "security-api-bulk-put-role", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-put-role", "name": "security.bulk_put_role", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.bulk_put_role" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.bulk_put_role" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/role" } ] }, { "availability": { "stack": { "since": "8.5.0", "stability": "stable", "visibility": "public" } }, "description": "Bulk update API keys.\nUpdate the attributes for multiple API keys.\n\nIMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required.\n\nThis API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates.\n\nIt is not possible to update expired or invalidated API keys.\n\nThis API supports updates to API key access scope, metadata and expiration.\nThe access scope of each API key is derived from the `role_descriptors` you specify in the request and a snapshot of the owner user's permissions at the time of the request.\nThe snapshot of the owner's permissions is updated automatically on every call.\n\nIMPORTANT: If you don't specify `role_descriptors` in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified.\n\nA successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update.", "docId": "security-api-bulk-update-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-update-api-keys", "name": "security.bulk_update_api_keys", "privileges": { "cluster": [ "manage_own_api_key" ] }, "request": { "name": "Request", "namespace": "security.bulk_update_api_keys" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.bulk_update_api_keys" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/api_key/_bulk_update" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Change passwords.\n\nChange the passwords of users in the native realm and built-in users.", "docId": "security-api-change-password", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-change-password", "name": "security.change_password", "request": { "name": "Request", "namespace": "security.change_password" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.change_password" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/user/{username}/_password" }, { "methods": [ "PUT", "POST" ], "path": "/_security/user/_password" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Clear the API key cache.\n\nEvict a subset of all entries from the API key cache.\nThe cache is also automatically cleared on state changes of the security index.", "docId": "security-api-clear-api-key-cache", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-api-key-cache", "name": "security.clear_api_key_cache", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.clear_api_key_cache" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.clear_api_key_cache" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/api_key/{ids}/_clear_cache" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Clear the privileges cache.\n\nEvict privileges from the native application privilege cache.\nThe cache is also automatically cleared for applications that have their privileges updated.", "docId": "security-api-clear-privilege-cache", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-privileges", "name": "security.clear_cached_privileges", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.clear_cached_privileges" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.clear_cached_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/privilege/{application}/_clear_cache" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Clear the user cache.\n\nEvict users from the user cache.\nYou can completely clear the cache or evict specific users.\n\nUser credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request.\nThere are realm settings that you can use to configure the user cache.\nFor more information, refer to the documentation about controlling the user cache.", "docId": "security-api-clear-cache", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-realms", "extDocId": "security-user-cache", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-user-cache", "name": "security.clear_cached_realms", "request": { "name": "Request", "namespace": "security.clear_cached_realms" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.clear_cached_realms" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/realm/{realms}/_clear_cache" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Clear the roles cache.\n\nEvict roles from the native role cache.", "docId": "security-api-clear-role-cache", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-roles", "name": "security.clear_cached_roles", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.clear_cached_roles" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.clear_cached_roles" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/role/{name}/_clear_cache" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Clear service account token caches.\n\nEvict a subset of all entries from the service account token caches.\nTwo separate caches exist for service account tokens: one cache for tokens backed by the `service_tokens` file, and another for tokens backed by the `.security` index.\nThis API clears matching entries from both caches.\n\nThe cache for service account tokens backed by the `.security` index is cleared automatically on state changes of the security index.\nThe cache for tokens backed by the `service_tokens` file is cleared automatically on file changes.", "docId": "security-api-clear-service-token-caches", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-service-tokens", "extDocId": "service-accounts", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/service-accounts", "name": "security.clear_cached_service_tokens", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.clear_cached_service_tokens" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.clear_cached_service_tokens" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.7.0", "stability": "stable" } }, "description": "Create an API key.\n\nCreate an API key for access without requiring basic authentication.\n\nIMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges.\nIf you specify privileges, the API returns an error.\n\nA successful request returns a JSON structure that contains the API key, its unique id, and its name.\nIf applicable, it also returns expiration information for the API key in milliseconds.\n\nNOTE: By default, API keys never expire. You can specify expiration information when you create the API keys.\n\nThe API keys are created by the Elasticsearch API key service, which is automatically enabled.\nTo configure or turn off the API key service, refer to API key service setting documentation.", "docId": "security-api-create-api-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-api-key", "extDocId": "security-settings-api-keys", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/security-settings#api-key-service-settings", "name": "security.create_api_key", "privileges": { "cluster": [ "manage_own_api_key" ] }, "request": { "name": "Request", "namespace": "security.create_api_key" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.create_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/api_key" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Create a cross-cluster API key.\n\nCreate an API key of the `cross_cluster` type for the API key based remote cluster access.\nA `cross_cluster` API key cannot be used to authenticate through the REST interface.\n\nIMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error.\n\nCross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled.\n\nNOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the `access` property.\n\nA successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds.\n\nBy default, API keys never expire. You can specify expiration information when you create the API keys.\n\nCross-cluster API keys can only be updated with the update cross-cluster API key API.\nAttempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error.", "docId": "security-api-cross-cluster-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-cross-cluster-api-key", "extDocId": "remote-clusters-api-key", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/remote-clusters/remote-clusters-api-key", "name": "security.create_cross_cluster_api_key", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.create_cross_cluster_api_key" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.create_cross_cluster_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/cross_cluster/api_key" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Create a service account token.\n\nCreate a service accounts token for access without requiring basic authentication.\n\nNOTE: Service account tokens never expire.\nYou must actively delete them if they are no longer needed.", "docId": "security-api-create-service-token", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-service-token", "extDocId": "service-accounts", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/service-accounts", "name": "security.create_service_token", "privileges": { "cluster": [ "manage_service_account" ] }, "request": { "name": "Request", "namespace": "security.create_service_token" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.create_service_token" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/service/{namespace}/{service}/credential/token/{name}" }, { "methods": [ "POST" ], "path": "/_security/service/{namespace}/{service}/credential/token" } ] }, { "availability": { "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Delegate PKI authentication.\n\nThis API implements the exchange of an X509Certificate chain for an Elasticsearch access token.\nThe certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has `delegation.enabled` set to `true`.\nA successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw `username_pattern` of the respective realm.\n\nThis API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch.\n\nIMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated.\nThis is part of the TLS authentication process and it is delegated to the proxy that calls this API.\nThe proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token.", "docId": "security-api-delegate-pki", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delegate-pki", "extDocId": "pki-realm", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/pki", "name": "security.delegate_pki", "privileges": { "cluster": [ "all" ] }, "request": { "name": "Request", "namespace": "security.delegate_pki" }, "requestBodyRequired": true, "response": { "name": "Response", "namespace": "security.delegate_pki" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/delegate_pki" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.4.0", "stability": "stable" } }, "description": "Delete application privileges.\n\nTo use this API, you must have one of the following privileges:\n\n* The `manage_security` cluster privilege (or a greater privilege such as `all`).\n* The \"Manage Application Privileges\" global privilege for the application being referenced in the request.", "docId": "security-api-delete-privilege", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-privileges", "extDocId": "security-privileges", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/security-privileges", "name": "security.delete_privileges", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.delete_privileges" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.delete_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/privilege/{application}/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Delete roles.\n\nDelete roles in the native realm.\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe delete roles API cannot remove roles that are defined in roles files.", "docId": "security-api-delete-role", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role", "name": "security.delete_role", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.delete_role" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.delete_role" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/role/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Delete role mappings.\n\nRole mappings define which roles are assigned to each user.\nThe role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files.\nThe delete role mappings API cannot remove role mappings that are defined in role mapping files.", "docId": "security-api-delete-role-mapping", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role-mapping", "extDocId": "mapping-roles", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/mapping-users-groups-to-roles", "name": "security.delete_role_mapping", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.delete_role_mapping" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.delete_role_mapping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/role_mapping/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Delete service account tokens.\n\nDelete service account tokens for a service in a specified namespace.", "docId": "security-api-delete-service-token", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-service-token", "extDocId": "service-accounts", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/service-accounts", "name": "security.delete_service_token", "privileges": { "cluster": [ "manage_service_account" ] }, "request": { "name": "Request", "namespace": "security.delete_service_token" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.delete_service_token" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/service/{namespace}/{service}/credential/token/{name}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Delete users.\n\nDelete users from the native realm.", "docId": "security-api-delete-user", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-user", "name": "security.delete_user", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.delete_user" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.delete_user" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/user/{username}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Disable users.\n\nDisable users in the native realm.\nBy default, when you create users, they are enabled.\nYou can use this API to revoke a user's access to Elasticsearch.", "docId": "security-api-disable-user", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user", "name": "security.disable_user", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.disable_user" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.disable_user" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/user/{username}/_disable" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Disable a user profile.\n\nDisable user profiles so that they are not visible in user profile searches.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nWhen you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches.\nTo re-enable a disabled user profile, use the enable user profile API .", "docId": "security-api-disable-user-profile", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user-profile", "name": "security.disable_user_profile", "privileges": { "cluster": [ "manage_user_profile" ] }, "request": { "name": "Request", "namespace": "security.disable_user_profile" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.disable_user_profile" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/profile/{uid}/_disable" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Enable users.\n\nEnable users in the native realm.\nBy default, when you create users, they are enabled.", "docId": "security-api-enable-user", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user", "name": "security.enable_user", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.enable_user" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.enable_user" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/user/{username}/_enable" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Enable a user profile.\n\nEnable user profiles to make them visible in user profile searches.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nWhen you activate a user profile, it's automatically enabled and visible in user profile searches.\nIf you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again.", "docId": "security-api-enable-user-profile", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user-profile", "name": "security.enable_user_profile", "privileges": { "cluster": [ "manage_user_profile" ] }, "request": { "name": "Request", "namespace": "security.enable_user_profile" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.enable_user_profile" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/profile/{uid}/_enable" } ] }, { "availability": { "stack": { "since": "8.0.0", "stability": "stable" } }, "description": "Enroll Kibana.\n\nEnable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster.\n\nNOTE: This API is currently intended for internal use only by Kibana.\nKibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled.", "docId": "security-api-kibana-enrollment", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-kibana", "name": "security.enroll_kibana", "request": { "name": "Request", "namespace": "security.enroll_kibana" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.enroll_kibana" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/enroll/kibana" } ] }, { "availability": { "stack": { "since": "8.0.0", "stability": "stable" } }, "description": "Enroll a node.\n\nEnroll a new node to allow it to join an existing cluster with security features enabled.\n\nThe response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster.\nThe response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster.", "docId": "security-api-node-enrollment", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-node", "name": "security.enroll_node", "request": { "name": "Request", "namespace": "security.enroll_node" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.enroll_node" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/enroll/node" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.7.0", "stability": "stable" } }, "description": "Get API key information.\n\nRetrieves information for one or more API keys.\nNOTE: If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.\nIf you have `read_security`, `manage_api_key` or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership.", "docId": "security-api-get-api-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-api-key", "name": "security.get_api_key", "privileges": { "cluster": [ "manage_own_api_key", "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_api_key" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/api_key" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.3.0", "stability": "stable" } }, "description": "Get builtin privileges.\n\nGet the list of cluster privileges and index privileges that are available in this version of Elasticsearch.", "docId": "security-api-get-builtin-privileges", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-builtin-privileges", "extDocId": "security-privileges", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/security-privileges", "name": "security.get_builtin_privileges", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.get_builtin_privileges" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_builtin_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/privilege/_builtin" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.4.0", "stability": "stable" } }, "description": "Get application privileges.\n\nTo use this API, you must have one of the following privileges:\n\n* The `read_security` cluster privilege (or a greater privilege such as `manage_security` or `all`).\n* The \"Manage Application Privileges\" global privilege for the application being referenced in the request.", "docId": "security-api-get-privileges", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-privileges", "extDocId": "security-privileges", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/security-privileges", "name": "security.get_privileges", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_privileges" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/privilege" }, { "methods": [ "GET" ], "path": "/_security/privilege/{application}" }, { "methods": [ "GET" ], "path": "/_security/privilege/{application}/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get roles.\n\nGet roles in the native realm.\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe get roles API cannot retrieve roles that are defined in roles files.", "docId": "security-api-get-role", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role", "name": "security.get_role", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_role" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_role" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/role/{name}" }, { "methods": [ "GET" ], "path": "/_security/role" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get role mappings.\n\nRole mappings define which roles are assigned to each user.\nThe role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files.\nThe get role mappings API cannot retrieve role mappings that are defined in role mapping files.", "docId": "security-api-get-role-mapping", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role-mapping", "extDocId": "mapping-roles", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/mapping-users-groups-to-roles", "name": "security.get_role_mapping", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.get_role_mapping" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_role_mapping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/role_mapping/{name}" }, { "methods": [ "GET" ], "path": "/_security/role_mapping" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Get service accounts.\n\nGet a list of service accounts that match the provided path parameters.\n\nNOTE: Currently, only the `elastic/fleet-server` service account is available.", "docId": "security-api-get-service-accounts", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-accounts", "extDocId": "service-accounts", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/service-accounts", "name": "security.get_service_accounts", "privileges": { "cluster": [ "manage_service_account" ] }, "request": { "name": "Request", "namespace": "security.get_service_accounts" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_service_accounts" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/service/{namespace}/{service}" }, { "methods": [ "GET" ], "path": "/_security/service/{namespace}" }, { "methods": [ "GET" ], "path": "/_security/service" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Get service account credentials.\n\nTo use this API, you must have at least the `read_security` cluster privilege (or a greater privilege such as `manage_service_account` or `manage_security`).\n\nThe response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster.\n\nNOTE: For tokens backed by the `service_tokens` file, the API collects them from all nodes of the cluster.\nTokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens.", "docId": "security-api-get-service-credentials", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-credentials", "extDocId": "service-accounts", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/service-accounts", "name": "security.get_service_credentials", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_service_credentials" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_service_credentials" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/service/{namespace}/{service}/credential" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Get security index settings.\n\nGet the user-configurable settings for the security internal index (`.security` and associated indices).\nOnly a subset of the index settings — those that are user-configurable—will be shown.\nThis includes:\n\n* `index.auto_expand_replicas`\n* `index.number_of_replicas`", "docId": "security-api-get-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-settings", "name": "security.get_settings", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_settings" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.get_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/settings" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get a token.\n\nCreate a bearer token for access without requiring basic authentication.\nThe tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface.\nAlternatively, you can explicitly enable the `xpack.security.authc.token.enabled` setting.\nWhen you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface.\n\nThe get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body.\n\nA successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available.\n\nThe tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used.\nThat time period is defined by the `xpack.security.authc.token.timeout` setting.\nIf you want to invalidate a token immediately, you can do so by using the invalidate token API.", "docId": "security-api-get-token", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-token", "extDocId": "security-encrypt-http", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/security/set-up-basic-security-plus-https#encrypt-http-communication", "name": "security.get_token", "privileges": { "cluster": [ "manage_token" ] }, "request": { "name": "Request", "namespace": "security.get_token" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.get_token" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/oauth2/token" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Get users.\n\nGet information about users in the native realm and built-in users.", "docId": "security-api-get-user", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user", "name": "security.get_user", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_user" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_user" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/user/{username}" }, { "methods": [ "GET" ], "path": "/_security/user" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Get user privileges.\n\nGet the security privileges for the logged in user.\nAll users can use this API, but only to determine their own privileges.\nTo check the privileges of other users, you must use the run as feature.\nTo check whether a user has a specific list of privileges, use the has privileges API.", "docId": "security-api-get-user-privileges", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-privileges", "name": "security.get_user_privileges", "request": { "name": "Request", "namespace": "security.get_user_privileges" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_user_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/user/_privileges" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Get a user profile.\n\nGet a user's profile using the unique profile ID.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.", "docId": "security-api-get-user-profile", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-profile", "name": "security.get_user_profile", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.get_user_profile" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "security.get_user_profile" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/profile/{uid}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.9.0", "stability": "stable" } }, "description": "Grant an API key.\n\nCreate an API key on behalf of another user.\nThis API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API.\nThe caller must have authentication credentials for the user on whose behalf the API key will be created.\nIt is not possible to use this API to create an API key without that user's credentials.\nThe supported user authentication credential types are:\n\n* username and password\n* Elasticsearch access tokens\n* JWTs\n\nThe user, for whom the authentication credentials is provided, can optionally \"run as\" (impersonate) another user.\nIn this case, the API key will be created on behalf of the impersonated user.\n\nThis API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf.\nThe API keys are created by the Elasticsearch API key service, which is automatically enabled.\n\nA successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name.\nIf applicable, it also returns expiration information for the API key in milliseconds.\n\nBy default, API keys never expire. You can specify expiration information when you create the API keys.", "docId": "security-api-grant-api-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-grant-api-key", "name": "security.grant_api_key", "privileges": { "cluster": [ "grant_api_key" ] }, "request": { "name": "Request", "namespace": "security.grant_api_key" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.grant_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/api_key/grant" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.4.0", "stability": "stable" } }, "description": "Check user privileges.\n\nDetermine whether the specified user has a specified list of privileges.\nAll users can use this API, but only to determine their own privileges.\nTo check the privileges of other users, you must use the run as feature.", "docId": "security-api-has-privileges", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges", "extDocId": "security-privileges", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/security-privileges", "name": "security.has_privileges", "request": { "name": "Request", "namespace": "security.has_privileges" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.has_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_security/user/_has_privileges" }, { "methods": [ "GET", "POST" ], "path": "/_security/user/{user}/_has_privileges" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.3.0", "stability": "stable" } }, "description": "Check user profile privileges.\n\nDetermine whether the users associated with the specified user profile IDs have all the requested privileges.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.", "docId": "security-api-has-privileges-profile", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges-user-profile", "extDocId": "user-profile", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/user-profiles", "name": "security.has_privileges_user_profile", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.has_privileges_user_profile" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.has_privileges_user_profile" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_security/profile/_has_privileges" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.7.0", "stability": "stable" } }, "description": "Invalidate API keys.\n\nThis API invalidates API keys created by the create API key or grant API key APIs.\nInvalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted.\n\nTo use this API, you must have at least the `manage_security`, `manage_api_key`, or `manage_own_api_key` cluster privileges.\nThe `manage_security` privilege allows deleting any API key, including both REST and cross cluster API keys.\nThe `manage_api_key` privilege allows deleting any REST API key, but not cross cluster API keys.\nThe `manage_own_api_key` only allows deleting REST API keys that are owned by the user.\nIn addition, with the `manage_own_api_key` privilege, an invalidation request must be issued in one of the three formats:\n\n- Set the parameter `owner=true`.\n- Or, set both `username` and `realm_name` to match the user's identity.\n- Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the `ids` field.", "docId": "security-api-invalidate-api-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-api-key", "name": "security.invalidate_api_key", "privileges": { "cluster": [ "manage_api_key", "manage_own_api_key" ] }, "request": { "name": "Request", "namespace": "security.invalidate_api_key" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.invalidate_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/api_key" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Invalidate a token.\n\nThe access tokens returned by the get token API have a finite period of time for which they are valid.\nAfter that time period, they can no longer be used.\nThe time period is defined by the `xpack.security.authc.token.timeout` setting.\n\nThe refresh tokens returned by the get token API are only valid for 24 hours.\nThey can also be used exactly once.\nIf you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API.\n\nNOTE: While all parameters are optional, at least one of them is required.\nMore specifically, either one of `token` or `refresh_token` parameters is required.\nIf none of these two are specified, then `realm_name` and/or `username` need to be specified.", "docId": "security-api-invalidate-token", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-token", "name": "security.invalidate_token", "request": { "name": "Request", "namespace": "security.invalidate_token" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.invalidate_token" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_security/oauth2/token" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Authenticate OpenID Connect.\n\nExchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication.\n\nElasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs.\nThese APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.", "docId": "security-api-oidc-authenticate", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-authenticate", "name": "security.oidc_authenticate", "request": { "name": "Request", "namespace": "security.oidc_authenticate" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.oidc_authenticate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/oidc/authenticate" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Logout of OpenID Connect.\n\nInvalidate an access token and a refresh token that were generated as a response to the `/_security/oidc/authenticate` API.\n\nIf the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout.\n\nElasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs.\nThese APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.", "docId": "security-api-oidc-logout", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-logout", "name": "security.oidc_logout", "request": { "name": "Request", "namespace": "security.oidc_logout" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.oidc_logout" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/oidc/logout" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Prepare OpenID connect authentication.\n\nCreate an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch.\n\nThe response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process.\n\nElasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs.\nThese APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.", "docId": "security-api-oidc-prepare", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-prepare-authentication", "name": "security.oidc_prepare_authentication", "request": { "name": "Request", "namespace": "security.oidc_prepare_authentication" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.oidc_prepare_authentication" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/oidc/prepare" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.4.0", "stability": "stable" } }, "description": "Create or update application privileges.\n\nTo use this API, you must have one of the following privileges:\n\n* The `manage_security` cluster privilege (or a greater privilege such as `all`).\n* The \"Manage Application Privileges\" global privilege for the application being referenced in the request.\n\nApplication names are formed from a prefix, with an optional suffix that conform to the following rules:\n\n* The prefix must begin with a lowercase ASCII letter.\n* The prefix must contain only ASCII letters or digits.\n* The prefix must be at least 3 characters long.\n* If the suffix exists, it must begin with either a dash `-` or `_`.\n* The suffix cannot contain any of the following characters: `\\`, `/`, `*`, `?`, `\"`, `<`, `>`, `|`, `,`, `*`.\n* No part of the name can contain whitespace.\n\nPrivilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters `_`, `-`, and `.`.\n\nAction names can contain any number of printable ASCII characters and must contain at least one of the following characters: `/`, `*`, `:`.", "docId": "security-api-put-privileges", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-privileges", "extDocId": "security-privileges", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/security-privileges", "name": "security.put_privileges", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.put_privileges" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.put_privileges" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/privilege" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Create or update roles.\n\nThe role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management.\nThe create or update roles API cannot update roles that are defined in roles files.\nFile-based role management is not available in Elastic Serverless.", "docId": "security-api-put-role", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role", "extDocId": "defining-roles", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/defining-roles", "name": "security.put_role", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.put_role" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.put_role" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/role/{name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Create or update role mappings.\n\nRole mappings define which roles are assigned to each user.\nEach mapping has rules that identify users and a list of roles that are granted to those users.\nThe role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files.\n\nNOTE: This API does not create roles. Rather, it maps users to existing roles.\nRoles can be created by using the create or update roles API or roles files.\n\n**Role templates**\n\nThe most common use for role mappings is to create a mapping from a known value on the user to a fixed role name.\nFor example, all users in the `cn=admin,dc=example,dc=com` LDAP group should be given the superuser role in Elasticsearch.\nThe `roles` field is used for this purpose.\n\nFor more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user.\nThe `role_templates` field is used for this purpose.\n\nNOTE: To use role templates successfully, the relevant scripting feature must be enabled.\nOtherwise, all attempts to create a role mapping with role templates fail.\n\nAll of the user fields that are available in the role mapping rules are also available in the role templates.\nThus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated.\n\nBy default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user.\nIf the format of the template is set to \"json\" then the template is expected to produce a JSON string or an array of JSON strings for the role names.", "docId": "security-api-put-role-mapping", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role-mapping", "extDocId": "mapping-roles", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/mapping-users-groups-to-roles", "name": "security.put_role_mapping", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.put_role_mapping" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.put_role_mapping" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/role_mapping/{name}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Create or update users.\n\nAdd and update users in the native realm.\nA password is required for adding a new user but is optional when updating an existing user.\nTo change a user's password without updating any other fields, use the change password API.", "docId": "security-api-put-user", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-user", "name": "security.put_user", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.put_user" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.put_user" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/user/{username}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.15.0", "stability": "stable" } }, "description": "Find API keys with a query.\n\nGet a paginated list of API keys and their information.\nYou can optionally filter the results with a query.\n\nTo use this API, you must have at least the `manage_own_api_key` or the `read_security` cluster privileges.\nIf you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.\nIf you have the `read_security`, `manage_api_key`, or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership.", "docId": "security-api-query-api-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-api-keys", "name": "security.query_api_keys", "privileges": { "cluster": [ "manage_own_api_key", "read_security" ] }, "request": { "name": "Request", "namespace": "security.query_api_keys" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.query_api_keys" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_security/_query/api_key" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Find roles with a query.\n\nGet roles in a paginated manner.\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe query roles API does not retrieve roles that are defined in roles files, nor built-in ones.\nYou can optionally filter the results with a query.\nAlso, the results can be paginated and sorted.", "docId": "security-api-query-role", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-role", "name": "security.query_role", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.query_role" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.query_role" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_security/_query/role" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.14.0", "stability": "stable" } }, "description": "Find users with a query.\n\nGet information for users in a paginated manner.\nYou can optionally filter the results with a query.\n\nNOTE: As opposed to the get user API, built-in users are excluded from the result.\nThis API is only for native users.", "docId": "security-api-query-user", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-user", "name": "security.query_user", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.query_user" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.query_user" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_security/_query/user" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Authenticate SAML.\n\nSubmit a SAML response message to Elasticsearch for consumption.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThe SAML message that is submitted can be:\n\n* A response to a SAML authentication request that was previously created using the SAML prepare authentication API.\n* An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow.\n\nIn either case, the SAML message needs to be a base64 encoded XML document with a root element of ``.\n\nAfter successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication.\nThis API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch.", "docId": "security-api-saml-authenticate", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-authenticate", "extDocId": "security-saml-guide", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/saml", "name": "security.saml_authenticate", "request": { "name": "Request", "namespace": "security.saml_authenticate" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.saml_authenticate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/saml/authenticate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.14.0", "stability": "stable" } }, "description": "Logout of SAML completely.\n\nVerifies the logout response sent from the SAML IdP.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThe SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout.\nThis API verifies the response by ensuring the content is relevant and validating its signature.\nAn empty response is returned if the verification process is successful.\nThe response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding.\nThe caller of this API must prepare the request accordingly so that this API can handle either of them.", "docId": "security-api-saml-complete-logout", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-complete-logout", "extDocId": "security-saml-guide", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/saml", "name": "security.saml_complete_logout", "request": { "name": "Request", "namespace": "security.saml_complete_logout" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.saml_complete_logout" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/saml/complete_logout" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Invalidate SAML.\n\nSubmit a SAML LogoutRequest message to Elasticsearch for consumption.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThe logout request comes from the SAML IdP during an IdP initiated Single Logout.\nThe custom web application can use this API to have Elasticsearch process the `LogoutRequest`.\nAfter successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message.\nThus the user can be redirected back to their IdP.", "docId": "security-api-saml-invalidate", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-invalidate", "extDocId": "security-saml-guide", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/saml", "name": "security.saml_invalidate", "request": { "name": "Request", "namespace": "security.saml_invalidate" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.saml_invalidate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/saml/invalidate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Logout of SAML.\n\nSubmits a request to invalidate an access token and refresh token.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThis API invalidates the tokens that were generated for a user by the SAML authenticate API.\nIf the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout).", "docId": "security-api-saml-logout", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-logout", "extDocId": "security-saml-guide", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/saml", "name": "security.saml_logout", "request": { "name": "Request", "namespace": "security.saml_logout" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.saml_logout" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/saml/logout" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Prepare SAML authentication.\n\nCreate a SAML authentication request (``) as a URL string based on the configuration of the respective SAML realm in Elasticsearch.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThis API returns a URL pointing to the SAML Identity Provider.\nYou can use the URL to redirect the browser of the user in order to continue the authentication process.\nThe URL includes a single parameter named `SAMLRequest`, which contains a SAML Authentication request that is deflated and Base64 encoded.\nIf the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named `SigAlg` and `Signature`.\nThese parameters contain the algorithm used for the signature and the signature value itself.\nIt also returns a random string that uniquely identifies this SAML Authentication request.\nThe caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process.", "docId": "security-api-saml-prepare-authentication", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-prepare-authentication", "extDocId": "security-saml-guide", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/saml", "name": "security.saml_prepare_authentication", "request": { "name": "Request", "namespace": "security.saml_prepare_authentication" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.saml_prepare_authentication" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_security/saml/prepare" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Create SAML service provider metadata.\n\nGenerate SAML metadata for a SAML 2.0 Service Provider.\n\nThe SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file.\nThis API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch.", "docId": "security-api-saml-sp-metadata", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-service-provider-metadata", "name": "security.saml_service_provider_metadata", "request": { "name": "Request", "namespace": "security.saml_service_provider_metadata" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.saml_service_provider_metadata" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_security/saml/metadata/{realm_name}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Suggest a user profile.\n\nGet suggestions for user profiles that match specified search criteria.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.", "docId": "security-api-suggest", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-suggest-user-profiles", "name": "security.suggest_user_profiles", "privileges": { "cluster": [ "read_security" ] }, "request": { "name": "Request", "namespace": "security.suggest_user_profiles" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.suggest_user_profiles" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_security/profile/_suggest" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.4.0", "stability": "stable" } }, "description": "Update an API key.\n\nUpdate attributes of an existing API key.\nThis API supports updates to an API key's access scope, expiration, and metadata.\n\nTo use this API, you must have at least the `manage_own_api_key` cluster privilege.\nUsers can only update API keys that they created or that were granted to them.\nTo update another user’s API key, use the `run_as` feature to submit a request on behalf of another user.\n\nIMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required.\n\nUse this API to update API keys created by the create API key or grant API Key APIs.\nIf you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead.\nIt's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API.\n\nThe access scope of an API key is derived from the `role_descriptors` you specify in the request and a snapshot of the owner user's permissions at the time of the request.\nThe snapshot of the owner's permissions is updated automatically on every call.\n\nIMPORTANT: If you don't specify `role_descriptors` in the request, a call to this API might still change the API key's access scope.\nThis change can occur if the owner user's permissions have changed since the API key was created or last modified.", "docId": "security-api-update-key", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-api-key", "name": "security.update_api_key", "privileges": { "cluster": [ "manage_own_api_key" ] }, "request": { "name": "Request", "namespace": "security.update_api_key" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.update_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_security/api_key/{id}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Update a cross-cluster API key.\n\nUpdate the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access.\n\nTo use this API, you must have at least the `manage_security` cluster privilege.\nUsers can only update API keys that they created.\nTo update another user's API key, use the `run_as` feature to submit a request on behalf of another user.\n\nIMPORTANT: It's not possible to use an API key as the authentication credential for this API.\nTo update an API key, the owner user's credentials are required.\n\nIt's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API.\n\nThis API supports updates to an API key's access scope, metadata, and expiration.\nThe owner user's information, such as the `username` and `realm`, is also updated automatically on every call.\n\nNOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API.", "docId": "security-api-cross-cluster-key-update", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-cross-cluster-api-key", "extDocId": "remote-clusters-api-key", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/remote-clusters/remote-clusters-api-key", "name": "security.update_cross_cluster_api_key", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.update_cross_cluster_api_key" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.update_cross_cluster_api_key" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_security/cross_cluster/api_key/{id}" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Update security index settings.\n\nUpdate the user-configurable settings for the security internal index (`.security` and associated indices). Only a subset of settings are allowed to be modified. This includes `index.auto_expand_replicas` and `index.number_of_replicas`.\n\nNOTE: If `index.auto_expand_replicas` is set, `index.number_of_replicas` will be ignored during updates.\n\nIf a specific index is not in use on the system and settings are provided for it, the request will be rejected.\nThis API does not yet support configuring the settings for indices before they are in use.", "docId": "security-api-update-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-settings", "name": "security.update_settings", "privileges": { "cluster": [ "manage_security" ] }, "request": { "name": "Request", "namespace": "security.update_settings" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.update_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_security/settings" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.2.0", "stability": "stable" } }, "description": "Update user profile data.\n\nUpdate specific data for the user profile that is associated with a unique ID.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nTo use this API, you must have one of the following privileges:\n\n* The `manage_user_profile` cluster privilege.\n* The `update_profile_data` global privilege for the namespaces that are referenced in the request.\n\nThis API updates the `labels` and `data` fields of an existing user profile document with JSON objects.\nNew keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request.\n\nFor both labels and data, content is namespaced by the top-level fields.\nThe `update_profile_data` global privilege grants privileges for updating only the allowed namespaces.", "docId": "security-api-update-user-data", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-user-profile-data", "name": "security.update_user_profile_data", "privileges": { "cluster": [ "manage_user_profile" ] }, "request": { "name": "Request", "namespace": "security.update_user_profile_data" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "security.update_user_profile_data" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_security/profile/{uid}/_data" } ] }, { "availability": { "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Cancel node shutdown preparations.\nRemove a node from the shutdown list so it can resume normal operations.\nYou must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster.\nShutdown requests are never removed automatically by Elasticsearch.\n\nNOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.\nDirect use is not supported.\n\nIf the operator privileges feature is enabled, you must be an operator to use this API.", "docId": "nodes-api-shutdown-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-shutdown-delete-node", "name": "shutdown.delete_node", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "shutdown.delete_node" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "shutdown.delete_node" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_nodes/{node_id}/shutdown" } ] }, { "availability": { "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Get the shutdown status.\n\nGet information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled.\nThe API returns status information for each part of the shut down process.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.\n\nIf the operator privileges feature is enabled, you must be an operator to use this API.", "docId": "nodes-api-shutdown-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-shutdown-get-node", "name": "shutdown.get_node", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "shutdown.get_node" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "shutdown.get_node" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_nodes/shutdown" }, { "methods": [ "GET" ], "path": "/_nodes/{node_id}/shutdown" } ] }, { "availability": { "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Prepare a node to be shut down.\n\nNOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.\n\nIf you specify a node that is offline, it will be prepared for shut down when it rejoins the cluster.\n\nIf the operator privileges feature is enabled, you must be an operator to use this API.\n\nThe API migrates ongoing tasks and index shards to other nodes as needed to prepare a node to be restarted or shut down and removed from the cluster.\nThis ensures that Elasticsearch can be stopped safely with minimal disruption to the cluster.\n\nYou must specify the type of shutdown: `restart`, `remove`, or `replace`.\nIf a node is already being prepared for shutdown, you can use this API to change the shutdown type.\n\nIMPORTANT: This API does NOT terminate the Elasticsearch process.\nMonitor the node shutdown status to determine when it is safe to stop Elasticsearch.", "docId": "nodes-api-shutdown", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-shutdown-put-node", "name": "shutdown.put_node", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "shutdown.put_node" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "shutdown.put_node" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_nodes/{node_id}/shutdown" } ] }, { "availability": { "stack": { "since": "8.12.0", "stability": "experimental", "visibility": "public" } }, "description": "Simulate data ingestion.\nRun ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index.\n\nThis API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch.\n\nThe API runs the default and final pipeline for that index against a set of documents provided in the body of the request.\nIf a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would.\nNo data is indexed into Elasticsearch.\nInstead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation.\nThe transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result.\n\nThis API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline.\nThe simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index.\n\nBy default, the pipeline definitions that are currently in the system are used.\nHowever, you can supply substitute pipeline definitions in the body of the request.\nThese will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request.", "docId": "simulate-ingest-api", "docTag": "ingest", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-simulate-ingest", "name": "simulate.ingest", "privileges": { "index": [ "index" ] }, "request": { "name": "Request", "namespace": "simulate.ingest" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "simulate.ingest" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_ingest/_simulate" }, { "methods": [ "GET", "POST" ], "path": "/_ingest/{index}/_simulate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Delete a policy.\nDelete a snapshot lifecycle policy definition.\nThis operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots.", "docId": "slm-api-delete-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-delete-lifecycle", "name": "slm.delete_lifecycle", "privileges": { "cluster": [ "manage_slm" ] }, "request": { "name": "Request", "namespace": "slm.delete_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.delete_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_slm/policy/{policy_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Run a policy.\nImmediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time.\nThe snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance.", "docId": "slm-api-execute-lifecycle", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-execute-lifecycle", "name": "slm.execute_lifecycle", "privileges": { "cluster": [ "manage_slm" ] }, "request": { "name": "Request", "namespace": "slm.execute_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.execute_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_slm/policy/{policy_id}/_execute" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Run a retention policy.\nManually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules.\nThe retention policy is normally applied according to its schedule.", "docId": "slm-api-execute-retention", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-execute-retention", "name": "slm.execute_retention", "privileges": { "cluster": [ "manage_slm" ] }, "request": { "name": "Request", "namespace": "slm.execute_retention" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.execute_retention" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_slm/_execute_retention" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Get policy information.\nGet snapshot lifecycle policy definitions and information about the latest snapshot attempts.", "docId": "slm-api-get-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-lifecycle", "name": "slm.get_lifecycle", "privileges": { "cluster": [ "manage_slm" ] }, "request": { "name": "Request", "namespace": "slm.get_lifecycle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.get_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_slm/policy/{policy_id}" }, { "methods": [ "GET" ], "path": "/_slm/policy" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Get snapshot lifecycle management statistics.\nGet global and policy-level statistics about actions taken by snapshot lifecycle management.", "docId": "slm-api-get-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-stats", "name": "slm.get_stats", "privileges": { "cluster": [ "manage_slm" ] }, "request": { "name": "Request", "namespace": "slm.get_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.get_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_slm/stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.6.0", "stability": "stable" } }, "description": "Get the snapshot lifecycle management status.", "docId": "slm-api-get-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-status", "name": "slm.get_status", "privileges": { "cluster": [ "read_slm" ] }, "request": { "name": "Request", "namespace": "slm.get_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.get_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_slm/status" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Create or update a policy.\nCreate or update a snapshot lifecycle policy.\nIf the policy already exists, this request increments the policy version.\nOnly the latest version of a policy is stored.", "docId": "slm-api-put-policy", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-put-lifecycle", "name": "slm.put_lifecycle", "privileges": { "cluster": [ "manage_slm" ], "index": [ "manage" ] }, "request": { "name": "Request", "namespace": "slm.put_lifecycle" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "slm.put_lifecycle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_slm/policy/{policy_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.6.0", "stability": "stable" } }, "description": "Start snapshot lifecycle management.\nSnapshot lifecycle management (SLM) starts automatically when a cluster is formed.\nManually starting SLM is necessary only if it has been stopped using the stop SLM API.", "docId": "slm-api-start", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-start", "name": "slm.start", "privileges": { "cluster": [ "manage_slm" ] }, "request": { "name": "Request", "namespace": "slm.start" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.start" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_slm/start" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.6.0", "stability": "stable" } }, "description": "Stop snapshot lifecycle management.\nStop all snapshot lifecycle management (SLM) operations and the SLM plugin.\nThis API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices.\nStopping SLM does not stop any snapshots that are in progress.\nYou can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped.\n\nThe API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped.\nUse the get snapshot lifecycle management status API to see if SLM is running.", "docId": "slm-api-stop", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-stop", "name": "slm.stop", "request": { "name": "Request", "namespace": "slm.stop" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "slm.stop" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_slm/stop" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.4.0", "stability": "stable" } }, "description": "Clean up the snapshot repository.\nTrigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots.", "docId": "snapshot-repo-cleanup", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-cleanup-repository", "extDocId": "clean-up-snapshot-repo", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/self-managed#snapshots-repository-cleanup", "name": "snapshot.cleanup_repository", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.cleanup_repository" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.cleanup_repository" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_snapshot/{repository}/_cleanup" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.10.0", "stability": "stable" } }, "description": "Clone a snapshot.\nClone part of all of a snapshot into another snapshot in the same repository.", "docId": "snapshot-clone", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-clone", "name": "snapshot.clone", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.clone" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "snapshot.clone" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Create a snapshot.\nTake a snapshot of a cluster or of data streams and indices.", "docId": "snapshot-create-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create", "extDocId": "snapshot-create", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/create-snapshots", "name": "snapshot.create", "privileges": { "cluster": [ "create_snapshot" ] }, "request": { "name": "Request", "namespace": "snapshot.create" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "snapshot.create" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_snapshot/{repository}/{snapshot}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Create or update a snapshot repository.\nIMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters.\nTo register a snapshot repository, the cluster's global metadata must be writeable.\nEnsure there are no cluster blocks (for example, `cluster.blocks.read_only` and `clsuter.blocks.read_only_allow_delete` settings) that prevent write access.\n\nSeveral options for this API can be specified using a query parameter or a request body parameter.\nIf both parameters are specified, only the query parameter is used.", "docId": "snapshot-repo-create", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create-repository", "extDocId": "register-repository", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/self-managed", "name": "snapshot.create_repository", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.create_repository" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "snapshot.create_repository" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_snapshot/{repository}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Delete snapshots.", "docId": "snapshot-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-delete", "name": "snapshot.delete", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.delete" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.delete" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_snapshot/{repository}/{snapshot}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Delete snapshot repositories.\nWhen a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots.\nThe snapshots themselves are left untouched and in place.", "docId": "snapshot-repo-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-delete-repository", "name": "snapshot.delete_repository", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.delete_repository" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.delete_repository" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_snapshot/{repository}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Get snapshot information.\n\nNOTE: The `after` parameter and `next` field enable you to iterate through snapshots with some consistency guarantees regarding concurrent creation or deletion of snapshots.\nIt is guaranteed that any snapshot that exists at the beginning of the iteration and is not concurrently deleted will be seen during the iteration.\nSnapshots concurrently created may be seen during an iteration.", "docId": "snapshot-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-get", "name": "snapshot.get", "privileges": { "cluster": [ "monitor_snapshot" ] }, "request": { "name": "Request", "namespace": "snapshot.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_snapshot/{repository}/{snapshot}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Get snapshot repository information.", "docId": "snapshot-repo-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-get-repository", "name": "snapshot.get_repository", "privileges": { "cluster": [ "monitor_snapshot" ] }, "request": { "name": "Request", "namespace": "snapshot.get_repository" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.get_repository" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_snapshot" }, { "methods": [ "GET" ], "path": "/_snapshot/{repository}" } ] }, { "availability": { "stack": { "since": "7.12.0", "stability": "stable", "visibility": "public" } }, "description": "Analyze a snapshot repository.\nAnalyze the performance characteristics and any incorrect behaviour found in a repository.\n\nThe response exposes implementation details of the analysis which may change from version to version.\nThe response body format is therefore not considered stable and may be different in newer versions.\n\nThere are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch.\nSome storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system.\n\nThe default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations.\nRun your first analysis with the default parameter values to check for simple problems.\nIf successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a `blob_count` of at least `2000`, a `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, and a `register_operation_count` of at least `100`.\nAlways specify a generous timeout, possibly `1h` or longer, to allow time for each analysis to run to completion.\nPerform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once.\n\nIf the analysis fails, Elasticsearch detected that your repository behaved unexpectedly.\nThis usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support.\nIf so, this storage system is not suitable for use as a snapshot repository.\nYou will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects.\n\nIf the analysis is successful, the API returns details of the testing process, optionally including how long each operation took.\nYou can use this information to determine the performance of your storage system.\nIf any operation fails or returns an incorrect result, the API returns an error.\nIf the API returns an error, it may not have removed all the data it wrote to the repository.\nThe error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs.\nYou should verify that this location has been cleaned up correctly.\nIf there is still leftover data at the specified location, you should manually remove it.\n\nIf the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled.\nSome clients are configured to close their connection if no response is received within a certain timeout.\nAn analysis takes a long time to complete so you might need to relax any such client-side timeouts.\nOn cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all.\nThe path to the leftover data is recorded in the Elasticsearch logs.\nYou should verify that this location has been cleaned up correctly.\nIf there is still leftover data at the specified location, you should manually remove it.\n\nIf the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed.\nThe analysis attempts to detect common bugs but it does not offer 100% coverage.\nAdditionally, it does not test the following:\n\n* Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster.\n* Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted.\n* Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results.\n\nIMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again.\nThis consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself.\nYou must ensure this load does not affect other users of these systems.\nAnalyses respect the repository settings `max_snapshot_bytes_per_sec` and `max_restore_bytes_per_sec` if available and the cluster setting `indices.recovery.max_bytes_per_sec` which you can use to limit the bandwidth they consume.\n\nNOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.\n\nNOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones.\nA storage system that passes repository analysis with one version of Elasticsearch may fail with a different version.\nThis indicates it behaves incorrectly in ways that the former version did not detect.\nYou must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch.\n\nNOTE: This API may not work correctly in a mixed-version cluster.\n\n*Implementation details*\n\nNOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions.\n\nThe analysis comprises a number of blob-level tasks, as set by the `blob_count` parameter and a number of compare-and-exchange operations on linearizable registers, as set by the `register_operation_count` parameter.\nThese tasks are distributed over the data and master-eligible nodes in the cluster for execution.\n\nFor most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote.\nThe size of the blob is chosen randomly, according to the `max_blob_size` and `max_total_data_size` parameters.\nIf any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires.\n\nFor some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes.\nThese reads are permitted to fail, but must not return partial data.\nIf any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires.\n\nFor some blob-level tasks, the executing node will overwrite the blob while its peers are reading it.\nIn this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs.\nIf any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites.\n\nThe executing node will use a variety of different methods to write the blob.\nFor instance, where applicable, it will use both single-part and multi-part uploads.\nSimilarly, the reading nodes will use a variety of different methods to read the data back again.\nFor instance they may read the entire blob from start to end or may read only a subset of the data.\n\nFor some blob-level tasks, the executing node will cancel the write before it is complete.\nIn this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob.\n\nLinearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation.\nThis operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time.\nThe detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type.\nRepository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed.\nRepository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results.\nIf an operation fails due to contention, Elasticsearch retries the operation until it succeeds.\nMost of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob.\nSome operations also verify the behavior on small blobs with sizes other than 8 bytes.", "docId": "analyze-repository", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-repository-analyze", "name": "snapshot.repository_analyze", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.repository_analyze" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.repository_analyze" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_snapshot/{repository}/_analyze" } ] }, { "availability": { "stack": { "since": "8.16.0", "stability": "experimental", "visibility": "private" } }, "description": "Verify the repository integrity.\nVerify the integrity of the contents of a snapshot repository.\n\nThis API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail.\n\nIf you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its `read_only` option to `true`, and use this API to verify its integrity.\nUntil you do so:\n\n* It may not be possible to restore some snapshots from this repository.\n* Searchable snapshots may report errors when searched or may have unassigned shards.\n* Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored.\n* Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk.\n* Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents.\n\nIf the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage.\nThe only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred.\nYou must also identify what caused the damage and take action to prevent it from happening again.\n\nIf you cannot restore a repository backup, register a new repository and use this for all future snapshot operations.\nIn some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository.\n\nAvoid all operations which write to the repository while the verify repository integrity API is running.\nIf something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes.\nIt may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting.\n\nNOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.\n\nNOTE: This API may not work correctly in a mixed-version cluster.\n\nThe default values for the parameters of this API are designed to limit the impact of the integrity verification on other activities in your cluster.\nFor instance, by default it will only use at most half of the `snapshot_meta` threads to verify the integrity of each snapshot, allowing other snapshot operations to use the other half of this thread pool.\nIf you modify these parameters to speed up the verification process, you risk disrupting other snapshot-related operations in your cluster.\nFor large repositories, consider setting up a separate single-node Elasticsearch cluster just for running the integrity verification API.\n\nThe response exposes implementation details of the analysis which may change from version to version.\nThe response body format is therefore not considered stable and may be different in newer versions.", "docId": "snapshot-repo-verify-integrity", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-repository-verify-integrity", "name": "snapshot.repository_verify_integrity", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.repository_verify_integrity" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.repository_verify_integrity" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_snapshot/{repository}/_verify_integrity" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Restore a snapshot.\nRestore a snapshot of a cluster or data streams and indices.\n\nYou can restore a snapshot only to a running cluster with an elected master node.\nThe snapshot repository must be registered and available to the cluster.\nThe snapshot and cluster versions must be compatible.\n\nTo restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks.\n\nBefore you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API:\n\n```\nGET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream\n```\n\nIf no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices.\n\nIf your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot.", "docId": "snapshot-restore-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-restore", "extDocId": "restore-snapshot", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/restore-snapshot", "name": "snapshot.restore", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.restore" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "snapshot.restore" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_snapshot/{repository}/{snapshot}/_restore" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.8.0", "stability": "stable" } }, "description": "Get the snapshot status.\nGet a detailed description of the current state for each shard participating in the snapshot.\n\nNote that this API should be used only to obtain detailed shard-level information for ongoing snapshots.\nIf this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API.\n\nIf you omit the `` request path parameter, the request retrieves information only for currently running snapshots.\nThis usage is preferred.\nIf needed, you can specify `` and `` to retrieve information for specific snapshots, even if they're not currently running.\n\nWARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.\nThe API requires a read from the repository for each shard in each snapshot.\nFor example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).\n\nDepending on the latency of your storage, such requests can take an extremely long time to return results.\nThese requests can also tax machine resources and, when using cloud storage, incur high processing costs.", "docId": "snapshot-status", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-status", "name": "snapshot.status", "privileges": { "cluster": [ "monitor_snapshot" ] }, "request": { "name": "Request", "namespace": "snapshot.status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_snapshot/_status" }, { "methods": [ "GET" ], "path": "/_snapshot/{repository}/_status" }, { "methods": [ "GET" ], "path": "/_snapshot/{repository}/{snapshot}/_status" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "0.0.0", "stability": "stable" } }, "description": "Verify a snapshot repository.\nCheck for common misconfigurations in a snapshot repository.", "docId": "snapshot-repo-verify", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-verify-repository", "extDocId": "verify-repository", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/self-managed#snapshots-repository-verification", "name": "snapshot.verify_repository", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "snapshot.verify_repository" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "snapshot.verify_repository" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_snapshot/{repository}/_verify" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.3.0", "stability": "stable" } }, "description": "Clear an SQL search cursor.", "docId": "sql-clear-cursor-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-clear-cursor", "name": "sql.clear_cursor", "request": { "name": "Request", "namespace": "sql.clear_cursor" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "sql.clear_cursor" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_sql/close" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.15.0", "stability": "stable" } }, "description": "Delete an async SQL search.\nDelete an async SQL search or a stored synchronous SQL search.\nIf the search is still running, the API cancels it.\n\nIf the Elasticsearch security features are enabled, only the following users can use this API to delete a search:\n\n* Users with the `cancel_task` cluster privilege.\n* The user who first submitted the search.", "docId": "sql-delete-async-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-delete-async", "name": "sql.delete_async", "privileges": { "cluster": [ "cancel_task" ] }, "request": { "name": "Request", "namespace": "sql.delete_async" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "sql.delete_async" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_sql/async/delete/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.15.0", "stability": "stable" } }, "description": "Get async SQL search results.\nGet the current status and available results for an async SQL search or stored synchronous SQL search.\n\nIf the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API.", "docId": "sql-async-search-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async", "name": "sql.get_async", "request": { "name": "Request", "namespace": "sql.get_async" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "sql.get_async" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_sql/async/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.15.0", "stability": "stable" } }, "description": "Get the async SQL search status.\nGet the current status of an async SQL search or a stored synchronous SQL search.", "docId": "sql-async-status-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async-status", "name": "sql.get_async_status", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "sql.get_async_status" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "sql.get_async_status" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_sql/async/status/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.3.0", "stability": "stable" } }, "description": "Get SQL search results.\nRun an SQL request.", "docId": "sql-search-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-query", "name": "sql.query", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "sql.query" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "sql.query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "GET" ], "path": "/_sql" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "6.3.0", "stability": "stable" } }, "description": "Translate SQL into Elasticsearch queries.\nTranslate an SQL search into a search API request containing Query DSL.\nIt accepts the same request body parameters as the SQL search API, excluding `cursor`.", "docId": "sql-translate-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-translate", "name": "sql.translate", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "sql.translate" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "sql.translate" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST", "GET" ], "path": "/_sql/translate" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.2.0", "stability": "stable" } }, "description": "Get SSL certificates.\n\nGet information about the X.509 certificates that are used to encrypt communications in the cluster.\nThe API returns a list that includes certificates from all TLS contexts including:\n\n- Settings for transport and HTTP interfaces\n- TLS settings that are used within authentication realms\n- TLS settings for remote monitoring exporters\n\nThe list includes certificates that are used for configuring trust, such as those configured in the `xpack.security.transport.ssl.truststore` and `xpack.security.transport.ssl.certificate_authorities` settings.\nIt also includes certificates that are used for configuring server identity, such as `xpack.security.http.ssl.keystore` and `xpack.security.http.ssl.certificate settings`.\n\nThe list does not include certificates that are sourced from the default SSL context of the Java Runtime Environment (JRE), even if those certificates are in use within Elasticsearch.\n\nNOTE: When a PKCS#11 token is configured as the truststore of the JRE, the API returns all the certificates that are included in the PKCS#11 token irrespective of whether these are used in the Elasticsearch TLS configuration.\n\nIf Elasticsearch is configured to use a keystore or truststore, the API output includes all certificates in that store, even though some of the certificates might not be in active use within the cluster.", "docId": "security-api-ssl", "docTag": "security", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ssl-certificates", "extDocId": "security-encrypt-internode", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/security/set-up-basic-security#encrypt-internode-communication", "name": "ssl.certificates", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "ssl.certificates" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "ssl.certificates" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_ssl/certificates" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Delete a synonym set.\n\nYou can only delete a synonyms set that is not in use by any index analyzer.\n\nSynonyms sets can be used in synonym graph token filters and synonym token filters.\nThese synonym filters can be used as part of search analyzers.\n\nAnalyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open).\nEven if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase.\n\nIf any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available.\nTo prevent that, synonyms sets that are used in analyzers can't be deleted.\nA delete request in this case will return a 400 response code.\n\nTo remove a synonyms set, you must first remove all indices that contain analyzers using it.\nYou can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data.\nOnce finished, you can delete the index.\nWhen the synonyms set is not used in analyzers, you will be able to delete it.", "docId": "synonym-set-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym", "name": "synonyms.delete_synonym", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.delete_synonym" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "synonyms.delete_synonym" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_synonyms/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Delete a synonym rule.\nDelete a synonym rule from a synonym set.", "docId": "synonym-rule-delete", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym-rule", "name": "synonyms.delete_synonym_rule", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.delete_synonym_rule" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "synonyms.delete_synonym_rule" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_synonyms/{set_id}/{rule_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Get a synonym set.", "docId": "synonym-set-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym", "name": "synonyms.get_synonym", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.get_synonym" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "synonyms.get_synonym" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_synonyms/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Get a synonym rule.\nGet a synonym rule from a synonym set.", "docId": "synonym-rule-get", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym-rule", "name": "synonyms.get_synonym_rule", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.get_synonym_rule" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "synonyms.get_synonym_rule" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_synonyms/{set_id}/{rule_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Get all synonym sets.\nGet a summary of all defined synonym sets.", "docId": "synonym-set-list", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym", "name": "synonyms.get_synonyms_sets", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.get_synonyms_sets" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "synonyms.get_synonyms_sets" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_synonyms" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Create or update a synonym set.\nSynonyms sets are limited to a maximum of 10,000 synonym rules per set.\nIf you need to manage more synonym rules, you can create multiple synonym sets.\n\nWhen an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices.\nThis is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set.", "docId": "synonym-set-create", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym", "name": "synonyms.put_synonym", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.put_synonym" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "synonyms.put_synonym" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_synonyms/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.10.0", "stability": "stable" } }, "description": "Create or update a synonym rule.\nCreate or update a synonym rule in a synonym set.\n\nIf any of the synonym rules included is invalid, the API returns an error.\n\nWhen you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule.", "docId": "synonym-rule-create", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym-rule", "name": "synonyms.put_synonym_rule", "privileges": { "cluster": [ "manage_search_synonyms" ] }, "request": { "name": "Request", "namespace": "synonyms.put_synonym_rule" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "synonyms.put_synonym_rule" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_synonyms/{set_id}/{rule_id}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "2.3.0", "stability": "experimental" } }, "description": "Cancel a task.\n\nWARNING: The task management API is new and should still be considered a beta feature.\nThe API may change in ways that are not backwards compatible.\n\nA task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away.\nIt is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation.\nThe get task information API will continue to list these cancelled tasks until they complete.\nThe cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible.\n\nTo troubleshoot why a cancelled task does not complete promptly, use the get task information API with the `?detailed` parameter to identify the other tasks the system is running.\nYou can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.", "docId": "tasks", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks", "name": "tasks.cancel", "privileges": { "cluster": [ "manage" ] }, "request": { "name": "Request", "namespace": "tasks.cancel" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "tasks.cancel" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_tasks/_cancel" }, { "methods": [ "POST" ], "path": "/_tasks/{task_id}/_cancel" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "public" }, "stack": { "since": "5.0.0", "stability": "experimental" } }, "description": "Get task information.\nGet information about a task currently running in the cluster.\n\nWARNING: The task management API is new and should still be considered a beta feature.\nThe API may change in ways that are not backwards compatible.\n\nIf the task identifier is not found, a 404 response code indicates that there are no resources that match the request.", "docId": "tasks", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks", "name": "tasks.get", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "tasks.get" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "tasks.get" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_tasks/{task_id}" } ] }, { "availability": { "serverless": { "stability": "experimental", "visibility": "private" }, "stack": { "since": "2.3.0", "stability": "experimental" } }, "description": "Get all tasks.\nGet information about the tasks currently running on one or more nodes in the cluster.\n\nWARNING: The task management API is new and should still be considered a beta feature.\nThe API may change in ways that are not backwards compatible.\n\n**Identifying running tasks**\n\nThe `X-Opaque-Id header`, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information.\nThis enables you to track certain calls or associate certain tasks with the client that started them.\nFor example:\n\n```\ncurl -i -H \"X-Opaque-Id: 123456\" \"http://localhost:9200/_tasks?group_by=parents\"\n```\n\nThe API returns the following result:\n\n```\nHTTP/1.1 200 OK\nX-Opaque-Id: 123456\ncontent-type: application/json; charset=UTF-8\ncontent-length: 831\n\n{\n \"tasks\" : {\n \"u5lcZHqcQhu-rUoFaqDphA:45\" : {\n \"node\" : \"u5lcZHqcQhu-rUoFaqDphA\",\n \"id\" : 45,\n \"type\" : \"transport\",\n \"action\" : \"cluster:monitor/tasks/lists\",\n \"start_time_in_millis\" : 1513823752749,\n \"running_time_in_nanos\" : 293139,\n \"cancellable\" : false,\n \"headers\" : {\n \"X-Opaque-Id\" : \"123456\"\n },\n \"children\" : [\n {\n \"node\" : \"u5lcZHqcQhu-rUoFaqDphA\",\n \"id\" : 46,\n \"type\" : \"direct\",\n \"action\" : \"cluster:monitor/tasks/lists[n]\",\n \"start_time_in_millis\" : 1513823752750,\n \"running_time_in_nanos\" : 92133,\n \"cancellable\" : false,\n \"parent_task_id\" : \"u5lcZHqcQhu-rUoFaqDphA:45\",\n \"headers\" : {\n \"X-Opaque-Id\" : \"123456\"\n }\n }\n ]\n }\n }\n }\n```\nIn this example, `X-Opaque-Id: 123456` is the ID as a part of the response header.\nThe `X-Opaque-Id` in the task `headers` is the ID for the task that was initiated by the REST request.\nThe `X-Opaque-Id` in the children `headers` is the child task of the task that was initiated by the REST request.", "docId": "tasks", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks", "name": "tasks.list", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "tasks.list" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "tasks.list" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_tasks" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.14.0", "stability": "stable" } }, "description": "Get terms in an index.\n\nDiscover terms that match a partial string in an index.\nThis API is designed for low-latency look-ups used in auto-complete scenarios.\n\n> info\n> The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents.", "docId": "search-terms-enum", "docTag": "search", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-terms-enum", "name": "terms_enum", "request": { "name": "Request", "namespace": "_global.terms_enum" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.terms_enum" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_terms_enum" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Get term vector information.\n\nGet information and statistics about terms in the fields of a particular document.\n\nYou can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request.\nYou can specify the fields you are interested in through the `fields` parameter or by adding the fields to the request body.\nFor example:\n\n```\nGET /my-index-000001/_termvectors/1?fields=message\n```\n\nFields can be specified using wildcards, similar to the multi match query.\n\nTerm vectors are real-time by default, not near real-time.\nThis can be changed by setting `realtime` parameter to `false`.\n\nYou can request three types of values: _term information_, _term statistics_, and _field statistics_.\nBy default, all term information and field statistics are returned for all fields but term statistics are excluded.\n\n**Term information**\n\n* term frequency in the field (always returned)\n* term positions (`positions: true`)\n* start and end offsets (`offsets: true`)\n* term payloads (`payloads: true`), as base64 encoded bytes\n\nIf the requested information wasn't stored in the index, it will be computed on the fly if possible.\nAdditionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user.\n\n> warn\n> Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16.\n\n**Behaviour**\n\nThe term and field statistics are not accurate.\nDeleted documents are not taken into account.\nThe information is only retrieved for the shard the requested document resides in.\nThe term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context.\nBy default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected.\nUse `routing` only to hit a particular shard.", "docId": "docs-termvectors", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-termvectors", "name": "termvectors", "privileges": { "index": [ "read" ] }, "request": { "name": "Request", "namespace": "_global.termvectors" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.termvectors" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/{index}/_termvectors/{id}" }, { "methods": [ "GET", "POST" ], "path": "/{index}/_termvectors" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Find the structure of a text field.\nFind the structure of a text field in an Elasticsearch index.\n\nThis API provides a starting point for extracting further information from log messages already ingested into Elasticsearch.\nFor example, if you have ingested data into a very simple index that has just `@timestamp` and message fields, you can use this API to see what common structure exists in the message field.\n\nThe response from the API contains:\n\n* Sample messages.\n* Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.\n* Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.\n* Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.\n\nAll this information can be calculated by the structure finder with no guidance.\nHowever, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.\n\nIf the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response.\nIt helps determine why the returned structure was chosen.", "docId": "find-field-structure", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure", "name": "text_structure.find_field_structure", "privileges": { "cluster": [ "monitor_text_structure" ] }, "request": { "name": "Request", "namespace": "text_structure.find_field_structure" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "text_structure.find_field_structure" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_text_structure/find_field_structure" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Find the structure of text messages.\nFind the structure of a list of text messages.\nThe messages must contain data that is suitable to be ingested into Elasticsearch.\n\nThis API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality.\nUse this API rather than the find text structure API if your input text has already been split up into separate messages by some other process.\n\nThe response from the API contains:\n\n* Sample messages.\n* Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.\n* Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.\nAppropriate mappings for an Elasticsearch index, which you could use to ingest the text.\n\nAll this information can be calculated by the structure finder with no guidance.\nHowever, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.\n\nIf the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response.\nIt helps determine why the returned structure was chosen.", "docId": "find-message-structure", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-message-structure", "name": "text_structure.find_message_structure", "privileges": { "cluster": [ "monitor_text_structure" ] }, "request": { "name": "Request", "namespace": "text_structure.find_message_structure" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "text_structure.find_message_structure" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_text_structure/find_message_structure" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.13.0", "stability": "stable" } }, "description": "Find the structure of a text file.\nThe text file must contain data that is suitable to be ingested into Elasticsearch.\n\nThis API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality.\nUnlike other Elasticsearch endpoints, the data that is posted to this endpoint does not need to be UTF-8 encoded and in JSON format.\nIt must, however, be text; binary text formats are not currently supported.\nThe size is limited to the Elasticsearch HTTP receive buffer size, which defaults to 100 Mb.\n\nThe response from the API contains:\n\n* A couple of messages from the beginning of the text.\n* Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.\n* Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.\n* Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.\n\nAll this information can be calculated by the structure finder with no guidance.\nHowever, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.", "docId": "find-structure", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-structure", "name": "text_structure.find_structure", "privileges": { "cluster": [ "monitor_text_structure" ] }, "request": { "name": "Request", "namespace": "text_structure.find_structure" }, "requestBodyRequired": true, "requestMediaType": [ "application/x-ndjson" ], "response": { "name": "Response", "namespace": "text_structure.find_structure" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_text_structure/find_structure" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "8.13.0", "stability": "stable" } }, "description": "Test a Grok pattern.\nTest a Grok pattern on one or more lines of text.\nThe API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings.", "docId": "test-grok-pattern", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-test-grok-pattern", "extDocId": "grok", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/scripting/grok", "name": "text_structure.test_grok_pattern", "request": { "name": "Request", "namespace": "text_structure.test_grok_pattern" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "text_structure.test_grok_pattern" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_text_structure/test_grok_pattern" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Delete a transform.", "docId": "delete-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-delete-transform", "name": "transform.delete_transform", "privileges": { "cluster": [ "manage_transform" ] }, "request": { "name": "Request", "namespace": "transform.delete_transform" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "transform.delete_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_transform/{transform_id}" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Retrieves transform usage information for transform nodes.", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-node-stats.html", "name": "transform.get_node_stats", "request": null, "requestBodyRequired": false, "response": null, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_transform/_node_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Get transforms.\nGet configuration information for transforms.", "docId": "get-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform", "name": "transform.get_transform", "privileges": { "cluster": [ "monitor_transform" ] }, "request": { "name": "Request", "namespace": "transform.get_transform" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "transform.get_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_transform/{transform_id}" }, { "methods": [ "GET" ], "path": "/_transform" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Get transform stats.\n\nGet usage information for transforms.", "docId": "get-transform-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform-stats", "name": "transform.get_transform_stats", "privileges": { "cluster": [ "monitor_transform" ], "index": [ "read", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "transform.get_transform_stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "transform.get_transform_stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_transform/{transform_id}/_stats" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.2.0", "stability": "stable" } }, "description": "Preview a transform.\nGenerates a preview of the results that you will get when you create a transform with the same configuration.\n\nIt returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also\ngenerates a list of mappings and settings for the destination index. These values are determined based on the field\ntypes of the source index and the transform aggregations.", "docId": "preview-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-preview-transform", "name": "transform.preview_transform", "privileges": { "cluster": [ "manage_transform" ], "index": [ "read", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "transform.preview_transform" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "transform.preview_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_transform/{transform_id}/_preview" }, { "methods": [ "GET", "POST" ], "path": "/_transform/_preview" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.2.0", "stability": "stable" } }, "description": "Create a transform.\nCreates a transform.\n\nA transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as\na data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a\nunique row per entity.\n\nYou must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If\nyou choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in\nthe pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values\nin the latest object.\n\nYou must have `create_index`, `index`, and `read` privileges on the destination index and `read` and\n`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the\ntransform remembers which roles the user that created it had at the time of creation and uses those same roles. If\nthose roles do not have the required privileges on the source and destination indices, the transform fails when it\nattempts unauthorized operations.\n\nNOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any\n`.transform-internal*` indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do\nnot give users any privileges on `.transform-internal*` indices. If you used transforms prior to 7.5, also do not\ngive users any privileges on `.data-frame-internal*` indices.", "docId": "put-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-put-transform", "name": "transform.put_transform", "privileges": { "cluster": [ "manage_transform" ], "index": [ "create_index", "read", "index", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "transform.put_transform" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "transform.put_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_transform/{transform_id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.1.0", "stability": "stable" } }, "description": "Reset a transform.\n\nBefore you can reset it, you must stop it; alternatively, use the `force` query parameter.\nIf the destination index was created by the transform, it is deleted.", "docId": "reset-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-reset-transform", "name": "transform.reset_transform", "privileges": { "cluster": [ "manage_transform" ] }, "request": { "name": "Request", "namespace": "transform.reset_transform" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "transform.reset_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_transform/{transform_id}/_reset" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.7.0", "stability": "stable" } }, "description": "Schedule a transform to start now.\n\nInstantly run a transform to process data.\nIf you run this API, the transform will process the new data instantly,\nwithout waiting for the configured frequency interval. After the API is called,\nthe transform will be processed again at `now + frequency` unless the API\nis called again in the meantime.", "docId": "schedule-now-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-schedule-now-transform", "name": "transform.schedule_now_transform", "privileges": { "cluster": [ "manage_transform" ] }, "request": { "name": "Request", "namespace": "transform.schedule_now_transform" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "transform.schedule_now_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_transform/{transform_id}/_schedule_now" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Start a transform.\n\nWhen you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is\nset to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping\ndefinitions for the destination index from the source indices and the transform aggregations. If fields in the\ndestination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),\nthe transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce\nmapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you\nstart the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings\nin a pivot transform.\n\nWhen the transform starts, a series of validations occur to ensure its success. If you deferred validation when you\ncreated the transform, they occur when you start the transform—​with the exception of privilege checks. When\nElasticsearch security features are enabled, the transform remembers which roles the user that created it had at the\ntime of creation and uses those same roles. If those roles do not have the required privileges on the source and\ndestination indices, the transform fails when it attempts unauthorized operations.", "docId": "start-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-start-transform", "name": "transform.start_transform", "privileges": { "cluster": [ "manage_transform" ], "index": [ "read", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "transform.start_transform" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "transform.start_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_transform/{transform_id}/_start" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.5.0", "stability": "stable" } }, "description": "Stop transforms.\nStops one or more transforms.", "docId": "stop-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-stop-transform", "name": "transform.stop_transform", "privileges": { "cluster": [ "manage_transform" ] }, "request": { "name": "Request", "namespace": "transform.stop_transform" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "transform.stop_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_transform/{transform_id}/_stop" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "7.2.0", "stability": "stable" } }, "description": "Update a transform.\nUpdates certain properties of a transform.\n\nAll updated properties except `description` do not take effect until after the transform starts the next checkpoint,\nthus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`\nprivileges for the source indices. You must also have `index` and `read` privileges for the destination index. When\nElasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the\ntime of update and runs with those privileges.", "docId": "update-transform", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-update-transform", "name": "transform.update_transform", "privileges": { "cluster": [ "manage_transform" ], "index": [ "read", "index", "view_index_metadata" ] }, "request": { "name": "Request", "namespace": "transform.update_transform" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "transform.update_transform" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_transform/{transform_id}/_update" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "7.16.0", "stability": "stable" } }, "description": "Upgrade all transforms.\n\nTransforms are compatible across minor versions and between supported major versions.\nHowever, over time, the format of transform configuration information may change.\nThis API identifies transforms that have a legacy configuration format and upgrades them to the latest version.\nIt also cleans up the internal data structures that store the transform state and checkpoints.\nThe upgrade does not affect the source and destination indices.\nThe upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged.\n\nIf a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue.\nResolve the issue then re-run the process again.\nA summary is returned when the upgrade is finished.\n\nTo ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster.\nYou may want to perform a recent cluster backup prior to the upgrade.", "docId": "upgrade-transforms", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-upgrade-transforms", "name": "transform.upgrade_transforms", "privileges": { "cluster": [ "manage_transform" ] }, "request": { "name": "Request", "namespace": "transform.upgrade_transforms" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "transform.upgrade_transforms" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_transform/_upgrade" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "stability": "stable" } }, "description": "Update a document.\n\nUpdate a document by running a script or passing a partial document.\n\nIf the Elasticsearch security features are enabled, you must have the `index` or `write` index privilege for the target index or index alias.\n\nThe script can update, delete, or skip modifying the document.\nThe API also supports passing a partial document, which is merged into the existing document.\nTo fully replace an existing document, use the index API.\nThis operation:\n\n* Gets the document (collocated with the shard) from the index.\n* Runs the specified script.\n* Indexes the result.\n\nThe document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation.\n\nThe `_source` field must be enabled to use this API.\nIn addition to `_source`, you can access the following variables through the `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the current timestamp).", "docId": "docs-update", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update", "name": "update", "privileges": { "index": [ "write" ] }, "request": { "name": "Request", "namespace": "_global.update" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.update" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_update/{id}" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "2.4.0", "stability": "stable" } }, "description": "Update documents.\nUpdates documents that match the specified query.\nIf no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias:\n\n* `read`\n* `index` or `write`\n\nYou can specify the query criteria in the request URI or the request body using the same syntax as the search API.\n\nWhen you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning.\nWhen the versions match, the document is updated and the version number is incremented.\nIf a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails.\nYou can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`.\nNote that if you opt to count version conflicts, the operation could attempt to update more documents from the source than `max_docs` until it has successfully updated `max_docs` documents or it has gone through every document in the source query.\n\nNOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number.\n\nWhile processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents.\nA bulk update request is performed for each batch of matching documents.\nAny query or update failures cause the update by query request to fail and the failures are shown in the response.\nAny update requests that completed successfully still stick, they are not rolled back.\n\n**Throttling update requests**\n\nTo control the rate at which update by query issues batches of update operations, you can set `requests_per_second` to any positive decimal number.\nThis pads each batch with a wait time to throttle the rate.\nSet `requests_per_second` to `-1` to turn off throttling.\n\nThrottling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account.\nThe padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing.\nBy default the batch size is 1000, so if `requests_per_second` is set to `500`:\n\n```\ntarget_time = 1000 / 500 per second = 2 seconds\nwait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds\n```\n\nSince the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set.\nThis is \"bursty\" instead of \"smooth\".\n\n**Slicing**\n\nUpdate by query supports sliced scroll to parallelize the update process.\nThis can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nSetting `slices` to `auto` chooses a reasonable number for most data streams and indices.\nThis setting will use one slice per shard, up to a certain limit.\nIf there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards.\n\nAdding `slices` to `_update_by_query` just automates the manual process of creating sub-requests, which means it has some quirks:\n\n* You can see these requests in the tasks APIs. These sub-requests are \"child\" tasks of the task for the request with slices.\n* Fetching the status of the task for the request with `slices` only contains the status of completed slices.\n* These sub-requests are individually addressable for things like cancellation and rethrottling.\n* Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally.\n* Canceling the request with slices will cancel each sub-request.\n* Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution.\n* Parameters like `requests_per_second` and `max_docs` on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being updated.\n* Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time.\n\nIf you're slicing manually or otherwise tuning automatic slicing, keep in mind that:\n\n* Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead.\n* Update performance scales linearly across available resources with the number of slices.\n\nWhether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources.\n\n**Update the document source**\n\nUpdate by query supports scripts to update the document source.\nAs with the update API, you can set `ctx.op` to change the operation that is performed.\n\nSet `ctx.op = \"noop\"` if your script decides that it doesn't have to make any changes.\nThe update by query operation skips updating the document and increments the `noop` counter.\n\nSet `ctx.op = \"delete\"` if your script decides that the document should be deleted.\nThe update by query operation deletes the document and increments the `deleted` counter.\n\nUpdate by query supports only `index`, `noop`, and `delete`.\nSetting `ctx.op` to anything else is an error.\nSetting any other field in `ctx` is an error.\nThis API enables you to only modify the source of matching documents; you cannot move them.", "docId": "docs-update-by-query", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query", "name": "update_by_query", "privileges": { "index": [ "read", "write" ] }, "request": { "name": "Request", "namespace": "_global.update_by_query" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "_global.update_by_query" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/{index}/_update_by_query" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "since": "6.5.0", "stability": "stable" } }, "description": "Throttle an update by query operation.\n\nChange the number of requests per second for a particular update by query operation.\nRethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.", "docId": "docs-update-by-query-rethrottle", "docTag": "document", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query-rethrottle", "name": "update_by_query_rethrottle", "request": { "name": "Request", "namespace": "_global.update_by_query_rethrottle" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "_global.update_by_query_rethrottle" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_update_by_query/{task_id}/_rethrottle" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Acknowledge a watch.\nAcknowledging a watch enables you to manually throttle the execution of the watch's actions.\n\nThe acknowledgement state of an action is stored in the `status.actions..ack.state` structure.\n\nIMPORTANT: If the specified watch is currently being executed, this API will return an error\nThe reason for this behavior is to prevent overwriting the watch status from a watch execution.\n\nAcknowledging an action throttles further executions of that action until its `ack.state` is reset to `awaits_successful_execution`.\nThis happens when the condition of the watch is not met (the condition evaluates to false).", "docId": "watcher-api-ack-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-ack-watch", "name": "watcher.ack_watch", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.ack_watch" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.ack_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/{watch_id}/_ack" }, { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/{watch_id}/_ack/{action_id}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Activate a watch.\nA watch can be either active or inactive.", "docId": "watcher-api-activate-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-activate-watch", "extDocId": "watcher-works", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher/how-watcher-works", "name": "watcher.activate_watch", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.activate_watch" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.activate_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/{watch_id}/_activate" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Deactivate a watch.\nA watch can be either active or inactive.", "docId": "watcher-api-deactivate-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-deactivate-watch", "extDocId": "watcher-works", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/alerts-cases/watcher/how-watcher-works", "name": "watcher.deactivate_watch", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.deactivate_watch" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.deactivate_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/{watch_id}/_deactivate" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Delete a watch.\nWhen the watch is removed, the document representing the watch in the `.watches` index is gone and it will never be run again.\n\nDeleting a watch does not delete any watch execution records related to this watch from the watch history.\n\nIMPORTANT: Deleting a watch must be done by using only this API.\nDo not delete the watch directly from the `.watches` index using the Elasticsearch delete document API\nWhen Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the `.watches` index.", "docId": "watcher-api-delete-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-delete-watch", "name": "watcher.delete_watch", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.delete_watch" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.delete_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "DELETE" ], "path": "/_watcher/watch/{id}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Run a watch.\nThis API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes.\n\nFor testing and debugging purposes, you also have fine-grained control on how the watch runs.\nYou can run the watch without running all of its actions or alternatively by simulating them.\nYou can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after it runs.\n\nYou can use the run watch API to run watches that are not yet registered by specifying the watch definition inline.\nThis serves as great tool for testing and debugging your watches prior to adding them to Watcher.\n\nWhen Elasticsearch security features are enabled on your cluster, watches are run with the privileges of the user that stored the watches.\nIf your user is allowed to read index `a`, but not index `b`, then the exact same set of rules will apply during execution of a watch.\n\nWhen using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch.", "docId": "watcher-api-execute-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-execute-watch", "name": "watcher.execute_watch", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.execute_watch" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "watcher.execute_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/{id}/_execute" }, { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/_execute" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Get Watcher index settings.\nGet settings for the Watcher internal index (`.watches`).\nOnly a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`.", "docId": "watcher-api-get-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-settings", "name": "watcher.get_settings", "request": { "name": "Request", "namespace": "watcher.get_settings" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "watcher.get_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_watcher/settings" } ] }, { "availability": { "stack": { "since": "5.6.0", "stability": "stable" } }, "description": "Get a watch.", "docId": "watcher-api-get-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-watch", "name": "watcher.get_watch", "privileges": { "cluster": [ "monitor_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.get_watch" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.get_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_watcher/watch/{id}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Create or update a watch.\nWhen a watch is registered, a new document that represents the watch is added to the `.watches` index and its trigger is immediately registered with the relevant trigger engine.\nTypically for the `schedule` trigger, the scheduler is the trigger engine.\n\nIMPORTANT: You must use Kibana or this API to create a watch.\nDo not add a watch directly to the `.watches` index by using the Elasticsearch index API.\nIf Elasticsearch security features are enabled, do not give users write privileges on the `.watches` index.\n\nWhen you add a watch you can also define its initial active state by setting the *active* parameter.\n\nWhen Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges.\nIf the user is able to read index `a`, but not index `b`, the same will apply when the watch runs.", "docId": "watcher-api-put-watch", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-put-watch", "name": "watcher.put_watch", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.put_watch" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "watcher.put_watch" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT", "POST" ], "path": "/_watcher/watch/{id}" } ] }, { "availability": { "stack": { "since": "7.11.0", "stability": "stable" } }, "description": "Query watches.\nGet all registered watches in a paginated manner and optionally filter watches by a query.\n\nNote that only the `_id` and `metadata.*` fields are queryable or sortable.", "docId": "watcher-api-query-watches", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-query-watches", "name": "watcher.query_watches", "privileges": { "cluster": [ "monitor_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.query_watches" }, "requestBodyRequired": false, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "watcher.query_watches" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET", "POST" ], "path": "/_watcher/_query/watches" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Start the watch service.\nStart the Watcher service if it is not already running.", "docId": "watcher-api-start", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-start", "name": "watcher.start", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.start" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.start" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_watcher/_start" } ] }, { "availability": { "stack": { "since": "5.5.0", "stability": "stable" } }, "description": "Get Watcher statistics.\nThis API always returns basic metrics.\nYou retrieve more metrics by using the metric parameter.", "docId": "watcher-api-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stats", "name": "watcher.stats", "privileges": { "cluster": [ "monitor_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.stats" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.stats" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_watcher/stats" }, { "methods": [ "GET" ], "path": "/_watcher/stats/{metric}" } ] }, { "availability": { "stack": { "stability": "stable" } }, "description": "Stop the watch service.\nStop the Watcher service if it is running.", "docId": "watcher-api-stop", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stop", "name": "watcher.stop", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.stop" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "watcher.stop" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "POST" ], "path": "/_watcher/_stop" } ] }, { "availability": { "stack": { "stability": "stable", "visibility": "public" } }, "description": "Update Watcher index settings.\nUpdate settings for the Watcher internal index (`.watches`).\nOnly a subset of settings can be modified.\nThis includes `index.auto_expand_replicas`, `index.number_of_replicas`, `index.routing.allocation.exclude.*`,\n`index.routing.allocation.include.*` and `index.routing.allocation.require.*`.\nModification of `index.routing.allocation.include._tier_preference` is an exception and is not allowed as the\nWatcher shards must always be in the `data_content` tier.", "docId": "watcher-api-update-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings", "name": "watcher.update_settings", "privileges": { "cluster": [ "manage_watcher" ] }, "request": { "name": "Request", "namespace": "watcher.update_settings" }, "requestBodyRequired": true, "requestMediaType": [ "application/json" ], "response": { "name": "Response", "namespace": "watcher.update_settings" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "PUT" ], "path": "/_watcher/settings" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get information.\nThe information provided by the API includes:\n\n* Build information including the build number and timestamp.\n* License information about the currently installed license.\n* Feature information for the features that are currently enabled and available under the current license.", "docId": "info-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-info", "name": "xpack.info", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "xpack.info" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "xpack.info" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_xpack" } ] }, { "availability": { "serverless": { "stability": "stable", "visibility": "private" }, "stack": { "stability": "stable" } }, "description": "Get usage information.\nGet information about the features that are currently enabled and available under the current license.\nThe API also provides some usage statistics.", "docId": "usage-api", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-xpack", "name": "xpack.usage", "privileges": { "cluster": [ "monitor" ] }, "request": { "name": "Request", "namespace": "xpack.usage" }, "requestBodyRequired": false, "response": { "name": "Response", "namespace": "xpack.usage" }, "responseMediaType": [ "application/json" ], "urls": [ { "methods": [ "GET" ], "path": "/_xpack/usage" } ] } ], "types": [ { "kind": "interface", "inherits": { "type": { "name": "WriteOperation", "namespace": "_global.bulk" } }, "name": { "name": "CreateOperation", "namespace": "_global.bulk" }, "properties": [], "specLocation": "_global/bulk/types.ts#L140-L140" }, { "kind": "interface", "inherits": { "type": { "name": "OperationBase", "namespace": "_global.bulk" } }, "name": { "name": "DeleteOperation", "namespace": "_global.bulk" }, "properties": [], "specLocation": "_global/bulk/types.ts#L144-L144" }, { "kind": "enum", "members": [ { "name": "not_applicable_or_unknown" }, { "name": "used" }, { "name": "not_enabled" }, { "name": "failed" } ], "name": { "name": "FailureStoreStatus", "namespace": "_global.bulk" }, "specLocation": "_global/bulk/types.ts#L86-L91" }, { "kind": "interface", "inherits": { "type": { "name": "WriteOperation", "namespace": "_global.bulk" } }, "name": { "name": "IndexOperation", "namespace": "_global.bulk" }, "properties": [], "specLocation": "_global/bulk/types.ts#L142-L142" }, { "kind": "interface", "name": { "name": "OperationBase", "namespace": "_global.bulk" }, "properties": [ { "description": "The document ID.", "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the index or index alias to perform the action on.", "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/bulk/types.ts#L100-L117" }, { "kind": "interface", "name": { "name": "OperationContainer", "namespace": "_global.bulk" }, "properties": [ { "description": "Index the specified document.\nIf the document exists, it replaces the document and increments the version.\nThe following line must contain the source data to be indexed.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOperation", "namespace": "_global.bulk" } } }, { "description": "Index the specified document if it does not already exist.\nThe following line must contain the source data to be indexed.", "name": "create", "required": false, "type": { "kind": "instance_of", "type": { "name": "CreateOperation", "namespace": "_global.bulk" } } }, { "description": "Perform a partial document update.\nThe following line must contain the partial document and update options.", "name": "update", "required": false, "type": { "kind": "instance_of", "type": { "name": "UpdateOperation", "namespace": "_global.bulk" } } }, { "description": "Remove the specified document from the index.", "name": "delete", "required": false, "type": { "kind": "instance_of", "type": { "name": "DeleteOperation", "namespace": "_global.bulk" } } } ], "specLocation": "_global/bulk/types.ts#L158-L180", "variants": { "kind": "container" } }, { "kind": "enum", "members": [ { "name": "index" }, { "name": "create" }, { "name": "update" }, { "name": "delete" } ], "name": { "name": "OperationType", "namespace": "_global.bulk" }, "specLocation": "_global/bulk/types.ts#L93-L98" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "operations", "value": { "kind": "array_of", "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "OperationContainer", "namespace": "_global.bulk" } }, { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.bulk.Request" } }, { "kind": "instance_of", "type": { "name": "TPartialDocument", "namespace": "_global.bulk.Request" } } ], "type": { "name": "UpdateAction", "namespace": "_global.bulk" } }, { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.bulk.Request" } } ] } } }, "description": "Bulk index or delete documents.\nPerform multiple `index`, `create`, `delete`, and `update` actions in a single request.\nThis reduces overhead and can greatly increase indexing speed.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:\n\n* To use the `create` action, you must have the `create_doc`, `create`, `index`, or `write` index privilege. Data streams support only the `create` action.\n* To use the `index` action, you must have the `create`, `index`, or `write` index privilege.\n* To use the `delete` action, you must have the `delete` or `write` index privilege.\n* To use the `update` action, you must have the `index` or `write` index privilege.\n* To automatically create a data stream or index with a bulk API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege.\n* To make the result of a bulk operation visible to search using the `refresh` parameter, you must have the `maintenance` or `manage` index privilege.\n\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\nThe actions are specified in the request body using a newline delimited JSON (NDJSON) structure:\n\n```\naction_and_meta_data\\n\noptional_source\\n\naction_and_meta_data\\n\noptional_source\\n\n....\naction_and_meta_data\\n\noptional_source\\n\n```\n\nThe `index` and `create` actions expect a source on the next line and have the same semantics as the `op_type` parameter in the standard index API.\nA `create` action fails if a document with the same ID already exists in the target\nAn `index` action adds or replaces a document as necessary.\n\nNOTE: Data streams support only the `create` action.\nTo update or delete a document in a data stream, you must target the backing index containing the document.\n\nAn `update` action expects that the partial doc, upsert, and script and its options are specified on the next line.\n\nA `delete` action does not expect a source on the next line and has the same semantics as the standard delete API.\n\nNOTE: The final line of data must end with a newline character (`\\n`).\nEach newline character may be preceded by a carriage return (`\\r`).\nWhen sending NDJSON data to the `_bulk` endpoint, use a `Content-Type` header of `application/json` or `application/x-ndjson`.\nBecause this format uses literal newline characters (`\\n`) as delimiters, make sure that the JSON actions and sources are not pretty printed.\n\nIf you provide a target in the request path, it is used for any actions that don't explicitly specify an `_index` argument.\n\nA note on the format: the idea here is to make processing as fast as possible.\nAs some of the actions are redirected to other shards on other nodes, only `action_meta_data` is parsed on the receiving node side.\n\nClient libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible.\n\nThere is no \"correct\" number of actions to perform in a single bulk request.\nExperiment with different settings to find the optimal size for your particular workload.\nNote that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size.\nIt is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch.\nFor instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch.\n\n**Client suppport for bulk requests**\n\nSome of the officially supported clients provide helpers to assist with bulk requests and reindexing:\n\n* Go: Check out `esutil.BulkIndexer`\n* Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk` and `Search::Elasticsearch::Client::5_0::Scroll`\n* Python: Check out `elasticsearch.helpers.*`\n* JavaScript: Check out `client.helpers.*`\n* .NET: Check out `BulkAllObservable`\n* PHP: Check out bulk indexing.\n\n**Submitting bulk requests with cURL**\n\nIf you're providing text file input to `curl`, you must use the `--data-binary` flag instead of plain `-d`.\nThe latter doesn't preserve newlines. For example:\n\n```\n$ cat requests\n{ \"index\" : { \"_index\" : \"test\", \"_id\" : \"1\" } }\n{ \"field1\" : \"value1\" }\n$ curl -s -H \"Content-Type: application/x-ndjson\" -XPOST localhost:9200/_bulk --data-binary \"@requests\"; echo\n{\"took\":7, \"errors\": false, \"items\":[{\"index\":{\"_index\":\"test\",\"_id\":\"1\",\"_version\":1,\"result\":\"created\",\"forced_refresh\":false}}]}\n```\n\n**Optimistic concurrency control**\n\nEach `index` and `delete` action within a bulk API call may include the `if_seq_no` and `if_primary_term` parameters in their respective action and meta data lines.\nThe `if_seq_no` and `if_primary_term` parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details.\n\n**Versioning**\n\nEach bulk item can include the version value using the `version` field.\nIt automatically follows the behavior of the index or delete operation based on the `_version` mapping.\nIt also support the `version_type`.\n\n**Routing**\n\nEach bulk item can include the routing value using the `routing` field.\nIt automatically follows the behavior of the index or delete operation based on the `_routing` mapping.\n\nNOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template.\n\n**Wait for active shards**\n\nWhen making bulk calls, you can set the `wait_for_active_shards` parameter to require a minimum number of shard copies to be active before starting to process the bulk request.\n\n**Refresh**\n\nControl when the changes made by this request are visible to search.\n\nNOTE: Only the shards that receive the bulk request will be affected by refresh.\nImagine a `_bulk?refresh=wait_for` request with three documents in it that happen to be routed to different shards in an index with five shards.\nThe request will only wait for those three shards to refresh.\nThe other two shards that make up the index do not participate in the `_bulk` request at all.", "examples": { "BulkRequestExample1": { "description": "Run `POST _bulk` to perform multiple operations.", "summary": "Multiple operations", "value": "{ \"index\" : { \"_index\" : \"test\", \"_id\" : \"1\" } }\n{ \"field1\" : \"value1\" }\n{ \"delete\" : { \"_index\" : \"test\", \"_id\" : \"2\" } }\n{ \"create\" : { \"_index\" : \"test\", \"_id\" : \"3\" } }\n{ \"field1\" : \"value3\" }\n{ \"update\" : {\"_id\" : \"1\", \"_index\" : \"test\"} }\n{ \"doc\" : {\"field2\" : \"value2\"} }" }, "BulkRequestExample2": { "description": "When you run `POST _bulk` and use the `update` action, you can use `retry_on_conflict` as a field in the action itself (not in the extra payload line) to specify how many times an update should be retried in the case of a version conflict.\n", "summary": "Bulk updates", "value": "{ \"update\" : {\"_id\" : \"1\", \"_index\" : \"index1\", \"retry_on_conflict\" : 3} }\n{ \"doc\" : {\"field\" : \"value\"} }\n{ \"update\" : { \"_id\" : \"0\", \"_index\" : \"index1\", \"retry_on_conflict\" : 3} }\n{ \"script\" : { \"source\": \"ctx._source.counter += params.param1\", \"lang\" : \"painless\", \"params\" : {\"param1\" : 1}}, \"upsert\" : {\"counter\" : 1}}\n{ \"update\" : {\"_id\" : \"2\", \"_index\" : \"index1\", \"retry_on_conflict\" : 3} }\n{ \"doc\" : {\"field\" : \"value\"}, \"doc_as_upsert\" : true }\n{ \"update\" : {\"_id\" : \"3\", \"_index\" : \"index1\", \"_source\" : true} }\n{ \"doc\" : {\"field\" : \"value\"} }\n{ \"update\" : {\"_id\" : \"4\", \"_index\" : \"index1\"} }\n{ \"doc\" : {\"field\" : \"value\"}, \"_source\": true}" }, "BulkRequestExample3": { "description": "To return only information about failed operations, run `POST /_bulk?filter_path=items.*.error`.\n", "summary": "Filter for failed operations", "value": "{ \"update\": {\"_id\": \"5\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"foo\"} }\n{ \"update\": {\"_id\": \"6\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"foo\"} }\n{ \"create\": {\"_id\": \"7\", \"_index\": \"index1\"} }\n{ \"my_field\": \"foo\" }" }, "BulkRequestExample4": { "description": "Run `POST /_bulk` to perform a bulk request that consists of index and create actions with the `dynamic_templates` parameter. The bulk request creates two new fields `work_location` and `home_location` with type `geo_point` according to the `dynamic_templates` parameter. However, the `raw_location` field is created using default dynamic mapping rules, as a text field in that case since it is supplied as a string in the JSON document.\n", "summary": "Dynamic templates", "value": "{ \"index\" : { \"_index\" : \"my_index\", \"_id\" : \"1\", \"dynamic_templates\": {\"work_location\": \"geo_point\"}} }\n{ \"field\" : \"value1\", \"work_location\": \"41.12,-71.34\", \"raw_location\": \"41.12,-71.34\"}\n{ \"create\" : { \"_index\" : \"my_index\", \"_id\" : \"2\", \"dynamic_templates\": {\"home_location\": \"geo_point\"}} }\n{ \"field\" : \"value2\", \"home_location\": \"41.12,-71.34\"}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.bulk.Request" }, { "name": "TPartialDocument", "namespace": "_global.bulk.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.bulk" }, "path": [ { "description": "The name of the data stream, index, or index alias to perform bulk actions on.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "True or false if to include the document source in the error message in case of parsing errors.", "name": "include_source_on_error", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response will include the ingest pipelines that were run for each index or create.", "name": "list_executed_pipelines", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The pipeline identifier to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request.\nIf a final pipeline is configured, it will always run regardless of the value of this parameter.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search.\nIf `wait_for`, wait for a refresh to make this operation visible to search.\nIf `false`, do nothing with refreshes.\nValid values: `true`, `false`, `wait_for`.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Indicates whether to return the `_source` field (`true` or `false`) or contains a list of fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude from the response.\nYou can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.\nIf this parameter is specified, only these source fields are returned.\nYou can exclude fields from this subset using the `_source_excludes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The period each action waits for the following operations: automatic index creation, dynamic mapping updates, and waiting for active shards.\nThe default is `1m` (one minute), which guarantees Elasticsearch waits for at least the timeout before failing.\nThe actual wait time could be longer, particularly when multiple waits occur.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe default is `1`, which waits for each primary shard to be active.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If `true`, the request's actions must target an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request's actions must target a data stream (existing or to be created).", "name": "require_data_stream", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/bulk/BulkRequest.ts#L32-L247" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If `true`, one or more of the operations in the bulk request did not complete successfully.", "name": "errors", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The result of each operation in the bulk request, in the order they were submitted.", "name": "items", "required": true, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "OperationType", "namespace": "_global.bulk" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "ResponseItem", "namespace": "_global.bulk" } } } } }, { "description": "The length of time, in milliseconds, it took to process the bulk request.", "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "ingest_took", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "examples": { "BulkResponseExample1": { "summary": "Multiple successful operations", "value": "{\n \"took\": 30,\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 201,\n \"_seq_no\" : 0,\n \"_primary_term\": 1\n }\n },\n {\n \"delete\": {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"_version\": 1,\n \"result\": \"not_found\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 404,\n \"_seq_no\" : 1,\n \"_primary_term\" : 2\n }\n },\n {\n \"create\": {\n \"_index\": \"test\",\n \"_id\": \"3\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 201,\n \"_seq_no\" : 2,\n \"_primary_term\" : 3\n }\n },\n {\n \"update\": {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_version\": 2,\n \"result\": \"updated\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 200,\n \"_seq_no\" : 3,\n \"_primary_term\" : 4\n }\n }\n ]\n}" }, "BulkResponseExample2": { "description": "If you run `POST /_bulk` with operations that update non-existent documents, the operations cannot complete successfully. The API returns a response with an `errors` property value `true`. The response also includes an error object for any failed operations. The error object contains additional information about the failure, such as the error type and reason.\n", "summary": "Failed actions", "value": "{\n \"took\": 486,\n \"errors\": true,\n \"items\": [\n {\n \"update\": {\n \"_index\": \"index1\",\n \"_id\": \"5\",\n \"status\": 404,\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[5]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n },\n {\n \"update\": {\n \"_index\": \"index1\",\n \"_id\": \"6\",\n \"status\": 404,\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[6]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n },\n {\n \"create\": {\n \"_index\": \"index1\",\n \"_id\": \"7\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"status\": 201\n }\n }\n ]\n}" }, "BulkResponseExample3": { "description": "An example response from `POST /_bulk?filter_path=items.*.error`, which returns only information about failed operations.\n", "summary": "Filter for failed operations", "value": "{\n \"items\": [\n {\n \"update\": {\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[5]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n },\n {\n \"update\": {\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[6]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "_global.bulk" }, "specLocation": "_global/bulk/BulkResponse.ts#L24-L45" }, { "kind": "interface", "name": { "name": "ResponseItem", "namespace": "_global.bulk" }, "properties": [ { "description": "The document ID associated with the operation.", "name": "_id", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The name of the index associated with the operation.\nIf the operation targeted a data stream, this is the backing index into which the document was written.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The HTTP status code returned for the operation.", "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failure_store", "required": false, "type": { "kind": "instance_of", "type": { "name": "FailureStoreStatus", "namespace": "_global.bulk" } } }, { "description": "Additional information about the failed operation.\nThe property is returned only for failed operations.", "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "description": "The primary term assigned to the document for the operation.\nThis property is returned only for successful operations.", "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The result of the operation.\nSuccessful values are `created`, `deleted`, and `updated`.", "name": "result", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The sequence number assigned to the document for the operation.\nSequence numbers are used to ensure an older version of a document doesn't overwrite a newer version.", "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "Shard information for the operation.", "name": "_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "description": "The document version associated with the operation.\nThe document version is incremented each time the document is updated.\nThis property is returned only for successful actions.", "name": "_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "forced_refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "get", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } ], "type": { "name": "InlineGet", "namespace": "_types" } } } ], "specLocation": "_global/bulk/types.ts#L37-L84" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.bulk.UpdateAction" }, { "name": "TPartialDocument", "namespace": "_global.bulk.UpdateAction" } ], "name": { "name": "UpdateAction", "namespace": "_global.bulk" }, "properties": [ { "description": "If true, the `result` in the response is set to 'noop' when no changes to the document occur.", "name": "detect_noop", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A partial update to an existing document.", "name": "doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "TPartialDocument", "namespace": "_global.bulk.UpdateAction" } } }, { "description": "Set to `true` to use the contents of `doc` as the value of `upsert`.", "name": "doc_as_upsert", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The script to run to update the document.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Set to `true` to run the script whether or not the document exists.", "name": "scripted_upsert", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, source retrieval is turned off.\nYou can also specify a comma-separated list of the fields you want to retrieve.", "name": "_source", "required": false, "serverDefault": "true", "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "If the document does not already exist, the contents of `upsert` are inserted as a new document.\nIf the document exists, the `script` is run.", "name": "upsert", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.bulk.UpdateAction" } } } ], "specLocation": "_global/bulk/types.ts#L182-L217" }, { "kind": "interface", "inherits": { "type": { "name": "OperationBase", "namespace": "_global.bulk" } }, "name": { "name": "UpdateOperation", "namespace": "_global.bulk" }, "properties": [ { "description": "If `true`, the request's actions must target an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of times an update should be retried in the case of a version conflict.", "name": "retry_on_conflict", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/bulk/types.ts#L146-L156" }, { "kind": "interface", "inherits": { "type": { "name": "OperationBase", "namespace": "_global.bulk" } }, "name": { "name": "WriteOperation", "namespace": "_global.bulk" }, "properties": [ { "description": "A map from the full name of fields to the name of dynamic templates.\nIt defaults to an empty map.\nIf a name matches a dynamic template, that template will be applied regardless of other match predicates defined in the template.\nIf a field is already defined in the mapping, then this parameter won't be used.", "name": "dynamic_templates", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The ID of the pipeline to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request.\nIf a final pipeline is configured, it will always run regardless of the value of this parameter.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the request's actions must target an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/bulk/types.ts#L119-L138" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The scroll IDs to clear.\nTo clear all scroll IDs, use `_all`.", "name": "scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollIds", "namespace": "_types" } } } ] }, "description": "Clear a scrolling search.\nClear the search context and results for a scrolling search.", "examples": { "ClearScrollRequestExample1": { "description": "Run `DELETE /_search/scroll` to clear the search context and results for a scrolling search.", "value": "{\n \"scroll_id\": \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.clear_scroll" }, "path": [ { "deprecation": { "description": "", "version": "7.0.0" }, "description": "A comma-separated list of scroll IDs to clear.\nTo clear all scroll IDs, use `_all`.\nIMPORTANT: Scroll IDs can be long. It is recommended to specify scroll IDs in the request body parameter.", "name": "scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollIds", "namespace": "_types" } } } ], "query": [], "specLocation": "_global/clear_scroll/ClearScrollRequest.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If `true`, the request succeeded.\nThis does not indicate whether any scrolling search requests were cleared.", "name": "succeeded", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of scrolling search requests cleared.", "name": "num_freed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "exceptions": [ { "body": { "kind": "properties", "properties": [ { "name": "succeeded", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "num_freed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "statusCodes": [ 404 ] } ], "name": { "name": "Response", "namespace": "_global.clear_scroll" }, "specLocation": "_global/clear_scroll/ClearScrollResponse.ts#L22-L43" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The ID of the point-in-time.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] }, "description": "Close a point in time.\nA point in time must be opened explicitly before being used in search requests.\nThe `keep_alive` parameter tells Elasticsearch how long it should persist.\nA point in time is automatically closed when the `keep_alive` period has elapsed.\nHowever, keeping points in time has a cost; close them as soon as they are no longer required for search requests.", "examples": { "ClosePointInTimeRequestExample1": { "description": "Run `DELETE /_pit` to close a point-in-time.", "value": "{\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.close_point_in_time" }, "path": [], "query": [], "specLocation": "_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If `true`, all search contexts associated with the point-in-time ID were successfully closed.", "name": "succeeded", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of search contexts that were successfully closed.", "name": "num_freed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "examples": { "ClosePointInTimeResponseExample1": { "description": "A successful response from `DELETE /_pit`.", "value": "{\n \"succeeded\": true, \n \"num_freed\": 3 \n}" } }, "exceptions": [ { "body": { "kind": "properties", "properties": [ { "name": "succeeded", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "num_freed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "statusCodes": [ 404 ] } ], "name": { "name": "Response", "namespace": "_global.close_point_in_time" }, "specLocation": "_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Defines the search query using Query DSL. A request body query cannot be used\nwith the `q` query string parameter.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] }, "description": "Count search results.\nGet the number of documents matching a query.\n\nThe query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body.\nThe query is optional. When no query is provided, the API uses `match_all` to count all the documents.\n\nThe count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices.\n\nThe operation is broadcast across all shards.\nFor each shard ID group, a replica is chosen and the search is run against it.\nThis means that replicas increase the scalability of the count.", "examples": { "CountRequestExample1": { "description": "Run `GET /my-index-000001/_count?q=user:kimchy`. Alternatively, run `GET /my-index-000001/_count` with the same query in the request body. Both requests count the number of documents in `my-index-000001` with a `user.id` of `kimchy`.\n", "value": "{\n \"query\" : {\n \"term\" : { \"user.id\" : \"kimchy\" }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.count" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).\nTo search all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analyzer to use for the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, wildcard and prefix queries are analyzed.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, "serverDefault": "OR", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "The field to use as a default when no field prefix is given in the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If `true`, concrete, expanded, or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The minimum `_score` value that documents must have to be included in the result.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The node or shard the operation should be performed on.\nBy default, it is random.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The maximum number of documents to collect for each shard.\nIf a query reaches this limit, Elasticsearch terminates the query early.\nElasticsearch collects documents before sorting.\n\nIMPORTANT: Use with caution.\nElasticsearch applies this parameter to each shard handling the request.\nWhen possible, let Elasticsearch perform early termination automatically.\nAvoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.", "name": "terminate_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The query in Lucene query string syntax. This parameter cannot be used with a request body.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/count/CountRequest.ts#L26-L154" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ] }, "examples": { "CountResponseExample1": { "description": "A successful response from `GET /my-index-000001/_count?q=user:kimchy`.", "value": "{\n \"count\": 1,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n }\n}" } }, "name": { "name": "Response", "namespace": "_global.count" }, "specLocation": "_global/count/CountResponse.ts#L23-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "document", "value": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.create.Request" } } }, "description": "Create a new document in the index.\n\nYou can index a new JSON document with the `//_doc/` or `//_create/<_id>` APIs\nUsing `_create` guarantees that the document is indexed only if it does not already exist.\nIt returns a 409 response when a document with a same ID already exists in the index.\nTo update an existing document, you must use the `//_doc/` API.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:\n\n* To add a document using the `PUT //_create/<_id>` or `POST //_create/<_id>` request formats, you must have the `create_doc`, `create`, `index`, or `write` index privilege.\n* To automatically create a data stream or index with this API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege.\n\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\n**Automatically create data streams and indices**\n\nIf the request's target doesn't exist and matches an index template with a `data_stream` definition, the index operation automatically creates the data stream.\n\nIf the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates.\n\nNOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation.\n\nIf no mapping exists, the index operation creates a dynamic mapping.\nBy default, new fields and objects are automatically added to the mapping if needed.\n\nAutomatic index creation is controlled by the `action.auto_create_index` setting.\nIf it is `true`, any index can be created automatically.\nYou can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to `false` to turn off automatic index creation entirely.\nSpecify a comma-separated list of patterns you want to allow or prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked.\nWhen a list is specified, the default behaviour is to disallow.\n\nNOTE: The `action.auto_create_index` setting affects the automatic creation of indices only.\nIt does not affect the creation of data streams.\n\n**Routing**\n\nBy default, shard placement — or routing — is controlled by using a hash of the document's ID value.\nFor more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the `routing` parameter.\n\nWhen setting up explicit mapping, you can also use the `_routing` field to direct the index operation to extract the routing value from the document itself.\nThis does come at the (very minimal) cost of an additional document parsing pass.\nIf the `_routing` mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted.\n\nNOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template.\n\n**Distributed**\n\nThe index operation is directed to the primary shard based on its route and performed on the actual node containing this shard.\nAfter the primary shard completes the operation, if needed, the update is distributed to applicable replicas.\n\n**Active shards**\n\nTo improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation.\nIf the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs.\nBy default, write operations only wait for the primary shards to be active before proceeding (that is to say `wait_for_active_shards` is `1`).\nThis default can be overridden in the index settings dynamically by setting `index.write.wait_for_active_shards`.\nTo alter this behavior per operation, use the `wait_for_active_shards request` parameter.\n\nValid values are all or any positive integer up to the total number of configured copies per shard in the index (which is `number_of_replicas`+1).\nSpecifying a negative value or a number greater than the number of shard copies will throw an error.\n\nFor example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes).\nIf you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding.\nThis means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data.\nIf `wait_for_active_shards` is set on the request to `3` (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding.\nThis requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard.\nHowever, if you set `wait_for_active_shards` to `all` (or to `4`, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index.\nThe operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard.\n\nIt is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts.\nAfter the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary.\nThe `_shards` section of the API response reveals the number of shard copies on which replication succeeded and failed.", "examples": { "CreateRequestExample1": { "description": "Run `PUT my-index-000001/_create/1` to index a document into the `my-index-000001` index if no document with that ID exists.\n", "value": "{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.create.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.create" }, "path": [ { "description": "A unique identifier for the document.\nTo automatically generate a document ID, use the `POST //_doc/` request format.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the data stream or index to target.\nIf the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream.\nIf the target doesn't exist and doesn’t match a data stream template, this request creates the index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Only perform the operation if the document has this primary term.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Only perform the operation if the document has this sequence number.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "True or false if to include the document source in the error message in case of parsing errors.", "name": "include_source_on_error", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Set to `create` to only index the document if it does not already exist (put if absent).\nIf a document with the specified `_id` already exists, the indexing operation will fail.\nThe behavior is the same as using the `/_create` endpoint.\nIf a document ID is specified, this paramater defaults to `index`.\nOtherwise, it defaults to `create`.\nIf the request targets a data stream, an `op_type` of `create` is required.", "name": "op_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "OpType", "namespace": "_types" } } }, { "description": "The ID of the pipeline to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request.\nIf a final pipeline is configured, it will always run regardless of the value of this parameter.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } }, { "description": "If `true`, the destination must be an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request's actions must target a data stream (existing or to be created).", "name": "require_data_stream", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.\nElasticsearch waits for at least the specified timeout period before failing.\nThe actual wait time could be longer, particularly when multiple waits occur.\n\nThis parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs.\nSome reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation.\nBy default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error.\nThe actual wait time could be longer, particularly when multiple waits occur.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The explicit version number for concurrency control.\nIt must be a non-negative long number.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nYou can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe default value of `1` means it waits for each primary shard to be active.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "_global/create/CreateRequest.ts#L35-L221" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "WriteResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "_global.create" }, "specLocation": "_global/create/CreateResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a document.\n\nRemove a JSON document from the specified index.\n\nNOTE: You cannot send deletion requests directly to a data stream.\nTo delete a document in a data stream, you must target the backing index containing the document.\n\n**Optimistic concurrency control**\n\nDelete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the `if_seq_no` and `if_primary_term` parameters.\nIf a mismatch is detected, the operation will result in a `VersionConflictException` and a status code of `409`.\n\n**Versioning**\n\nEach document indexed is versioned.\nWhen deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime.\nEvery write operation run on a document, deletes included, causes its version to be incremented.\nThe version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations.\nThe length of time for which a deleted document's version remains available is determined by the `index.gc_deletes` index setting.\n\n**Routing**\n\nIf routing is used during indexing, the routing value also needs to be specified to delete a document.\n\nIf the `_routing` mapping is set to `required` and no routing value is specified, the delete API throws a `RoutingMissingException` and rejects the request.\n\nFor example:\n\n```\nDELETE /my-index-000001/_doc/1?routing=shard-1\n```\n\nThis request deletes the document with ID 1, but it is routed based on the user.\nThe document is not deleted if the correct routing is not specified.\n\n**Distributed**\n\nThe delete operation gets hashed into a specific shard ID.\nIt then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.delete" }, "path": [ { "description": "A unique identifier for the document.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the target index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Only perform the operation if the document has this primary term.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Only perform the operation if the document has this sequence number.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The period to wait for active shards.\n\nThis parameter is useful for situations where the primary shard assigned to perform the delete operation might not be available when the delete operation runs.\nSome reasons for this might be that the primary shard is currently recovering from a store or undergoing relocation.\nBy default, the delete operation will wait on the primary shard to become available for up to 1 minute before failing and responding with an error.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "An explicit version number for concurrency control.\nIt must match the current version of the document for the request to succeed.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } }, { "description": "The minimum number of shard copies that must be active before proceeding with the operation.\nYou can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe default value of `1` means it waits for each primary shard to be active.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "_global/delete/DeleteRequest.ts#L34-L146" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "WriteResponseBase", "namespace": "_types" } } }, "examples": { "DeleteResponseExample1": { "description": "A successful response from `DELETE /my-index-000001/_doc/1`, which deletes the JSON document 1 from the `my-index-000001` index.", "value": "{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 2\n },\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 2,\n \"_primary_term\": 1,\n \"_seq_no\": 5,\n \"result\": \"deleted\"\n}" } }, "exceptions": [ { "body": { "kind": "value", "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "WriteResponseBase", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "ErrorResponseBase", "namespace": "_types" } } ] } }, "description": "\nIf the index does exist, but the document does not,\nthe response is the same as the successful case, but with a 404.", "statusCodes": [ 404 ] } ], "name": { "name": "Response", "namespace": "_global.delete" }, "specLocation": "_global/delete/DeleteResponse.ts#L22-L35" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The maximum number of documents to delete.", "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The documents to delete specified with Query DSL.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Slice the request manually using the provided slice ID and total number of slices.", "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } } ] }, "description": "Delete documents.\n\nDeletes documents that match the specified query.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias:\n\n* `read`\n* `delete` or `write`\n\nYou can specify the query criteria in the request URI or the request body using the same syntax as the search API.\nWhen you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning.\nIf a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails.\n\nNOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number.\n\nWhile processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete.\nA bulk delete request is performed for each batch of matching documents.\nIf a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off.\nIf the maximum retry limit is reached, processing halts and all failed requests are returned in the response.\nAny delete requests that completed successfully still stick, they are not rolled back.\n\nYou can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`.\nNote that if you opt to count version conflicts the operation could attempt to delete more documents from the source than `max_docs` until it has successfully deleted `max_docs documents`, or it has gone through every document in the source query.\n\n**Throttling delete requests**\n\nTo control the rate at which delete by query issues batches of delete operations, you can set `requests_per_second` to any positive decimal number.\nThis pads each batch with a wait time to throttle the rate.\nSet `requests_per_second` to `-1` to disable throttling.\n\nThrottling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account.\nThe padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing.\nBy default the batch size is `1000`, so if `requests_per_second` is set to `500`:\n\n```\ntarget_time = 1000 / 500 per second = 2 seconds\nwait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds\n```\n\nSince the batch is issued as a single `_bulk` request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set.\nThis is \"bursty\" instead of \"smooth\".\n\n**Slicing**\n\nDelete by query supports sliced scroll to parallelize the delete process.\nThis can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nSetting `slices` to `auto` lets Elasticsearch choose the number of slices to use.\nThis setting will use one slice per shard, up to a certain limit.\nIf there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards.\nAdding slices to the delete by query operation creates sub-requests which means it has some quirks:\n\n* You can see these requests in the tasks APIs. These sub-requests are \"child\" tasks of the task for the request with slices.\n* Fetching the status of the task for the request with slices only contains the status of completed slices.\n* These sub-requests are individually addressable for things like cancellation and rethrottling.\n* Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally.\n* Canceling the request with `slices` will cancel each sub-request.\n* Due to the nature of `slices` each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution.\n* Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being deleted.\n* Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time.\n\nIf you're slicing manually or otherwise tuning automatic slicing, keep in mind that:\n\n* Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many `slices` hurts performance. Setting `slices` higher than the number of shards generally does not improve efficiency and adds overhead.\n* Delete performance scales linearly across available resources with the number of slices.\n\nWhether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources.\n\n**Cancel a delete by query operation**\n\nAny delete by query can be canceled using the task cancel API. For example:\n\n```\nPOST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel\n```\n\nThe task ID can be found by using the get tasks API.\n\nCancellation should happen quickly but might take a few seconds.\nThe get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself.", "examples": { "DeleteByQueryRequestExample1": { "description": "Run `POST /my-index-000001,my-index-000002/_delete_by_query` to delete all documents from multiple data streams or indices.", "summary": "Delete all documents", "value": "{\n \"query\": {\n \"match_all\": {}\n }\n}" }, "DeleteByQueryRequestExample2": { "description": "Run `POST my-index-000001/_delete_by_query` to delete a document by using a unique attribute.", "summary": "Delete a single document", "value": "{\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"max_docs\": 1\n}" }, "DeleteByQueryRequestExample3": { "description": "Run `POST my-index-000001/_delete_by_query` to slice a delete by query manually. Provide a slice ID and total number of slices.\n", "summary": "Slice manually", "value": "{\n \"slice\": {\n \"id\": 0,\n \"max\": 2\n },\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}" }, "DeleteByQueryRequestExample4": { "description": "Run `POST my-index-000001/_delete_by_query?refresh&slices=5` to let delete by query automatically parallelize using sliced scroll to slice on `_id`. The `slices` query parameter value specifies the number of slices to use.\n", "summary": "Automatic slicing", "value": "{\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.delete_by_query" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).\nTo search all data streams or indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Analyzer to use for the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, wildcard and prefix queries are analyzed.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "What to do if delete by query hits version conflicts: `abort` or `proceed`.", "name": "conflicts", "required": false, "serverDefault": "abort", "type": { "kind": "instance_of", "type": { "name": "Conflicts", "namespace": "_types" } } }, { "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, "serverDefault": "OR", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "The field to use as default where no field prefix is given in the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Skips the specified number of documents.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum number of documents to process.\nDefaults to all documents.\nWhen set to a value less then or equal to `scroll_size`, a scroll will not be used to retrieve the results for the operation.", "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes.\nThis is different than the delete API's `refresh` parameter, which causes just the shard that received the delete request to be refreshed.\nUnlike the delete API, it does not support `wait_for`.", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request cache is used for this request.\nDefaults to the index-level setting.", "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The throttle for this request in sub-requests per second.", "name": "requests_per_second", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "A query in the Lucene query string syntax.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The period to retain the search context for scrolling.", "extDocId": "scroll-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "scroll", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The size of the scroll request that powers the operation.", "name": "scroll_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The explicit timeout for each search request.\nIt defaults to no timeout.", "name": "search_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The type of the search operation.\nAvailable options include `query_then_fetch` and `dfs_query_then_fetch`.", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "The number of slices this task should be divided into.", "name": "slices", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "Slices", "namespace": "_types" } } }, { "description": "A comma-separated list of `:` pairs.", "name": "sort", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The specific `tag` of the request for logging and statistical purposes.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The maximum number of documents to collect for each shard.\nIf a query reaches this limit, Elasticsearch terminates the query early.\nElasticsearch collects documents before sorting.\n\nUse with caution.\nElasticsearch applies this parameter to each shard handling the request.\nWhen possible, let Elasticsearch perform early termination automatically.\nAvoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.", "name": "terminate_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The period each deletion request waits for active shards.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, returns the document version as part of a hit.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe `timeout` value controls how long each write request waits for unavailable shards to become available.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If `true`, the request blocks until the operation is complete.\nIf `false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space.", "name": "wait_for_completion", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/delete_by_query/DeleteByQueryRequest.ts#L36-L314" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of scroll responses pulled back by the delete by query.", "name": "batches", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully deleted.", "name": "deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "An array of failures if there were any unrecoverable errors during the process.\nIf this array is not empty, the request ended abnormally because of those failures.\nDelete by query is implemented using batches and any failures cause the entire process to end but all failures in the current batch are collected into the array.\nYou can use the `conflicts` option to prevent reindex from ending on version conflicts.", "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "BulkIndexByScrollFailure", "namespace": "_types" } } } }, { "description": "This field is always equal to zero for delete by query.\nIt exists only so that delete by query, update by query, and reindex APIs return responses with the same structure.", "name": "noops", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of requests per second effectively run during the delete by query.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The number of retries attempted by delete by query.\n`bulk` is the number of bulk actions retried.\n`search` is the number of search actions retried.", "name": "retries", "required": false, "type": { "kind": "instance_of", "type": { "name": "Retries", "namespace": "_types" } } }, { "name": "slice_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "task", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } }, { "name": "throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of milliseconds the request slept to conform to `requests_per_second`.", "name": "throttled_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "throttled_until", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "This field should always be equal to zero in a `_delete_by_query` response.\nIt has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform to `requests_per_second`.", "name": "throttled_until_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "If `true`, some requests run during the delete by query operation timed out.", "name": "timed_out", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of milliseconds from start to end of the whole operation.", "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of documents that were successfully processed.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of version conflicts that the delete by query hit.", "name": "version_conflicts", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "examples": { "DeleteByQueryResponseExample1": { "description": "A successful response from `POST /my-index-000001/_delete_by_query`.", "value": "{\n \"took\" : 147,\n \"timed_out\": false,\n \"total\": 119,\n \"deleted\": 119,\n \"batches\": 1,\n \"version_conflicts\": 0,\n \"noops\": 0,\n \"retries\": {\n \"bulk\": 0,\n \"search\": 0\n },\n \"throttled_millis\": 0,\n \"requests_per_second\": -1.0,\n \"throttled_until_millis\": 0,\n \"failures\" : [ ]\n}" } }, "name": { "name": "Response", "namespace": "_global.delete_by_query" }, "specLocation": "_global/delete_by_query/DeleteByQueryResponse.ts#L26-L88" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Throttle a delete by query operation.\n\nChange the number of requests per second for a particular delete by query operation.\nRethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.delete_by_query_rethrottle" }, "path": [ { "description": "The ID for the task.", "name": "task_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } } ], "query": [ { "description": "The throttle for this request in sub-requests per second.\nTo disable throttling, set it to `-1`.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts#L24-L55" }, { "kind": "response", "body": { "kind": "value", "codegenName": "task_list", "value": { "kind": "instance_of", "type": { "name": "TaskListResponseBase", "namespace": "tasks._types" } } }, "name": { "name": "Response", "namespace": "_global.delete_by_query_rethrottle" }, "specLocation": "_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a script or search template.\nDeletes a stored script or search template.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.delete_script" }, "path": [ { "description": "The identifier for the stored script or search template.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "_global/delete_script/DeleteScriptRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "_global.delete_script" }, "specLocation": "_global/delete_script/DeleteScriptResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check a document.\n\nVerify that a document exists.\nFor example, check to see if a document with the `_id` 0 exists:\n\n```\nHEAD my-index-000001/_doc/0\n```\n\nIf the document exists, the API returns a status code of `200 - OK`.\nIf the document doesn’t exist, the API returns `404 - Not Found`.\n\n**Versioning support**\n\nYou can use the `version` parameter to check the document only if its current version is equal to the specified one.\n\nInternally, Elasticsearch has marked the old document as deleted and added an entirely new document.\nThe old version of the document doesn't disappear immediately, although you won't be able to access it.\nElasticsearch cleans up deleted documents in the background as you continue to index more data.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.exists" }, "path": [ { "description": "A unique document identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A comma-separated list of data streams, indices, and aliases.\nIt supports wildcards (`*`).", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "The node or shard the operation should be performed on.\nBy default, the operation is randomized between the shard replicas.\n\nIf it is set to `_local`, the operation will prefer to be run on a local allocated shard when possible.\nIf it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value.\nThis can help with \"jumping values\" when hitting different shards in different refresh states.\nA sample value can be something like the web session ID or the user name.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the request is real-time as opposed to near-real-time.", "docId": "realtime", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request refreshes the relevant shards before retrieving the document.\nSetting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing).", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "extDocId": "routing", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get#get-routing", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude from the response.\nYou can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.\nIf this parameter is specified, only these source fields are returned.\nYou can exclude fields from this subset using the `_source_excludes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Explicit version number for concurrency control.\nThe specified version must match the current version of the document for the request to succeed.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/exists/DocumentExistsRequest.ts#L31-L136" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "_global.exists" }, "specLocation": "_global/exists/DocumentExistsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check for a document source.\n\nCheck whether a document source exists in an index.\nFor example:\n\n```\nHEAD my-index-000001/_source/1\n```\n\nA document's source is not available if it is disabled in the mapping.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.exists_source" }, "path": [ { "description": "A unique identifier for the document.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A comma-separated list of data streams, indices, and aliases.\nIt supports wildcards (`*`).", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "The node or shard the operation should be performed on.\nBy default, the operation is randomized between the shard replicas.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the request is real-time as opposed to near-real-time.", "extDocId": "realtime", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request refreshes the relevant shards before retrieving the document.\nSetting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing).", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "extDocId": "routing", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get#get-routing", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude in the response.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The version number for concurrency control.\nIt must match the current version of the document for the request to succeed.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/exists_source/SourceExistsRequest.ts#L31-L113" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "_global.exists_source" }, "specLocation": "_global/exists_source/SourceExistsResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "Explanation", "namespace": "_global.explain" }, "properties": [ { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "details", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExplanationDetail", "namespace": "_global.explain" } } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_global/explain/types.ts#L22-L26" }, { "kind": "interface", "name": { "name": "ExplanationDetail", "namespace": "_global.explain" }, "properties": [ { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "details", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExplanationDetail", "namespace": "_global.explain" } } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_global/explain/types.ts#L28-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Defines the search definition using the Query DSL.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] }, "description": "Explain a document match result.\nGet information about why a specific document matches, or doesn't match, a query.\nIt computes a score explanation for a query and a specific document.", "examples": { "ExplainRequestExample1": { "description": "Run `GET /my-index-000001/_explain/0` with the request body. Alternatively, run `GET /my-index-000001/_explain/0?q=message:elasticsearch`\n", "value": "{\n \"query\" : {\n \"match\" : { \"message\" : \"elasticsearch\" }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.explain" }, "path": [ { "description": "The document identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Index names that are used to limit the request.\nOnly a single index name can be provided to this parameter.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "The analyzer to use for the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, wildcard and prefix queries are analyzed.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, "serverDefault": "OR", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "The field to use as default where no field prefix is given in the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "`True` or `false` to return the `_source` field or not or a list of fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude from the response.\nYou can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.\nIf this parameter is specified, only these source fields are returned.\nYou can exclude fields from this subset using the `_source_excludes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of stored fields to return in the response.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The query in the Lucene query string syntax.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/explain/ExplainRequest.ts#L26-L125" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "matched", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExplanationDetail", "namespace": "_global.explain" } } }, { "name": "get", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.explain.Response" } } ], "type": { "name": "InlineGet", "namespace": "_types" } } } ] }, "examples": { "ExplainResponseExample1": { "description": "A successful response from `GET /my-index-000001/_explain/0`.", "value": "{\n \"_index\":\"my-index-000001\",\n \"_id\":\"0\",\n \"matched\":true,\n \"explanation\":{\n \"value\":1.6943598,\n \"description\":\"weight(message:elasticsearch in 0) [PerFieldSimilarity], result of:\",\n \"details\":[\n {\n \"value\":1.6943598,\n \"description\":\"score(freq=1.0), computed as boost * idf * tf from:\",\n \"details\":[\n {\n \"value\":2.2,\n \"description\":\"boost\",\n \"details\":[]\n },\n {\n \"value\":1.3862944,\n \"description\":\"idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\",\n \"details\":[\n {\n \"value\":1,\n \"description\":\"n, number of documents containing term\",\n \"details\":[]\n },\n {\n \"value\":5,\n \"description\":\"N, total number of documents with field\",\n \"details\":[]\n }\n ]\n },\n {\n \"value\":0.5555556,\n \"description\":\"tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\",\n \"details\":[\n {\n \"value\":1.0,\n \"description\":\"freq, occurrences of term within document\",\n \"details\":[]\n },\n {\n \"value\":1.2,\n \"description\":\"k1, term saturation parameter\",\n \"details\":[]\n },\n {\n \"value\":0.75,\n \"description\":\"b, length normalization parameter\",\n \"details\":[]\n },\n {\n \"value\":3.0,\n \"description\":\"dl, length of field\",\n \"details\":[]\n },\n {\n \"value\":5.4,\n \"description\":\"avgdl, average length of field\",\n \"details\":[]\n }\n ]\n }\n ]\n }\n ]\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.explain.Response" } ], "name": { "name": "Response", "namespace": "_global.explain" }, "specLocation": "_global/explain/ExplainResponse.ts#L23-L31" }, { "kind": "interface", "name": { "name": "FieldCapability", "namespace": "_global.field_caps" }, "properties": [ { "description": "Whether this field can be aggregated on all indices.", "name": "aggregatable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The list of indices where this field has the same type family, or null if all indices have the same type family for the field.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Merged metadata across all indices as a map of string keys to arrays of values. A value length of 1 indicates that all indices had the same value for this key, while a length of 2 or more indicates that not all indices had the same value for this key.", "name": "meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field.", "name": "non_aggregatable_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "The list of indices where this field is not searchable, or null if all indices have the same definition for the field.", "name": "non_searchable_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Whether this field is indexed for search on all indices.", "name": "searchable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Whether this field is registered as a metadata field.", "docId": "mapping-metadata", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/document-metadata-fields", "name": "metadata_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.0.0", "stability": "experimental" } }, "description": "Whether this field is used as a time series dimension.", "name": "time_series_dimension", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.0.0", "stability": "experimental" } }, "description": "Contains metric type if this fields is used as a time series\nmetrics, absent if the field is not used as metric.", "name": "time_series_metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeSeriesMetricType", "namespace": "_types.mapping" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.0.0", "stability": "experimental" } }, "description": "If this list is present in response then some indices have the\nfield marked as a dimension and other indices, the ones in this list, do not.", "name": "non_dimension_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.0.0", "stability": "experimental" } }, "description": "The list of indices where this field is present if these indices\ndon’t have the same `time_series_metric` value for this field.", "name": "metric_conflicts_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } } ], "specLocation": "_global/field_caps/types.ts#L23-L81" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "availability": { "serverless": {}, "stack": { "since": "8.5.0" } }, "description": "A list of fields to retrieve capabilities for. Wildcard (`*`) expressions are supported.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Filter indices if the provided query rewrites to `match_none` on every shard.\n\nIMPORTANT: The filtering is done on a best-effort basis, it uses index statistics and mappings to rewrite queries to `match_none` instead of fully running the request.\nFor instance a range query over a date field can rewrite to `match_none` if all documents within a shard (including deleted documents) are outside of the provided range.\nHowever, not all queries can rewrite to `match_none` so this API may return an index even if the provided filter matches no document.", "name": "index_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.12.0" } }, "description": "Define ad-hoc runtime fields in the request similar to the way it is done in search requests.\nThese fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings.", "docId": "runtime-search-request", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/mapping/define-runtime-fields-in-search-request", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } } ] }, "description": "Get the field capabilities.\n\nGet information about the capabilities of fields among multiple indices.\n\nFor data streams, the API returns field capabilities among the stream’s backing indices.\nIt returns runtime fields like any other field.\nFor example, a runtime field with a type of keyword is returned the same as any other field that belongs to the `keyword` family.", "examples": { "FieldCapabilitiesRequestExample1": { "description": "Run `POST my-index-*/_field_caps?fields=rating` to get field capabilities and filter indices with a query. Indices that rewrite the provided filter to `match_none` on every shard will be filtered from the response.\n", "value": "{\n \"index_filter\": {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"2018\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.field_caps" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias,\nor `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request\ntargeting `foo*,bar*` returns an error if an index starts with foo but no index starts with bar.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "A comma-separated list of fields to retrieve capabilities for. Wildcard (`*`) expressions are supported.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, unmapped fields are included in the response.", "name": "include_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.2.0" } }, "description": "A comma-separated list of filters to apply to the response.", "name": "filters", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.2.0" } }, "description": "A comma-separated list of field types to include.\nAny fields that do not match one of these types will be excluded from the results.\nIt defaults to empty, meaning that all field types are returned.", "name": "types", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.13.0" } }, "description": "If false, empty fields are not included in the response.", "name": "include_empty_fields", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/field_caps/FieldCapabilitiesRequest.ts#L25-L130" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The list of indices where this field has the same type family, or null if all indices have the same type family for the field.", "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "name": "fields", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldCapability", "namespace": "_global.field_caps" } } } } } ] }, "examples": { "FieldCapabilitiesResponseExample1": { "description": "A successful response from `GET _field_caps?fields=rating,title`. The field `rating` is defined as a long in `index1` and `index2` and as a `keyword` in `index3` and `index4`. The field `rating` is not aggregatable in `index1`. The field `rating` is not searchable in `index4`. The field `title` is defined as text in all indices.\n", "summary": "Get two fields", "value": "{\n \"indices\": [ \"index1\", \"index2\", \"index3\", \"index4\", \"index5\" ],\n \"fields\": {\n \"rating\": { \n \"long\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false,\n \"indices\": [ \"index1\", \"index2\" ],\n \"non_aggregatable_indices\": [ \"index1\" ] \n },\n \"keyword\": {\n \"metadata_field\": false,\n \"searchable\": false,\n \"aggregatable\": true,\n \"indices\": [ \"index3\", \"index4\" ],\n \"non_searchable_indices\": [ \"index4\" ] \n }\n },\n \"title\": { \n \"text\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false\n }\n }\n }\n}" }, "FieldCapabilitiesResponseExample2": { "description": "A successful response from `GET _field_caps?fields=rating,title&include_unmapped`. The response contains an entry for each field that is present in some indices but not all. For example, the `rating` and `title` fields are unmapped in `index5`.\n", "summary": "Get unmapped fields", "value": "{\n \"indices\": [ \"index1\", \"index2\", \"index3\", \"index4\", \"index5\" ],\n \"fields\": {\n \"rating\": { \n \"long\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false,\n \"indices\": [ \"index1\", \"index2\" ],\n \"non_aggregatable_indices\": [ \"index1\" ] \n },\n \"keyword\": {\n \"metadata_field\": false,\n \"searchable\": false,\n \"aggregatable\": true,\n \"indices\": [ \"index3\", \"index4\" ],\n \"non_searchable_indices\": [ \"index4\" ] \n }\n },\n \"title\": { \n \"text\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "_global.field_caps" }, "specLocation": "_global/field_caps/FieldCapabilitiesResponse.ts#L24-L38" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.get.GetResult" } ], "name": { "name": "GetResult", "namespace": "_global.get" }, "properties": [ { "description": "The name of the index the document belongs to.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "If the `stored_fields` parameter is set to `true` and `found` is `true`, it contains the document fields stored in the index.", "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "_ignored", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Indicates whether the document exists.", "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The unique identifier for the document.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The primary term assigned to the document for the indexing operation.", "extDocId": "optimistic_concurrency", "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The explicit routing, if set.", "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The sequence number assigned to the document for the indexing operation.\nSequence numbers are used to ensure an older version of a document doesn't overwrite a newer version.", "extDocId": "optimistic_concurrency", "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "If `found` is `true`, it contains the document data formatted in JSON.\nIf the `_source` parameter is set to `false` or the `stored_fields` parameter is set to `true`, it is excluded.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.get.GetResult" } } }, { "description": "The document version, which is ncremented each time the document is updated.", "name": "_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "_global/get/types.ts#L25-L67" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a document by its ID.\n\nGet a document and its source or stored fields from an index.\n\nBy default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search).\nIn the case where stored fields are requested with the `stored_fields` parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields.\nTo turn off realtime behavior, set the `realtime` parameter to false.\n\n**Source filtering**\n\nBy default, the API returns the contents of the `_source` field unless you have used the `stored_fields` parameter or the `_source` field is turned off.\nYou can turn off `_source` retrieval by using the `_source` parameter:\n\n```\nGET my-index-000001/_doc/0?_source=false\n```\n\nIf you only need one or two fields from the `_source`, use the `_source_includes` or `_source_excludes` parameters to include or filter out particular fields.\nThis can be helpful with large documents where partial retrieval can save on network overhead\nBoth parameters take a comma separated list of fields or wildcard expressions.\nFor example:\n\n```\nGET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities\n```\n\nIf you only want to specify includes, you can use a shorter notation:\n\n```\nGET my-index-000001/_doc/0?_source=*.id\n```\n\n**Routing**\n\nIf routing is used during indexing, the routing value also needs to be specified to retrieve a document.\nFor example:\n\n```\nGET my-index-000001/_doc/2?routing=user1\n```\n\nThis request gets the document with ID 2, but it is routed based on the user.\nThe document is not fetched if the correct routing is not specified.\n\n**Distributed**\n\nThe GET operation is hashed into a specific shard ID.\nIt is then redirected to one of the replicas within that shard ID and returns the result.\nThe replicas are the primary shard and its replicas within that shard ID group.\nThis means that the more replicas you have, the better your GET scaling will be.\n\n**Versioning support**\n\nYou can use the `version` parameter to retrieve the document only if its current version is equal to the specified one.\n\nInternally, Elasticsearch has marked the old document as deleted and added an entirely new document.\nThe old version of the document doesn't disappear immediately, although you won't be able to access it.\nElasticsearch cleans up deleted documents in the background as you continue to index more data.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.get" }, "path": [ { "description": "A unique document identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the index that contains the document.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "availability": { "stack": { "featureFlag": "es.index_mode_feature_flag_registered", "since": "8.4.0", "visibility": "feature_flag" } }, "description": "Indicates whether the request forces synthetic `_source`.\nUse this paramater to test if the mapping supports synthetic `_source` and to get a sense of the worst case performance.\nFetches with this parameter enabled will be slower than enabling synthetic source natively in the index.", "name": "force_synthetic_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nBy default, the operation is randomized between the shard replicas.\n\nIf it is set to `_local`, the operation will prefer to be run on a local allocated shard when possible.\nIf it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value.\nThis can help with \"jumping values\" when hitting different shards in different refresh states.\nA sample value can be something like the web session ID or the user name.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the request is real-time as opposed to near-real-time.", "docId": "realtime", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request refreshes the relevant shards before retrieving the document.\nSetting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing).", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "extDocId": "routing", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get#get-routing", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude from the response.\nYou can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.\nIf this parameter is specified, only these source fields are returned.\nYou can exclude fields from this subset using the `_source_excludes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nOnly leaf fields can be retrieved with the `stored_field` option.\nObject fields can't be returned;​if specified, the request fails.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The version number for concurrency control.\nIt must match the current version of the document for the request to succeed.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/get/GetRequest.ts#L31-L180" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.get.Response" } } ], "type": { "name": "GetResult", "namespace": "_global.get" } } }, "examples": { "GetResponseExample1": { "description": "A successful response from `GET my-index-000001/_doc/0`. It retrieves the JSON document with the `_id` 0 from the `my-index-000001` index.\n", "summary": "Get a document", "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"0\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"found\": true,\n \"_source\": {\n \"@timestamp\": \"2099-11-15T14:12:12\",\n \"http\": {\n \"request\": {\n \"method\": \"get\"\n },\n \"response\": {\n \"status_code\": 200,\n \"bytes\": 1070000\n },\n \"version\": \"1.1\"\n },\n \"source\": {\n \"ip\": \"127.0.0.1\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n }\n}" }, "GetResponseExample2": { "description": "A successful response from `GET my-index-000001/_doc/1?stored_fields=tags,counter`, which retrieves a set of stored fields. Field values fetched from the document itself are always returned as an array. Any requested fields that are not stored (such as the counter field in this example) are ignored.\n", "summary": "Get stored fields", "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\" : 22,\n \"_primary_term\" : 1,\n \"found\": true,\n \"fields\": {\n \"tags\": [\n \"production\"\n ]\n }\n}" }, "GetResponseExample3": { "description": "A successful response from `GET my-index-000001/_doc/2?routing=user1&stored_fields=tags,counter`, which retrieves the `_routing` metadata field.\n", "summary": "Get metadata fields", "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"2\",\n \"_version\": 1,\n \"_seq_no\" : 13,\n \"_primary_term\" : 1,\n \"_routing\": \"user1\",\n \"found\": true,\n \"fields\": {\n \"tags\": [\n \"env2\"\n ]\n }\n}" } }, "exceptions": [ { "body": { "kind": "value", "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.get.Response" } } ], "type": { "name": "GetResult", "namespace": "_global.get" } }, { "kind": "instance_of", "type": { "name": "ErrorResponseBase", "namespace": "_types" } } ] } }, "statusCodes": [ 404 ] } ], "generics": [ { "name": "TDocument", "namespace": "_global.get.Response" } ], "name": { "name": "Response", "namespace": "_global.get" }, "specLocation": "_global/get/GetResponse.ts#L23-L35" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a script or search template.\nRetrieves a stored script or search template.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.get_script" }, "path": [ { "description": "The identifier for the stored script or search template.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "_global/get_script/GetScriptRequest.ts#L24-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "StoredScript", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "_global.get_script" }, "specLocation": "_global/get_script/GetScriptResponse.ts#L23-L29" }, { "kind": "interface", "name": { "name": "Context", "namespace": "_global.get_script_context" }, "properties": [ { "name": "methods", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ContextMethod", "namespace": "_global.get_script_context" } } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "_global/get_script_context/types.ts#L22-L25" }, { "kind": "interface", "name": { "name": "ContextMethod", "namespace": "_global.get_script_context" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "return_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "params", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ContextMethodParam", "namespace": "_global.get_script_context" } } } } ], "specLocation": "_global/get_script_context/types.ts#L27-L31" }, { "kind": "interface", "name": { "name": "ContextMethodParam", "namespace": "_global.get_script_context" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/get_script_context/types.ts#L33-L36" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get script contexts.\n\nGet a list of supported script contexts and their methods.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.get_script_context" }, "path": [], "query": [], "specLocation": "_global/get_script_context/GetScriptContextRequest.ts#L22-L39" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "contexts", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Context", "namespace": "_global.get_script_context" } } } } ] }, "name": { "name": "Response", "namespace": "_global.get_script_context" }, "specLocation": "_global/get_script_context/GetScriptContextResponse.ts#L22-L26" }, { "kind": "interface", "name": { "name": "LanguageContext", "namespace": "_global.get_script_languages" }, "properties": [ { "name": "contexts", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "language", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScriptLanguage", "namespace": "_types" } } } ], "specLocation": "_global/get_script_languages/types.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get script languages.\n\nGet a list of available script types, languages, and contexts.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.get_script_languages" }, "path": [], "query": [], "specLocation": "_global/get_script_languages/GetScriptLanguagesRequest.ts#L22-L39" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "language_contexts", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "LanguageContext", "namespace": "_global.get_script_languages" } } } }, { "name": "types_allowed", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "name": { "name": "Response", "namespace": "_global.get_script_languages" }, "specLocation": "_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a document's source.\n\nGet the source of a document.\nFor example:\n\n```\nGET my-index-000001/_source/1\n```\n\nYou can use the source filtering parameters to control which parts of the `_source` are returned:\n\n```\nGET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities\n```", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.get_source" }, "path": [ { "description": "A unique document identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the index that contains the document.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "The node or shard the operation should be performed on.\nBy default, the operation is randomized between the shard replicas.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the request is real-time as opposed to near-real-time.", "docId": "realtiime", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request refreshes the relevant shards before retrieving the document.\nSetting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing).", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "extDocId": "routing", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get#get-routing", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude in the response.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of stored fields to return as part of a hit.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The version number for concurrency control.\nIt must match the current version of the document for the request to succeed.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/get_source/SourceRequest.ts#L31-L116" }, { "kind": "response", "body": { "kind": "value", "codegenName": "source", "value": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.get_source.Response" } } }, "generics": [ { "name": "TDocument", "namespace": "_global.get_source.Response" } ], "name": { "name": "Response", "namespace": "_global.get_source" }, "specLocation": "_global/get_source/SourceResponse.ts#L20-L23" }, { "kind": "interface", "name": { "name": "BaseIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndicatorHealthStatus", "namespace": "_global.health_report" } } }, { "name": "symptom", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "impacts", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Impact", "namespace": "_global.health_report" } } } }, { "name": "diagnosis", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Diagnosis", "namespace": "_global.health_report" } } } } ], "specLocation": "_global/health_report/types.ts#L44-L49" }, { "kind": "interface", "name": { "name": "DataStreamLifecycleDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "stagnating_backing_indices_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_backing_indices_in_error", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "stagnating_backing_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "StagnatingBackingIndices", "namespace": "_global.health_report" } } } } ], "specLocation": "_global/health_report/types.ts#L153-L157" }, { "kind": "interface", "description": "DATA_STREAM_LIFECYCLE", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "DataStreamLifecycleIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L148-L152" }, { "kind": "interface", "name": { "name": "Diagnosis", "namespace": "_global.health_report" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "action", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "affected_resources", "required": true, "type": { "kind": "instance_of", "type": { "name": "DiagnosisAffectedResources", "namespace": "_global.health_report" } } }, { "name": "cause", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "help_url", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/health_report/types.ts#L51-L57" }, { "kind": "interface", "name": { "name": "DiagnosisAffectedResources", "namespace": "_global.health_report" }, "properties": [ { "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "name": "nodes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicatorNode", "namespace": "_global.health_report" } } } }, { "name": "slm_policies", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "feature_states", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "snapshot_repositories", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_global/health_report/types.ts#L59-L65" }, { "kind": "interface", "description": "DISK", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "DiskIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "DiskIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L124-L128" }, { "kind": "interface", "name": { "name": "DiskIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "indices_with_readonly_block", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "nodes_with_enough_disk_space", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "nodes_over_high_watermark", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "nodes_over_flood_stage_watermark", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "nodes_with_unknown_disk_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/health_report/types.ts#L129-L135" }, { "kind": "interface", "description": "FILE_SETTINGS", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "FileSettingsIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "FileSettingsIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L207-L211" }, { "kind": "interface", "name": { "name": "FileSettingsIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "failure_streak", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "most_recent_failure", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/health_report/types.ts#L213-L216" }, { "kind": "interface", "description": "ILM", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "IlmIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "IlmIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L164-L168" }, { "kind": "interface", "name": { "name": "IlmIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "ilm_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "LifecycleOperationMode", "namespace": "_types" } } }, { "name": "policies", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "stagnating_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/health_report/types.ts#L169-L173" }, { "kind": "interface", "name": { "name": "Impact", "namespace": "_global.health_report" }, "properties": [ { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "impact_areas", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ImpactArea", "namespace": "_global.health_report" } } } }, { "name": "severity", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/health_report/types.ts#L67-L72" }, { "kind": "enum", "members": [ { "name": "search" }, { "name": "ingest" }, { "name": "backup" }, { "name": "deployment_management" } ], "name": { "name": "ImpactArea", "namespace": "_global.health_report" }, "specLocation": "_global/health_report/types.ts#L74-L79" }, { "kind": "enum", "members": [ { "name": "green" }, { "name": "yellow" }, { "name": "red" }, { "name": "unknown" } ], "name": { "name": "IndicatorHealthStatus", "namespace": "_global.health_report" }, "specLocation": "_global/health_report/types.ts#L25-L30" }, { "kind": "interface", "name": { "name": "IndicatorNode", "namespace": "_global.health_report" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "node_id", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_global/health_report/types.ts#L92-L95" }, { "kind": "interface", "name": { "name": "Indicators", "namespace": "_global.health_report" }, "properties": [ { "name": "master_is_stable", "required": false, "type": { "kind": "instance_of", "type": { "name": "MasterIsStableIndicator", "namespace": "_global.health_report" } } }, { "name": "shards_availability", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardsAvailabilityIndicator", "namespace": "_global.health_report" } } }, { "name": "disk", "required": false, "type": { "kind": "instance_of", "type": { "name": "DiskIndicator", "namespace": "_global.health_report" } } }, { "name": "repository_integrity", "required": false, "type": { "kind": "instance_of", "type": { "name": "RepositoryIntegrityIndicator", "namespace": "_global.health_report" } } }, { "name": "data_stream_lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleIndicator", "namespace": "_global.health_report" } } }, { "name": "ilm", "required": false, "type": { "kind": "instance_of", "type": { "name": "IlmIndicator", "namespace": "_global.health_report" } } }, { "name": "slm", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlmIndicator", "namespace": "_global.health_report" } } }, { "name": "shards_capacity", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardsCapacityIndicator", "namespace": "_global.health_report" } } }, { "name": "file_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "FileSettingsIndicator", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L32-L42" }, { "kind": "interface", "description": "MASTER_IS_STABLE", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "MasterIsStableIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "MasterIsStableIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L81-L85" }, { "kind": "interface", "name": { "name": "MasterIsStableIndicatorClusterFormationNode", "namespace": "_global.health_report" }, "properties": [ { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cluster_formation_message", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/health_report/types.ts#L100-L104" }, { "kind": "interface", "name": { "name": "MasterIsStableIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "current_master", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndicatorNode", "namespace": "_global.health_report" } } }, { "name": "recent_masters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicatorNode", "namespace": "_global.health_report" } } } }, { "name": "exception_fetching_history", "required": false, "type": { "kind": "instance_of", "type": { "name": "MasterIsStableIndicatorExceptionFetchingHistory", "namespace": "_global.health_report" } } }, { "name": "cluster_formation", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MasterIsStableIndicatorClusterFormationNode", "namespace": "_global.health_report" } } } } ], "specLocation": "_global/health_report/types.ts#L86-L91" }, { "kind": "interface", "name": { "name": "MasterIsStableIndicatorExceptionFetchingHistory", "namespace": "_global.health_report" }, "properties": [ { "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stack_trace", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/health_report/types.ts#L96-L99" }, { "kind": "interface", "description": "REPOSITORY_INTEGRITY", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "RepositoryIntegrityIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "RepositoryIntegrityIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L137-L141" }, { "kind": "interface", "name": { "name": "RepositoryIntegrityIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "total_repositories", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "corrupted_repositories", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "corrupted", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_global/health_report/types.ts#L142-L146" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the cluster health.\nGet a report with the health status of an Elasticsearch cluster.\nThe report contains a list of indicators that compose Elasticsearch functionality.\n\nEach indicator has a health status of: green, unknown, yellow or red.\nThe indicator will provide an explanation and metadata describing the reason for its current health status.\n\nThe cluster’s status is controlled by the worst indicator status.\n\nIn the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue.\nEach impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system.\n\nSome health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system.\nThe root cause and remediation steps are encapsulated in a diagnosis.\nA diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem.\n\nNOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently.\nWhen setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.health_report" }, "path": [ { "description": "A feature of the cluster, as returned by the top-level health report API.", "name": "feature", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "query": [ { "description": "Explicit operation timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Opt-in for more information about the health of the system.", "name": "verbose", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Limit the number of affected resources the health report API returns.", "name": "size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/health_report/Request.ts#L24-L81" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "indicators", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indicators", "namespace": "_global.health_report" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicatorHealthStatus", "namespace": "_global.health_report" } } } ] }, "name": { "name": "Response", "namespace": "_global.health_report" }, "specLocation": "_global/health_report/Response.ts#L22-L28" }, { "kind": "interface", "description": "SHARDS_AVAILABILITY", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "ShardsAvailabilityIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardsAvailabilityIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L106-L110" }, { "kind": "interface", "name": { "name": "ShardsAvailabilityIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "creating_primaries", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "creating_replicas", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "initializing_primaries", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "initializing_replicas", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "restarting_primaries", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "restarting_replicas", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "started_primaries", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "started_replicas", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "unassigned_primaries", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "unassigned_replicas", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/health_report/types.ts#L111-L122" }, { "kind": "interface", "description": "SHARDS_CAPACITY", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "ShardsCapacityIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardsCapacityIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L191-L195" }, { "kind": "interface", "name": { "name": "ShardsCapacityIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "data", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsCapacityIndicatorTierDetail", "namespace": "_global.health_report" } } }, { "name": "frozen", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsCapacityIndicatorTierDetail", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L197-L200" }, { "kind": "interface", "name": { "name": "ShardsCapacityIndicatorTierDetail", "namespace": "_global.health_report" }, "properties": [ { "name": "max_shards_in_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "current_used_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/health_report/types.ts#L202-L205" }, { "kind": "interface", "description": "SLM", "inherits": { "type": { "name": "BaseIndicator", "namespace": "_global.health_report" } }, "name": { "name": "SlmIndicator", "namespace": "_global.health_report" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlmIndicatorDetails", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L175-L179" }, { "kind": "interface", "name": { "name": "SlmIndicatorDetails", "namespace": "_global.health_report" }, "properties": [ { "name": "slm_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "LifecycleOperationMode", "namespace": "_types" } } }, { "name": "policies", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "unhealthy_policies", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlmIndicatorUnhealthyPolicies", "namespace": "_global.health_report" } } } ], "specLocation": "_global/health_report/types.ts#L180-L184" }, { "kind": "interface", "name": { "name": "SlmIndicatorUnhealthyPolicies", "namespace": "_global.health_report" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "invocations_since_last_success", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } } ], "specLocation": "_global/health_report/types.ts#L186-L189" }, { "kind": "interface", "name": { "name": "StagnatingBackingIndices", "namespace": "_global.health_report" }, "properties": [ { "name": "index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "first_occurrence_timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "retry_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/health_report/types.ts#L158-L162" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "document", "value": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.index.Request" } } }, "description": "Create or update a document in an index.\n\nAdd a JSON document to the specified data stream or index and make it searchable.\nIf the target is an index and the document already exists, the request updates the document and increments its version.\n\nNOTE: You cannot use this API to send update requests for existing documents in a data stream.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias:\n\n* To add or overwrite a document using the `PUT //_doc/<_id>` request format, you must have the `create`, `index`, or `write` index privilege.\n* To add a document using the `POST //_doc/` request format, you must have the `create_doc`, `create`, `index`, or `write` index privilege.\n* To automatically create a data stream or index with this API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege.\n\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\nNOTE: Replica shards might not all be started when an indexing operation returns successfully.\nBy default, only the primary is required. Set `wait_for_active_shards` to change this default behavior.\n\n**Automatically create data streams and indices**\n\nIf the request's target doesn't exist and matches an index template with a `data_stream` definition, the index operation automatically creates the data stream.\n\nIf the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates.\n\nNOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation.\n\nIf no mapping exists, the index operation creates a dynamic mapping.\nBy default, new fields and objects are automatically added to the mapping if needed.\n\nAutomatic index creation is controlled by the `action.auto_create_index` setting.\nIf it is `true`, any index can be created automatically.\nYou can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to `false` to turn off automatic index creation entirely.\nSpecify a comma-separated list of patterns you want to allow or prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked.\nWhen a list is specified, the default behaviour is to disallow.\n\nNOTE: The `action.auto_create_index` setting affects the automatic creation of indices only.\nIt does not affect the creation of data streams.\n\n**Optimistic concurrency control**\n\nIndex operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the `if_seq_no` and `if_primary_term` parameters.\nIf a mismatch is detected, the operation will result in a `VersionConflictException` and a status code of `409`.\n\n**Routing**\n\nBy default, shard placement — or routing — is controlled by using a hash of the document's ID value.\nFor more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the `routing` parameter.\n\nWhen setting up explicit mapping, you can also use the `_routing` field to direct the index operation to extract the routing value from the document itself.\nThis does come at the (very minimal) cost of an additional document parsing pass.\nIf the `_routing` mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted.\n\nNOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template.\n\n**Distributed**\n\nThe index operation is directed to the primary shard based on its route and performed on the actual node containing this shard.\nAfter the primary shard completes the operation, if needed, the update is distributed to applicable replicas.\n\n**Active shards**\n\nTo improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation.\nIf the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs.\nBy default, write operations only wait for the primary shards to be active before proceeding (that is to say `wait_for_active_shards` is `1`).\nThis default can be overridden in the index settings dynamically by setting `index.write.wait_for_active_shards`.\nTo alter this behavior per operation, use the `wait_for_active_shards request` parameter.\n\nValid values are all or any positive integer up to the total number of configured copies per shard in the index (which is `number_of_replicas`+1).\nSpecifying a negative value or a number greater than the number of shard copies will throw an error.\n\nFor example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes).\nIf you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding.\nThis means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data.\nIf `wait_for_active_shards` is set on the request to `3` (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding.\nThis requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard.\nHowever, if you set `wait_for_active_shards` to `all` (or to `4`, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index.\nThe operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard.\n\nIt is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts.\nAfter the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary.\nThe `_shards` section of the API response reveals the number of shard copies on which replication succeeded and failed.\n\n**No operation (noop) updates**\n\nWhen updating a document by using this API, a new version of the document is always created even if the document hasn't changed.\nIf this isn't acceptable use the `_update` API with `detect_noop` set to `true`.\nThe `detect_noop` option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source.\n\nThere isn't a definitive rule for when noop updates aren't acceptable.\nIt's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates.\n\n**Versioning**\n\nEach indexed document is given a version number.\nBy default, internal versioning is used that starts at 1 and increments with each update, deletes included.\nOptionally, the version number can be set to an external value (for example, if maintained in a database).\nTo enable this functionality, `version_type` should be set to `external`.\nThe value provided must be a numeric, long value greater than or equal to 0, and less than around `9.2e+18`.\n\nNOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations.\nIf no version is provided, the operation runs without any version checks.\n\nWhen using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document.\nIf true, the document will be indexed and the new version number used.\nIf the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example:\n\n```\nPUT my-index-000001/_doc/1?version=2&version_type=external\n{\n \"user\": {\n \"id\": \"elkbee\"\n }\n}\n\nIn this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.\nIf the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).\n\nA nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.\nEven the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.", "examples": { "IndexRequestExample1": { "description": "Run `POST my-index-000001/_doc/` to index a document. When you use the `POST //_doc/` request format, the `op_type` is automatically set to `create` and the index operation generates a unique ID for the document.\n", "summary": "Automate document IDs", "value": "{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}" }, "IndexRequestExample2": { "description": "Run `PUT my-index-000001/_doc/1` to insert a JSON document into the `my-index-000001` index with an `_id` of 1.\n", "summary": "Define document IDs", "value": "{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.index.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.index" }, "path": [ { "description": "A unique identifier for the document.\nTo automatically generate a document ID, use the `POST //_doc/` request format and omit this parameter.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the data stream or index to target.\nIf the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream.\nIf the target doesn't exist and doesn't match a data stream template, this request creates the index.\nYou can check for existing targets with the resolve index API.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Only perform the operation if the document has this primary term.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Only perform the operation if the document has this sequence number.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "True or false if to include the document source in the error message in case of parsing errors.", "name": "include_source_on_error", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Set to `create` to only index the document if it does not already exist (put if absent).\nIf a document with the specified `_id` already exists, the indexing operation will fail.\nThe behavior is the same as using the `/_create` endpoint.\nIf a document ID is specified, this paramater defaults to `index`.\nOtherwise, it defaults to `create`.\nIf the request targets a data stream, an `op_type` of `create` is required.", "name": "op_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "OpType", "namespace": "_types" } } }, { "description": "The ID of the pipeline to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.\nIf a final pipeline is configured it will always run, regardless of the value of this parameter.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.\n\nThis parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs.\nSome reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation.\nBy default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error.\nThe actual wait time could be longer, particularly when multiple waits occur.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "An explicit version number for concurrency control.\nIt must be a non-negative long number.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nYou can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe default value of `1` means it waits for each primary shard to be active.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If `true`, the destination must be an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/index/IndexRequest.ts#L35-L268" }, { "kind": "response", "body": { "kind": "value", "codegenName": "response", "value": { "kind": "instance_of", "type": { "name": "WriteResponseBase", "namespace": "_types" } } }, "examples": { "IndexResponseExample1": { "description": "A successful response from `POST my-index-000001/_doc/`, which contains an automated document ID.", "summary": "Automate document IDs", "value": "{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 2\n },\n \"_index\": \"my-index-000001\",\n \"_id\": \"W0tpsmIBdwcYyG50zbta\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"result\": \"created\"\n}" }, "IndexResponseExample2": { "description": "A successful response from `PUT my-index-000001/_doc/1`.", "summary": "Define document IDs", "value": "{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 2\n },\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"result\": \"created\"\n}" } }, "name": { "name": "Response", "namespace": "_global.index" }, "specLocation": "_global/index/IndexResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cluster info.\nGet basic build, version, and cluster information.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.info" }, "path": [], "query": [], "specLocation": "_global/info/RootNodeInfoRequest.ts#L22-L39" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The responding cluster's name.", "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "cluster_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "description": "The responding node's name.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "tagline", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The running version of Elasticsearch.", "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElasticsearchVersionInfo", "namespace": "_types" } } } ] }, "examples": { "RootNodeInfoResponseExample1": { "description": "A successful response from `GET /`s.", "value": "{\n \"name\": \"instance-0000000000\",\n \"cluster_name\": \"my_test_cluster\",\n \"cluster_uuid\": \"5QaxoN0pRZuOmWSxstBBwQ\",\n \"version\": {\n \"build_date\": \"2024-02-01T13:07:13.727175297Z\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"build_hash\": \"6185ba65d27469afabc9bc951cded6c17c21e3f3\",\n \"number\": \"8.12.1\",\n \"lucene_version\": \"9.9.2\",\n \"minimum_index_compatibility_version\": \"7.0.0\",\n \"build_flavor\": \"default\",\n \"build_snapshot\": false,\n \"build_type\": \"docker\"\n },\n \"tagline\": \"You Know, for Search\"\n}" } }, "name": { "name": "Response", "namespace": "_global.info" }, "specLocation": "_global/info/RootNodeInfoResponse.ts#L23-L40" }, { "kind": "interface", "name": { "name": "MultiGetError", "namespace": "_global.mget" }, "properties": [ { "name": "error", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "_global/mget/types.ts#L62-L66" }, { "kind": "interface", "name": { "name": "Operation", "namespace": "_global.mget" }, "properties": [ { "description": "The unique document ID.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The index that contains the document.", "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The key for the primary shard the document resides on. Required if routing is used during indexing.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `false`, excludes all _source fields.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "The stored fields you want to retrieve.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/mget/types.ts#L32-L55" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The documents you want to retrieve. Required if no index is specified in the request URI.", "name": "docs", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Operation", "namespace": "_global.mget" } } } }, { "description": "The IDs of the documents you want to retrieve. Allowed when the index is specified in the request URI.", "name": "ids", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ] }, "description": "Get multiple documents.\n\nGet multiple JSON documents by ID from one or more indices.\nIf you specify an index in the request URI, you only need to specify the document IDs in the request body.\nTo ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail.\n\n**Filter source fields**\n\nBy default, the `_source` field is returned for every document (if stored).\nUse the `_source` and `_source_include` or `source_exclude` attributes to filter what fields are returned for a particular document.\nYou can include the `_source`, `_source_includes`, and `_source_excludes` query parameters in the request URI to specify the defaults to use when there are no per-document instructions.\n\n**Get stored fields**\n\nUse the `stored_fields` attribute to specify the set of stored fields you want to retrieve.\nAny requested fields that are not stored are ignored.\nYou can include the `stored_fields` query parameter in the request URI to specify the defaults to use when there are no per-document instructions.", "examples": { "MultiGetRequestExample1": { "description": "Run `GET /my-index-000001/_mget`. When you specify an index in the request URI, only the document IDs are required in the request body.\n", "summary": "Get documents by ID", "value": "{\n \"docs\": [\n {\n \"_id\": \"1\"\n },\n {\n \"_id\": \"2\"\n }\n ]\n}" }, "MultiGetRequestExample2": { "description": "Run `GET /_mget`. This request sets `_source` to `false` for document 1 to exclude the source entirely. It retrieves `field3` and `field4` from document 2. It retrieves the `user` field from document 3 but filters out the `user.location` field.\n", "summary": "Filter source fields", "value": "{\n \"docs\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_source\": false\n },\n {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"_source\": [ \"field3\", \"field4\" ]\n },\n {\n \"_index\": \"test\",\n \"_id\": \"3\",\n \"_source\": {\n \"include\": [ \"user\" ],\n \"exclude\": [ \"user.location\" ]\n }\n }\n ]\n}" }, "MultiGetRequestExample3": { "description": "Run `GET /_mget`. This request retrieves `field1` and `field2` from document 1 and `field3` and `field4` from document 2.\n", "summary": "Get stored fields", "value": "{\n \"docs\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"stored_fields\": [ \"field1\", \"field2\" ]\n },\n {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"stored_fields\": [ \"field3\", \"field4\" ]\n }\n ]\n}" }, "MultiGetRequestExample4": { "description": "Run `GET /_mget?routing=key1`. If routing is used during indexing, you need to specify the routing value to retrieve documents. This request fetches `test/_doc/2` from the shard corresponding to routing key `key1`. It fetches `test/_doc/1` from the shard corresponding to routing key `key2`.\n", "summary": "Document routing", "value": "{\n \"docs\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"routing\": \"key2\"\n },\n {\n \"_index\": \"test\",\n \"_id\": \"2\"\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.mget" }, "path": [ { "description": "Name of the index to retrieve documents from when `ids` are specified, or when a document in the `docs` array does not specify an index.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "availability": { "stack": { "featureFlag": "es.index_mode_feature_flag_registered", "since": "8.4.0", "visibility": "feature_flag" } }, "description": "Should this request force synthetic _source?\nUse this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.\nFetches with this enabled will be slower the enabling synthetic source natively in the index.", "name": "force_synthetic_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies the node or shard the operation should be performed on. Random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the request is real-time as opposed to near-real-time.", "docId": "realtime", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request refreshes relevant shards before retrieving documents.", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "True or false to return the `_source` field or not, or a list of fields to return.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude from the response.\nYou can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.", "docId": "mapping-source-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-source-field", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.\nIf this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the `_source_excludes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "docId": "mapping-source-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-source-field", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, retrieves the document fields stored in the index rather than the document `_source`.", "name": "stored_fields", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "_global/mget/MultiGetRequest.ts#L25-L127" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The response includes a docs array that contains the documents in the order specified in the request.\nThe structure of the returned documents is similar to that returned by the get API.\nIf there is a failure getting a particular document, the error is included in place of the document.", "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.mget.Response" } } ], "type": { "name": "ResponseItem", "namespace": "_global.mget" } } } } ] }, "generics": [ { "name": "TDocument", "namespace": "_global.mget.Response" } ], "name": { "name": "Response", "namespace": "_global.mget" }, "specLocation": "_global/mget/MultiGetResponse.ts#L22-L31" }, { "kind": "type_alias", "codegenNames": [ "result", "failure" ], "generics": [ { "name": "TDocument", "namespace": "_global.mget.ResponseItem" } ], "name": { "name": "ResponseItem", "namespace": "_global.mget" }, "specLocation": "_global/mget/types.ts#L57-L60", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.mget.ResponseItem" } } ], "type": { "name": "GetResult", "namespace": "_global.get" } }, { "kind": "instance_of", "type": { "name": "MultiGetError", "namespace": "_global.mget" } } ] } }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.msearch.MultiSearchItem" } ], "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.msearch.MultiSearchItem" } } ], "type": { "name": "ResponseBody", "namespace": "_global.search" } }, "name": { "name": "MultiSearchItem", "namespace": "_global.msearch" }, "properties": [ { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/msearch/types.ts#L58-L61" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.msearch.MultiSearchResult" } ], "name": { "name": "MultiSearchResult", "namespace": "_global.msearch" }, "properties": [ { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "responses", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.msearch.MultiSearchResult" } } ], "type": { "name": "ResponseItem", "namespace": "_global.msearch" } } } } ], "specLocation": "_global/msearch/types.ts#L48-L51" }, { "kind": "interface", "description": "Contains parameters used to limit or change the subsequent search body request.", "name": { "name": "MultisearchHeader", "namespace": "_global.msearch" }, "properties": [ { "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "name": "ignore_unavailable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "name": "ccs_minimize_roundtrips", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "allow_partial_search_results", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/msearch/types.ts#L31-L46" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "searches", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RequestItem", "namespace": "_global.msearch" } } } }, "description": "Run multiple searches.\n\nThe format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format.\nThe structure is as follows:\n\n```\nheader\\n\nbody\\n\nheader\\n\nbody\\n\n```\n\nThis structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node.\n\nIMPORTANT: The final line of data must end with a newline character `\\n`.\nEach newline character may be preceded by a carriage return `\\r`.\nWhen sending requests to this endpoint the `Content-Type` header should be set to `application/x-ndjson`.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.msearch" }, "path": [ { "description": "Comma-separated list of data streams, indices, and index aliases to search.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests.", "docId": "ccs-network-delays", "docUrl": "https://www.elastic.co/docs/solutions/search/cross-cluster-search#ccs-network-delays", "name": "ccs_minimize_roundtrips", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If true, concrete, expanded or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether hit.matched_queries should be rendered as a map that includes\nthe name of the matched query associated with its score (true)\nor as an array containing the name of the matched queries (false)\nThis functionality reruns each named query on every hit in a search response.\nTypically, this adds a small overhead to a request.\nHowever, using computationally expensive named queries on a large number of hits may add significant overhead.", "name": "include_named_queries_score", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of concurrent searches the multi search API can execute.\nDefaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`.", "name": "max_concurrent_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum number of concurrent shard requests that each sub-search request executes per node.", "name": "max_concurrent_shard_requests", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint.", "name": "pre_filter_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object.", "name": "rest_total_hits_as_int", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Custom routing value used to route search operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Indicates whether global term and document frequencies should be used when scoring returned documents.", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "Specifies whether aggregation and suggester names should be prefixed by their respective types in the response.", "name": "typed_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/msearch/MultiSearchRequest.ts#L25-L136" }, { "kind": "type_alias", "codegenNames": [ "header", "body" ], "name": { "name": "RequestItem", "namespace": "_global.msearch" }, "specLocation": "_global/msearch/types.ts#L26-L29", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "MultisearchHeader", "namespace": "_global.msearch" } }, { "kind": "instance_of", "type": { "name": "SearchRequestBody", "namespace": "_global.search._types" } } ] } }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.msearch.Response" } } ], "type": { "name": "MultiSearchResult", "namespace": "_global.msearch" } } }, "generics": [ { "name": "TDocument", "namespace": "_global.msearch.Response" } ], "name": { "name": "Response", "namespace": "_global.msearch" }, "specLocation": "_global/msearch/MultiSearchResponse.ts#L25-L28" }, { "kind": "type_alias", "codegenNames": [ "result", "failure" ], "generics": [ { "name": "TDocument", "namespace": "_global.msearch.ResponseItem" } ], "name": { "name": "ResponseItem", "namespace": "_global.msearch" }, "specLocation": "_global/msearch/types.ts#L53-L56", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.msearch.ResponseItem" } } ], "type": { "name": "MultiSearchItem", "namespace": "_global.msearch" } }, { "kind": "instance_of", "type": { "name": "ErrorResponseBase", "namespace": "_types" } } ] } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "search_templates", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RequestItem", "namespace": "_global.msearch_template" } } } }, "description": "Run multiple templated searches.\n\nRun multiple templated searches with a single request.\nIf you are providing a text file or text input to `curl`, use the `--data-binary` flag instead of `-d` to preserve newlines.\nFor example:\n\n```\n$ cat requests\n{ \"index\": \"my-index\" }\n{ \"id\": \"my-search-template\", \"params\": { \"query_string\": \"hello world\", \"from\": 0, \"size\": 10 }}\n{ \"index\": \"my-other-index\" }\n{ \"id\": \"my-other-search-template\", \"params\": { \"query_type\": \"match_all\" }}\n\n$ curl -H \"Content-Type: application/x-ndjson\" -XGET localhost:9200/_msearch/template --data-binary \"@requests\"; echo\n```", "examples": { "MultiSearchTemplateRequestExample1": { "description": "Run `GET my-index/_msearch/template` to run multiple templated searches.", "value": "{ }\n{ \"id\": \"my-search-template\", \"params\": { \"query_string\": \"hello world\", \"from\": 0, \"size\": 10 }}\n{ }\n{ \"id\": \"my-other-search-template\", \"params\": { \"query_type\": \"match_all\" }}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.msearch_template" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).\nTo search all data streams and indices, omit this parameter or use `*`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, network round-trips are minimized for cross-cluster search requests.", "name": "ccs_minimize_roundtrips", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum number of concurrent searches the API can run.", "name": "max_concurrent_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The type of the search operation.", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "If `true`, the response returns `hits.total` as an integer.\nIf `false`, it returns `hits.total` as an object.", "name": "rest_total_hits_as_int", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response prefixes aggregation and suggester names with their respective types.", "name": "typed_keys", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L116" }, { "kind": "type_alias", "codegenNames": [ "header", "body" ], "name": { "name": "RequestItem", "namespace": "_global.msearch_template" }, "specLocation": "_global/msearch_template/types.ts#L26-L27", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "MultisearchHeader", "namespace": "_global.msearch" } }, { "kind": "instance_of", "type": { "name": "TemplateConfig", "namespace": "_global.msearch_template" } } ] } }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.msearch_template.Response" } } ], "type": { "name": "MultiSearchResult", "namespace": "_global.msearch" } } }, "generics": [ { "name": "TDocument", "namespace": "_global.msearch_template.Response" } ], "name": { "name": "Response", "namespace": "_global.msearch_template" }, "specLocation": "_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L33" }, { "kind": "interface", "name": { "name": "TemplateConfig", "namespace": "_global.msearch_template" }, "properties": [ { "description": "If `true`, returns detailed information about score calculation as part of each hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The ID of the search template to use. If no `source` is specified,\nthis parameter is required.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Key-value pairs used to replace Mustache variables in the template.\nThe key is the variable name.\nThe value is the variable value.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "If `true`, the query execution is profiled.", "name": "profile", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "An inline search template. Supports the same parameters as the search API's\nrequest body. It also supports Mustache variables. If no `id` is specified, this\nparameter is required.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } } ], "specLocation": "_global/msearch_template/types.ts#L29-L55" }, { "kind": "interface", "name": { "name": "Operation", "namespace": "_global.mtermvectors" }, "properties": [ { "description": "The ID of the document.", "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The index of the document.", "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "An artificial document (a document not present in the index) for which you want to retrieve term vectors.", "name": "doc", "required": false, "type": { "kind": "user_defined_value" } }, { "description": "Comma-separated list or wildcard expressions of fields to include in the statistics.\nUsed as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies.", "name": "field_statistics", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Filter terms based on their tf-idf scores.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "Filter", "namespace": "_global.termvectors" } } }, { "description": "If `true`, the response includes term offsets.", "name": "offsets", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term payloads.", "name": "payloads", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term positions.", "name": "positions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If true, the response includes term frequency and document frequency.", "name": "term_statistics", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns the document version as part of a hit.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Specific version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/mtermvectors/types.ts#L35-L94" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "An array of existing or artificial documents.", "name": "docs", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Operation", "namespace": "_global.mtermvectors" } } } }, { "description": "A simplified syntax to specify documents by their ID if they're in the same index.", "name": "ids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } } ] }, "description": "Get multiple term vectors.\n\nGet multiple term vectors with a single request.\nYou can specify existing documents by index and ID or provide artificial documents in the body of the request.\nYou can specify the index in the request body or request URI.\nThe response contains a `docs` array with all the fetched termvectors.\nEach element has the structure provided by the termvectors API.\n\n**Artificial documents**\n\nYou can also use `mtermvectors` to generate term vectors for artificial documents provided in the body of the request.\nThe mapping used is determined by the specified `_index`.", "examples": { "MultiTermVectorsRequestExample1": { "description": "Run `POST /my-index-000001/_mtermvectors`. When you specify an index in the request URI, the index does not need to be specified for each documents in the request body.\n", "summary": "Get multiple term vectors", "value": "{\n \"docs\": [\n {\n \"_id\": \"2\",\n \"fields\": [\n \"message\"\n ],\n \"term_statistics\": true\n },\n {\n \"_id\": \"1\"\n }\n ]\n}" }, "MultiTermVectorsRequestExample2": { "description": "Run `POST /my-index-000001/_mtermvectors`. If all requested documents are in same index and the parameters are the same, you can use a simplified syntax.\n", "summary": "Simplified syntax", "value": "{\n \"ids\": [ \"1\", \"2\" ],\n \"fields\": [\n \"message\"\n ],\n \"term_statistics\": true\n}" }, "MultiTermVectorsRequestExample3": { "description": "Run `POST /_mtermvectors` to generate term vectors for artificial documents provided in the body of the request. The mapping used is determined by the specified `_index`.\n", "summary": "Artificial documents", "value": "{\n \"docs\": [\n {\n \"_index\": \"my-index-000001\",\n \"doc\" : {\n \"message\" : \"test test test\"\n }\n },\n {\n \"_index\": \"my-index-000001\",\n \"doc\" : {\n \"message\" : \"Another test ...\"\n }\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.mtermvectors" }, "path": [ { "description": "The name of the index that contains the documents.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "A comma-separated list of documents ids. You must define ids as parameter or set \"ids\" or \"docs\" in the request body", "name": "ids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "description": "A comma-separated list or wildcard expressions of fields to include in the statistics.\nIt is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies.", "name": "field_statistics", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term offsets.", "name": "offsets", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term payloads.", "name": "payloads", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term positions.", "name": "positions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If true, the request is real-time as opposed to near-real-time.", "docId": "realtime", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If true, the response includes term frequency and document frequency.", "name": "term_statistics", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns the document version as part of a hit.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TermVectorsResult", "namespace": "_global.mtermvectors" } } } } ] }, "name": { "name": "Response", "namespace": "_global.mtermvectors" }, "specLocation": "_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "TermVectorsResult", "namespace": "_global.mtermvectors" }, "properties": [ { "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "took", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "found", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "term_vectors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TermVector", "namespace": "_global.termvectors" } } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "_global/mtermvectors/types.ts#L96-L104" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Filter indices if the provided query rewrites to `match_none` on every shard.", "name": "index_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] }, "description": "Open a point in time.\n\nA search request by default runs against the most recent visible data of the target indices,\nwhich is called point in time. Elasticsearch pit (point in time) is a lightweight view into the\nstate of the data as it existed when initiated. In some cases, it’s preferred to perform multiple\nsearch requests using the same point in time. For example, if refreshes happen between\n`search_after` requests, then the results of those requests might not be consistent as changes happening\nbetween searches are only visible to the more recent point in time.\n\nA point in time must be opened explicitly before being used in search requests.\n\nA subsequent search request with the `pit` parameter must not specify `index`, `routing`, or `preference` values as these parameters are copied from the point in time.\n\nJust like regular searches, you can use `from` and `size` to page through point in time search results, up to the first 10,000 hits.\nIf you want to retrieve more hits, use PIT with `search_after`.\n\nIMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request.\n\nWhen a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a `NoShardAvailableActionException` exception.\nTo get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime.\n\n**Keeping point in time alive**\n\nThe `keep_alive` parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time.\nThe value does not need to be long enough to process all data — it just needs to be long enough for the next request.\n\nNormally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments.\nOnce the smaller segments are no longer needed they are deleted.\nHowever, open point-in-times prevent the old segments from being deleted since they are still in use.\n\nTIP: Keeping older segments alive means that more disk space and file handles are needed.\nEnsure that you have configured your nodes to have ample free file handles.\n\nAdditionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request.\nEnsure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates.\nNote that a point-in-time doesn't prevent its associated indices from being deleted.\nYou can check how many point-in-times (that is, search contexts) are open with the nodes stats API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.open_point_in_time" }, "path": [ { "description": "A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Extend the length of time that the point in time persists.", "name": "keep_alive", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nBy default, it is random.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT.\nIf `false`, creating a point in time request when a shard is missing or unavailable will throw an exception.\nIf `true`, the point in time will contain all the shards that are available at the time of the request.", "name": "allow_partial_search_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of concurrent shard requests that each sub-search request executes per node.", "name": "max_concurrent_shard_requests", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L26-L127" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Shards used to create the PIT", "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] }, "examples": { "OpenPointInTimeResponseExample1": { "description": "A successful response from `POST /my-index-000001/_pit?keep_alive=1m&allow_partial_search_results=true`. It includes a summary of the total number of shards, as well as the number of successful shards when creating the PIT.\n", "value": "{\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA=\",\n \"_shards\": {\n \"total\": 10,\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n }\n}" } }, "name": { "name": "Response", "namespace": "_global.open_point_in_time" }, "specLocation": "_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Ping the cluster.\nGet information about whether the cluster is running.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.ping" }, "path": [], "query": [], "specLocation": "_global/ping/PingRequest.ts#L22-L38" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "_global.ping" }, "specLocation": "_global/ping/PingResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The script or search template, its parameters, and its language.", "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "StoredScript", "namespace": "_types" } } } ] }, "description": "Create or update a script or search template.\nCreates or updates a stored script or search template.", "examples": { "PutScriptRequestExample1": { "description": "Run `PUT _scripts/my-search-template` to create a search template.\n", "summary": "Create a search template", "value": "{\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"{{query_string}}\"\n }\n },\n \"from\": \"{{from}}\",\n \"size\": \"{{size}}\"\n }\n }\n}" }, "PutScriptRequestExample2": { "description": "Run `PUT _scripts/my-stored-script` to create a stored script.\n", "summary": "Create a stored script", "value": "{\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"Math.log(_score * 2) + params['my_modifier']\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.put_script" }, "path": [ { "description": "The identifier for the stored script or search template.\nIt must be unique within the cluster.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The context in which the script or search template should run.\nTo prevent errors, the API immediately compiles the script or template in this context.", "name": "context", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "The context in which the script or search template should run.\nTo prevent errors, the API immediately compiles the script or template in this context.\nIf you specify both this and the `` path parameter, the API uses the request path parameter.", "name": "context", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "_global/put_script/PutScriptRequest.ts#L25-L87" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "_global.put_script" }, "specLocation": "_global/put_script/PutScriptResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "DocumentRating", "namespace": "_global.rank_eval" }, "properties": [ { "description": "The document ID.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The document’s index. For data streams, this should be the document’s backing index.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The document’s relevance with regard to this search request.", "name": "rating", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/rank_eval/types.ts#L119-L126" }, { "kind": "interface", "name": { "name": "RankEvalHit", "namespace": "_global.rank_eval" }, "properties": [ { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_global/rank_eval/types.ts#L144-L148" }, { "kind": "interface", "name": { "name": "RankEvalHitItem", "namespace": "_global.rank_eval" }, "properties": [ { "name": "hit", "required": true, "type": { "kind": "instance_of", "type": { "name": "RankEvalHit", "namespace": "_global.rank_eval" } } }, { "name": "rating", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_global/rank_eval/types.ts#L139-L142" }, { "kind": "interface", "name": { "name": "RankEvalMetric", "namespace": "_global.rank_eval" }, "properties": [ { "name": "precision", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalMetricPrecision", "namespace": "_global.rank_eval" } } }, { "name": "recall", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalMetricRecall", "namespace": "_global.rank_eval" } } }, { "name": "mean_reciprocal_rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalMetricMeanReciprocalRank", "namespace": "_global.rank_eval" } } }, { "name": "dcg", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalMetricDiscountedCumulativeGain", "namespace": "_global.rank_eval" } } }, { "name": "expected_reciprocal_rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalMetricExpectedReciprocalRank", "namespace": "_global.rank_eval" } } } ], "specLocation": "_global/rank_eval/types.ts#L90-L96" }, { "kind": "interface", "name": { "name": "RankEvalMetricBase", "namespace": "_global.rank_eval" }, "properties": [ { "description": "Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query.", "name": "k", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/rank_eval/types.ts#L26-L32" }, { "kind": "interface", "name": { "name": "RankEvalMetricDetail", "namespace": "_global.rank_eval" }, "properties": [ { "description": "The metric_score in the details section shows the contribution of this query to the global quality metric score", "name": "metric_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didn’t have a ratings value. This can be used to ask the user to supply ratings for these documents", "name": "unrated_docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UnratedDocument", "namespace": "_global.rank_eval" } } } }, { "description": "The hits section shows a grouping of the search results with their supplied ratings", "name": "hits", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RankEvalHitItem", "namespace": "_global.rank_eval" } } } }, { "description": "The metric_details give additional information about the calculated quality metric (e.g. how many of the retrieved documents were relevant). The content varies for each metric but allows for better interpretation of the results", "name": "metric_details", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } } ], "specLocation": "_global/rank_eval/types.ts#L128-L137" }, { "kind": "interface", "description": "Discounted cumulative gain (DCG)", "docId": "dcg", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/search-rank-eval#_discounted_cumulative_gain_dcg", "inherits": { "type": { "name": "RankEvalMetricBase", "namespace": "_global.rank_eval" } }, "name": { "name": "RankEvalMetricDiscountedCumulativeGain", "namespace": "_global.rank_eval" }, "properties": [ { "description": "If set to true, this metric will calculate the Normalized DCG.", "docUrl": "https://en.wikipedia.org/wiki/Discounted_cumulative_gain#Normalized_DCG", "name": "normalize", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/rank_eval/types.ts#L66-L77" }, { "kind": "interface", "description": "Expected Reciprocal Rank (ERR)", "docId": "expected-reciprocal", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rank-eval#_expected_reciprocal_rank_err", "inherits": { "type": { "name": "RankEvalMetricBase", "namespace": "_global.rank_eval" } }, "name": { "name": "RankEvalMetricExpectedReciprocalRank", "namespace": "_global.rank_eval" }, "properties": [ { "description": "The highest relevance grade used in the user-supplied relevance judgments.", "name": "maximum_relevance", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/rank_eval/types.ts#L79-L88" }, { "kind": "interface", "description": "Mean Reciprocal Rank", "docId": "mean-reciprocal", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/search-rank-eval#_mean_reciprocal_rank", "inherits": { "type": { "name": "RankEvalMetricRatingTreshold", "namespace": "_global.rank_eval" } }, "name": { "name": "RankEvalMetricMeanReciprocalRank", "namespace": "_global.rank_eval" }, "properties": [], "specLocation": "_global/rank_eval/types.ts#L60-L64" }, { "kind": "interface", "description": "Precision at K (P@k)", "docId": "k-precision", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/search-rank-eval#k-precision", "inherits": { "type": { "name": "RankEvalMetricRatingTreshold", "namespace": "_global.rank_eval" } }, "name": { "name": "RankEvalMetricPrecision", "namespace": "_global.rank_eval" }, "properties": [ { "description": "Controls how unlabeled documents in the search results are counted. If set to true, unlabeled documents are ignored and neither count as relevant or irrelevant. Set to false (the default), they are treated as irrelevant.", "name": "ignore_unlabeled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/rank_eval/types.ts#L42-L52" }, { "kind": "interface", "inherits": { "type": { "name": "RankEvalMetricBase", "namespace": "_global.rank_eval" } }, "name": { "name": "RankEvalMetricRatingTreshold", "namespace": "_global.rank_eval" }, "properties": [ { "description": "Sets the rating threshold above which documents are considered to be \"relevant\".", "name": "relevant_rating_threshold", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/rank_eval/types.ts#L34-L40" }, { "kind": "interface", "description": "Recall at K (R@k)", "docId": "k-recall", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/search-rank-eval#k-recall", "inherits": { "type": { "name": "RankEvalMetricRatingTreshold", "namespace": "_global.rank_eval" } }, "name": { "name": "RankEvalMetricRecall", "namespace": "_global.rank_eval" }, "properties": [], "specLocation": "_global/rank_eval/types.ts#L54-L58" }, { "kind": "interface", "name": { "name": "RankEvalQuery", "namespace": "_global.rank_eval" }, "properties": [ { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "shortcutProperty": "query", "specLocation": "_global/rank_eval/types.ts#L111-L117" }, { "kind": "interface", "name": { "name": "RankEvalRequestItem", "namespace": "_global.rank_eval" }, "properties": [ { "description": "The search request’s ID, used to group result details later.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The query being evaluated.", "name": "request", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalQuery", "namespace": "_global.rank_eval" } } }, { "description": "List of document ratings", "name": "ratings", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DocumentRating", "namespace": "_global.rank_eval" } } } }, { "description": "The search template Id", "name": "template_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The search template parameters.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "_global/rank_eval/types.ts#L98-L109" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A set of typical search requests, together with their provided ratings.", "name": "requests", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RankEvalRequestItem", "namespace": "_global.rank_eval" } } } }, { "description": "Definition of the evaluation metric to calculate.", "name": "metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankEvalMetric", "namespace": "_global.rank_eval" } } } ] }, "description": "Evaluate ranked search results.\n\nEvaluate the quality of ranked search results over a set of typical search queries.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.rank_eval" }, "path": [ { "description": "A comma-separated list of data streams, indices, and index aliases used to limit the request.\nWildcard (`*`) expressions are supported.\nTo target all data streams and indices in a cluster, omit this parameter or use `_all` or `*`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Search operation type", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/rank_eval/RankEvalRequest.ts#L24-L76" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The overall evaluation quality calculated by the defined metric", "name": "metric_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The details section contains one entry for every query in the original requests section, keyed by the search request id", "name": "details", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RankEvalMetricDetail", "namespace": "_global.rank_eval" } } } }, { "name": "failures", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "name": { "name": "Response", "namespace": "_global.rank_eval" }, "specLocation": "_global/rank_eval/RankEvalResponse.ts#L26-L34" }, { "kind": "interface", "name": { "name": "UnratedDocument", "namespace": "_global.rank_eval" }, "properties": [ { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "_global/rank_eval/types.ts#L150-L153" }, { "kind": "interface", "name": { "name": "Destination", "namespace": "_global.reindex" }, "properties": [ { "description": "The name of the data stream, index, or index alias you are copying to.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "If it is `create`, the operation will only index documents that do not already exist (also known as \"put if absent\").\n\nIMPORTANT: To reindex to a data stream destination, this argument must be `create`.", "name": "op_type", "required": false, "serverDefault": "index", "type": { "kind": "instance_of", "type": { "name": "OpType", "namespace": "_types" } } }, { "description": "The name of the pipeline to use.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "By default, a document's routing is preserved unless it's changed by the script.\nIf it is `keep`, the routing on the bulk request sent for each match is set to the routing on the match.\nIf it is `discard`, the routing on the bulk request sent for each match is set to `null`.\nIf it is `=value`, the routing on the bulk request sent for each match is set to all value specified after the equals sign (`=`).", "name": "routing", "required": false, "serverDefault": "keep", "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The versioning to use for the indexing operation.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/reindex/types.ts#L39-L67" }, { "kind": "interface", "name": { "name": "RemoteSource", "namespace": "_global.reindex" }, "properties": [ { "description": "The remote connection timeout.", "name": "connect_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "An object containing the headers of the request.", "name": "headers", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The URL for the remote instance of Elasticsearch that you want to index from.\nThis information is required when you're indexing from remote.", "name": "host", "required": true, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "description": "The username to use for authentication with the remote host.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "description": "The password to use for authentication with the remote host.", "name": "password", "required": false, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } }, { "description": "The remote socket read timeout.", "name": "socket_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "_global/reindex/types.ts#L112-L140" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Indicates whether to continue reindexing even when there are conflicts.", "name": "conflicts", "required": false, "serverDefault": "abort", "type": { "kind": "instance_of", "type": { "name": "Conflicts", "namespace": "_types" } } }, { "description": "The destination you are copying to.", "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "Destination", "namespace": "_global.reindex" } } }, { "description": "The maximum number of documents to reindex.\nBy default, all documents are reindexed.\nIf it is a value less then or equal to `scroll_size`, a scroll will not be used to retrieve the results for the operation.\n\nIf `conflicts` is set to `proceed`, the reindex operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query.", "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The script to run to update the document source or metadata when reindexing.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The source you are copying from.", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "Source", "namespace": "_global.reindex" } } } ] }, "description": "Reindex documents.\n\nCopy documents from a source to a destination.\nYou can copy all documents to the destination index or reindex a subset of the documents.\nThe source can be any existing index, alias, or data stream.\nThe destination must differ from the source.\nFor example, you cannot reindex a data stream into itself.\n\nIMPORTANT: Reindex requires `_source` to be enabled for all documents in the source.\nThe destination should be configured as wanted before calling the reindex API.\nReindex does not copy the settings from the source or its associated template.\nMappings, shard counts, and replicas, for example, must be configured ahead of time.\n\nIf the Elasticsearch security features are enabled, you must have the following security privileges:\n\n* The `read` index privilege for the source data stream, index, or alias.\n* The `write` index privilege for the destination data stream, index, or index alias.\n* To automatically create a data stream or index with a reindex API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege for the destination data stream, index, or alias.\n* If reindexing from a remote cluster, the `source.remote.user` must have the `monitor` cluster privilege and the `read` index privilege for the source data stream, index, or alias.\n\nIf reindexing from a remote cluster, you must explicitly allow the remote host in the `reindex.remote.whitelist` setting.\nAutomatic data stream creation requires a matching index template with data stream enabled.\n\nThe `dest` element can be configured like the index API to control optimistic concurrency control.\nOmitting `version_type` or setting it to `internal` causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID.\n\nSetting `version_type` to `external` causes Elasticsearch to preserve the `version` from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source.\n\nSetting `op_type` to `create` causes the reindex API to create only missing documents in the destination.\nAll existing documents will cause a version conflict.\n\nIMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an `op_type` of `create`.\nA reindex can only add new documents to a destination data stream.\nIt cannot update existing documents in a destination data stream.\n\nBy default, version conflicts abort the reindex process.\nTo continue reindexing if there are conflicts, set the `conflicts` request body property to `proceed`.\nIn this case, the response includes a count of the version conflicts that were encountered.\nNote that the handling of other error types is unaffected by the `conflicts` property.\nAdditionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query.\n\nNOTE: The reindex API makes no effort to handle ID collisions.\nThe last document written will \"win\" but the order isn't usually predictable so it is not a good idea to rely on this behavior.\nInstead, make sure that IDs are unique by using a script.\n\n**Running reindex asynchronously**\n\nIf the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task.\nElasticsearch creates a record of this task as a document at `_tasks/`.\n\n**Reindex from multiple sources**\n\nIf you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources.\nThat way you can resume the process if there are any errors by removing the partially completed source and starting over.\nIt also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel.\n\nFor example, you can use a bash script like this:\n\n```\nfor index in i1 i2 i3 i4 i5; do\n curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{\n \"source\": {\n \"index\": \"'$index'\"\n },\n \"dest\": {\n \"index\": \"'$index'-reindexed\"\n }\n }'\ndone\n```\n\n**Throttling**\n\nSet `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, for example) to throttle the rate at which reindex issues batches of index operations.\nRequests are throttled by padding each batch with a wait time.\nTo turn off throttling, set `requests_per_second` to `-1`.\n\nThe throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding.\nThe padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing.\nBy default the batch size is `1000`, so if `requests_per_second` is set to `500`:\n\n```\ntarget_time = 1000 / 500 per second = 2 seconds\nwait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds\n```\n\nSince the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set.\nThis is \"bursty\" instead of \"smooth\".\n\n**Slicing**\n\nReindex supports sliced scroll to parallelize the reindexing process.\nThis parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nNOTE: Reindexing from remote clusters does not support manual or automatic slicing.\n\nYou can slice a reindex request manually by providing a slice ID and total number of slices to each request.\nYou can also let reindex automatically parallelize by using sliced scroll to slice on `_id`.\nThe `slices` parameter specifies the number of slices to use.\n\nAdding `slices` to the reindex request just automates the manual process, creating sub-requests which means it has some quirks:\n\n* You can see these requests in the tasks API. These sub-requests are \"child\" tasks of the task for the request with slices.\n* Fetching the status of the task for the request with `slices` only contains the status of completed slices.\n* These sub-requests are individually addressable for things like cancellation and rethrottling.\n* Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally.\n* Canceling the request with `slices` will cancel each sub-request.\n* Due to the nature of `slices`, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution.\n* Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being reindexed.\n* Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time.\n\nIf slicing automatically, setting `slices` to `auto` will choose a reasonable number for most indices.\nIf slicing manually or otherwise tuning automatic slicing, use the following guidelines.\n\nQuery performance is most efficient when the number of slices is equal to the number of shards in the index.\nIf that number is large (for example, `500`), choose a lower number as too many slices will hurt performance.\nSetting slices higher than the number of shards generally does not improve efficiency and adds overhead.\n\nIndexing performance scales linearly across available resources with the number of slices.\n\nWhether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources.\n\n**Modify documents during reindexing**\n\nLike `_update_by_query`, reindex operations support a script that modifies the document.\nUnlike `_update_by_query`, the script is allowed to modify the document's metadata.\n\nJust as in `_update_by_query`, you can set `ctx.op` to change the operation that is run on the destination.\nFor example, set `ctx.op` to `noop` if your script decides that the document doesn’t have to be indexed in the destination. This \"no operation\" will be reported in the `noop` counter in the response body.\nSet `ctx.op` to `delete` if your script decides that the document must be deleted from the destination.\nThe deletion will be reported in the `deleted` counter in the response body.\nSetting `ctx.op` to anything else will return an error, as will setting any other field in `ctx`.\n\nThink of the possibilities! Just be careful; you are able to change:\n\n* `_id`\n* `_index`\n* `_version`\n* `_routing`\n\nSetting `_version` to `null` or clearing it from the `ctx` map is just like not sending the version in an indexing request.\nIt will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API.\n\n**Reindex from remote**\n\nReindex supports reindexing from a remote Elasticsearch cluster.\nThe `host` parameter must contain a scheme, host, port, and optional path.\nThe `username` and `password` parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication.\nBe sure to use HTTPS when using basic authentication or the password will be sent in plain text.\nThere are a range of settings available to configure the behavior of the HTTPS connection.\n\nWhen using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key.\nRemote hosts must be explicitly allowed with the `reindex.remote.whitelist` setting.\nIt can be set to a comma delimited list of allowed remote host and port combinations.\nScheme is ignored; only the host and port are used.\nFor example:\n\n```\nreindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*\"]\n```\n\nThe list of allowed hosts must be configured on any nodes that will coordinate the reindex.\nThis feature should work with remote clusters of any version of Elasticsearch.\nThis should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version.\n\nWARNING: Elasticsearch does not support forward compatibility across major versions.\nFor example, you cannot reindex from a 7.x cluster into a 6.x cluster.\n\nTo enable queries sent to older versions of Elasticsearch, the `query` parameter is sent directly to the remote host without validation or modification.\n\nNOTE: Reindexing from remote clusters does not support manual or automatic slicing.\n\nReindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb.\nIf the remote index includes very large documents you'll need to use a smaller batch size.\nIt is also possible to set the socket read timeout on the remote connection with the `socket_timeout` field and the connection timeout with the `connect_timeout` field.\nBoth default to 30 seconds.\n\n**Configuring SSL parameters**\n\nReindex from remote supports configurable SSL settings.\nThese must be specified in the `elasticsearch.yml` file, with the exception of the secure settings, which you add in the Elasticsearch keystore.\nIt is not possible to configure SSL in the body of the reindex request.", "examples": { "ReindexRequestExample1": { "description": "Run `POST _reindex` to reindex from multiple sources. The `index` attribute in source can be a list, which enables you to copy from lots of sources in one request. This example copies documents from the `my-index-000001` and `my-index-000002` indices.\n", "summary": "Reindex multiple sources", "value": "{\n \"source\": {\n \"index\": [\"my-index-000001\", \"my-index-000002\"]\n },\n \"dest\": {\n \"index\": \"my-new-index-000002\"\n }\n}" }, "ReindexRequestExample10": { "description": "You can use Painless to reindex daily indices to apply a new template to the existing documents. The script extracts the date from the index name and creates a new index with `-1` appended. For example, all data from `metricbeat-2016.05.31` will be reindexed into `metricbeat-2016.05.31-1`.\n", "summary": "Reindex with Painless", "value": "{\n \"source\": {\n \"index\": \"metricbeat-*\"\n },\n \"dest\": {\n \"index\": \"metricbeat\"\n },\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'\"\n }\n}" }, "ReindexRequestExample11": { "description": "Run `POST _reindex` to extract a random subset of the source for testing. You might need to adjust the `min_score` value depending on the relative amount of data extracted from source.\n", "summary": "Reindex a random subset", "value": "{\n \"max_docs\": 10,\n \"source\": {\n \"index\": \"my-index-000001\",\n \"query\": {\n \"function_score\" : {\n \"random_score\" : {},\n \"min_score\" : 0.9\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample12": { "description": "Run `POST _reindex` to modify documents during reindexing. This example bumps the version of the source document.\n", "summary": "Reindex modified documents", "value": "{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\",\n \"version_type\": \"external\"\n },\n \"script\": {\n \"source\": \"if (ctx._source.foo == 'bar') {ctx._version++; ctx._source.remove('foo')}\",\n \"lang\": \"painless\"\n }\n}" }, "ReindexRequestExample13": { "description": "When using Elastic Cloud, you can run `POST _reindex` and authenticate against a remote cluster with an API key.\n", "summary": "Reindex from remote on Elastic Cloud", "value": "{\n \"source\": {\n \"remote\": {\n \"host\": \"http://otherhost:9200\",\n \"username\": \"user\",\n \"password\": \"pass\"\n },\n \"index\": \"my-index-000001\",\n \"query\": {\n \"match\": {\n \"test\": \"data\"\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample2": { "description": "Run `POST _reindex` to slice a reindex request manually. Provide a slice ID and total number of slices to each request.\n", "summary": "Manual slicing", "value": "{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"slice\": {\n \"id\": 0,\n \"max\": 2\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample3": { "description": "Run `POST _reindex?slices=5&refresh` to automatically parallelize using sliced scroll to slice on `_id`. The `slices` parameter specifies the number of slices to use.\n", "summary": "Automatic slicing", "value": "{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample4": { "description": "By default if reindex sees a document with routing then the routing is preserved unless it's changed by the script. You can set `routing` on the `dest` request to change this behavior. In this example, run `POST _reindex` to copy all documents from the `source` with the company name `cat` into the `dest` with routing set to `cat`.\n", "summary": "Routing", "value": "{\n \"source\": {\n \"index\": \"source\",\n \"query\": {\n \"match\": {\n \"company\": \"cat\"\n }\n }\n },\n \"dest\": {\n \"index\": \"dest\",\n \"routing\": \"=cat\"\n }\n}" }, "ReindexRequestExample5": { "description": "Run `POST _reindex` and use the ingest pipelines feature.", "summary": "Ingest pipelines", "value": "{\n \"source\": {\n \"index\": \"source\"\n },\n \"dest\": {\n \"index\": \"dest\",\n \"pipeline\": \"some_ingest_pipeline\"\n }\n}" }, "ReindexRequestExample6": { "description": "Run `POST _reindex` and add a query to the `source` to limit the documents to reindex. For example, this request copies documents into `my-new-index-000001` only if they have a `user.id` of `kimchy`.\n", "summary": "Reindex with a query", "value": "{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample7": { "description": "You can limit the number of processed documents by setting `max_docs`. For example, run `POST _reindex` to copy a single document from `my-index-000001` to `my-new-index-000001`.\n", "summary": "Reindex with max_docs", "value": "{\n \"max_docs\": 1,\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample8": { "description": "You can use source filtering to reindex a subset of the fields in the original documents. For example, run `POST _reindex` the reindex only the `user.id` and `_doc` fields of each document.\n", "summary": "Reindex selected fields", "value": "{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"_source\": [\"user.id\", \"_doc\"]\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}" }, "ReindexRequestExample9": { "description": "A reindex operation can build a copy of an index with renamed fields. If your index has documents with `text` and `flag` fields, you can change the latter field name to `tag` during the reindex.\n", "summary": "Reindex new field names", "value": "{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n },\n \"script\": {\n \"source\": \"ctx._source.tag = ctx._source.remove(\\\"flag\\\")\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.reindex" }, "path": [], "query": [ { "description": "If `true`, the request refreshes affected shards to make this operation visible to search.", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The throttle for this request in sub-requests per second.\nBy default, there is no throttle.", "name": "requests_per_second", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The period of time that a consistent view of the index should be maintained for scrolled search.", "name": "scroll", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of slices this task should be divided into.\nIt defaults to one slice, which means the task isn't sliced into subtasks.\n\nReindex supports sliced scroll to parallelize the reindexing process.\nThis parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nNOTE: Reindexing from remote clusters does not support manual or automatic slicing.\n\nIf set to `auto`, Elasticsearch chooses the number of slices to use.\nThis setting will use one slice per shard, up to a certain limit.\nIf there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards.", "extDocId": "slice-scroll", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#slice-scroll", "name": "slices", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "Slices", "namespace": "_types" } } }, { "description": "The period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards.\nBy default, Elasticsearch waits for at least one minute before failing.\nThe actual wait time could be longer, particularly when multiple waits occur.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe default value is one, which means it waits for each primary shard to be active.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If `true`, the request blocks until the operation is complete.", "name": "wait_for_completion", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the destination must be an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/reindex/ReindexRequest.ts#L27-L309" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of scroll responses that were pulled back by the reindex.", "name": "batches", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully created.", "name": "created", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully deleted.", "name": "deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If there were any unrecoverable errors during the process, it is an array of those failures.\nIf this array is not empty, the request ended because of those failures.\nReindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array.\nYou can use the `conflicts` option to prevent the reindex from ending on version conflicts.", "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "BulkIndexByScrollFailure", "namespace": "_types" } } } }, { "description": "The number of documents that were ignored because the script used for the reindex returned a `noop` value for `ctx.op`.", "name": "noops", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of retries attempted by reindex.", "name": "retries", "required": false, "type": { "kind": "instance_of", "type": { "name": "Retries", "namespace": "_types" } } }, { "description": "The number of requests per second effectively run during the reindex.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "slice_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "task", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } }, { "description": "The number of milliseconds the request slept to conform to `requests_per_second`.", "name": "throttled_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "This field should always be equal to zero in a reindex response.\nIt has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) that a throttled request will be run again in order to conform to `requests_per_second`.", "name": "throttled_until_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "If any of the requests that ran during the reindex timed out, it is `true`.", "name": "timed_out", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The total milliseconds the entire operation took.", "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of documents that were successfully processed.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully updated.\nThat is to say, a document with the same ID already existed before the reindex updated it.", "name": "updated", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of version conflicts that occurred.", "name": "version_conflicts", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "_global.reindex" }, "specLocation": "_global/reindex/ReindexResponse.ts#L26-L92" }, { "kind": "interface", "name": { "name": "Source", "namespace": "_global.reindex" }, "properties": [ { "description": "The name of the data stream, index, or alias you are copying from.\nIt accepts a comma-separated list to reindex from multiple sources.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "The documents to reindex, which is defined with Query DSL.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "A remote instance of Elasticsearch that you want to index from.", "name": "remote", "required": false, "type": { "kind": "instance_of", "type": { "name": "RemoteSource", "namespace": "_global.reindex" } } }, { "description": "The number of documents to index per batch.\nUse it when you are indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.", "name": "size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Slice the reindex request manually using the provided slice ID and total number of slices.", "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.6.0" }, "description": "A comma-separated list of `:` pairs to sort by before indexing.\nUse it in conjunction with `max_docs` to control what documents are reindexed.\n\nWARNING: Sort in reindex is deprecated.\nSorting in reindex was never guaranteed to index documents in order and prevents further development of reindex such as resilience and performance improvements.\nIf used in combination with `max_docs`, consider using a query filter instead.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "codegenName": "source_fields", "description": "If `true`, reindex all source fields.\nSet it to a list to reindex select fields.", "name": "_source", "required": false, "serverDefault": "true", "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } } ], "specLocation": "_global/reindex/types.ts#L69-L110" }, { "kind": "interface", "inherits": { "type": { "name": "BaseNode", "namespace": "_spec_utils" } }, "name": { "name": "ReindexNode", "namespace": "_global.reindex_rethrottle" }, "properties": [ { "name": "tasks", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ReindexTask", "namespace": "_global.reindex_rethrottle" } } } } ], "specLocation": "_global/reindex_rethrottle/types.ts#L33-L35" }, { "kind": "interface", "name": { "name": "ReindexStatus", "namespace": "_global.reindex_rethrottle" }, "properties": [ { "description": "The number of scroll responses pulled back by the reindex.", "name": "batches", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully created.", "name": "created", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully deleted.", "name": "deleted", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were ignored because the script used for the reindex returned a `noop` value for `ctx.op`.", "name": "noops", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of requests per second effectively executed during the reindex.", "name": "requests_per_second", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The number of retries attempted by reindex. `bulk` is the number of bulk actions retried and `search` is the number of search actions retried.", "name": "retries", "required": true, "type": { "kind": "instance_of", "type": { "name": "Retries", "namespace": "_types" } } }, { "name": "throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Number of milliseconds the request slept to conform to `requests_per_second`.", "name": "throttled_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "throttled_until", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "This field should always be equal to zero in a `_reindex` response.\nIt only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to `requests_per_second`.", "name": "throttled_until_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of documents that were successfully processed.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.", "name": "updated", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of version conflicts that reindex hits.", "name": "version_conflicts", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/reindex_rethrottle/types.ts#L37-L85" }, { "kind": "interface", "name": { "name": "ReindexTask", "namespace": "_global.reindex_rethrottle" }, "properties": [ { "name": "action", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cancellable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "running_time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ReindexStatus", "namespace": "_global.reindex_rethrottle" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "headers", "required": true, "type": { "kind": "instance_of", "type": { "name": "HttpHeaders", "namespace": "_types" } } } ], "specLocation": "_global/reindex_rethrottle/types.ts#L87-L98" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Throttle a reindex operation.\n\nChange the number of requests per second for a particular reindex operation.\nFor example:\n\n```\nPOST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1\n```\n\nRethrottling that speeds up the query takes effect immediately.\nRethrottling that slows down the query will take effect after completing the current batch.\nThis behavior prevents scroll timeouts.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.reindex_rethrottle" }, "path": [ { "description": "The task identifier, which can be found by using the tasks API.", "name": "task_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The throttle for this request in sub-requests per second.\nIt can be either `-1` to turn off throttling or any decimal number like `1.7` or `12` to throttle to that level.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_global/reindex_rethrottle/ReindexRethrottleRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ReindexNode", "namespace": "_global.reindex_rethrottle" } } } } ] }, "name": { "name": "Response", "namespace": "_global.reindex_rethrottle" }, "specLocation": "_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The ID of the search template to render.\nIf no `source` is specified, this or the `` request path parameter is required.\nIf you specify both this parameter and the `` parameter, the API uses only ``.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "file", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Key-value pairs used to replace Mustache variables in the template.\nThe key is the variable name.\nThe value is the variable value.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "An inline search template.\nIt supports the same parameters as the search API's request body.\nThese parameters also support Mustache variables.\nIf no `id` or `` is specified, this parameter is required.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } } ] }, "description": "Render a search template.\n\nRender a search template as a search request body.", "examples": { "RenderSearchTemplateRequestExample1": { "description": "Run `POST _render/template`", "value": "{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"hello world\",\n \"from\": 20,\n \"size\": 10\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.render_search_template" }, "path": [ { "description": "The ID of the search template to render.\nIf no `source` is specified, this or the `id` request body parameter is required.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "_global/render_search_template/RenderSearchTemplateRequest.ts#L26-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "template_output", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "name": { "name": "Response", "namespace": "_global.render_search_template" }, "specLocation": "_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25" }, { "kind": "enum", "members": [ { "description": "The default context if no other context is specified.", "name": "painless_test" }, { "description": "Treats scripts as if they were run inside a script query.", "name": "filter" }, { "description": "Treats scripts as if they were run inside a `script_score` function in a `function_score` query.", "name": "score" }, { "description": "The context for boolean fields. The script returns a `true` or `false` response.", "name": "boolean_field" }, { "description": "The context for date fields. `emit` takes a long value and the script returns a sorted list of dates.", "name": "date_field" }, { "description": "The context for double numeric fields. The script returns a sorted list of double values.", "name": "double_field" }, { "description": "The context for geo-point fields. `emit` takes two double parameters, the latitude and longitude values, and the script returns an object in GeoJSON format containing the coordinates for the geo point.", "name": "geo_point_field" }, { "description": "The context for `ip` fields. The script returns a sorted list of IP addresses.", "name": "ip_field" }, { "description": "The context for keyword fields. The script returns a sorted list of string values.", "name": "keyword_field" }, { "description": "The context for long numeric fields. The script returns a sorted list of long values.", "name": "long_field" }, { "description": "The context for composite runtime fields. The script returns a map of values.", "name": "composite_field" } ], "name": { "name": "PainlessContext", "namespace": "_global.scripts_painless_execute" }, "specLocation": "_global/scripts_painless_execute/types.ts#L57-L80" }, { "kind": "interface", "name": { "name": "PainlessContextSetup", "namespace": "_global.scripts_painless_execute" }, "properties": [ { "description": "Document that's temporarily indexed in-memory and accessible from the script.", "name": "document", "required": true, "type": { "kind": "user_defined_value" } }, { "description": "Index containing a mapping that's compatible with the indexed document.\nYou may specify a remote index by prefixing the index with the remote cluster alias.\nFor example, `remote1:my_index` indicates that you want to run the painless script against the \"my_index\" index on the \"remote1\" cluster.\nThis request will be forwarded to the \"remote1\" cluster if you have configured a connection to that remote cluster.\n\nNOTE: Wildcards are not accepted in the index expression for this endpoint.\nThe expression `*:myindex` will return the error \"No such remote cluster\" and the expression `logs*` or `remote1:logs*` will return the error \"index not found\".", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Use this parameter to specify a query for computing a score.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_global/scripts_painless_execute/types.ts#L27-L46" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The context that the script should run in.\nNOTE: Result ordering in the field contexts is not guaranteed.", "name": "context", "required": false, "serverDefault": "painless_test", "type": { "kind": "instance_of", "type": { "name": "PainlessContext", "namespace": "_global.scripts_painless_execute" } } }, { "description": "Additional parameters for the `context`.\nNOTE: This parameter is required for all contexts except `painless_test`, which is the default if no value is provided for `context`.", "name": "context_setup", "required": false, "type": { "kind": "instance_of", "type": { "name": "PainlessContextSetup", "namespace": "_global.scripts_painless_execute" } } }, { "description": "The Painless script to run.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ] }, "description": "Run a script.\n\nRuns a script and returns a result.\nUse this API to build and test scripts, such as when defining a script for a runtime field.\nThis API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster.\n\nThe API uses several _contexts_, which control how scripts are run, what variables are available at runtime, and what the return type is.\n\nEach context requires a script, but additional parameters depend on the context you're using for that script.", "examples": { "ExecutePainlessScriptRequestExample1": { "description": "Run `POST /_scripts/painless/_execute`. The `painless_test` context is the default context. It runs scripts without additional parameters. The only variable that is available is `params`, which can be used to access user defined values. The result of the script is always converted to a string.\n", "summary": "Test context", "value": "{\n \"script\": {\n \"source\": \"params.count / params.total\",\n \"params\": {\n \"count\": 100.0,\n \"total\": 1000.0\n }\n }\n}" }, "ExecutePainlessScriptRequestExample2": { "description": "Run `POST /_scripts/painless/_execute` with a `filter` context. It treats scripts as if they were run inside a script query. For testing purposes, a document must be provided so that it will be temporarily indexed in-memory and is accessible from the script. More precisely, the `_source`, stored fields, and doc values of such a document are available to the script being tested.\n", "summary": "Filter context", "value": "{\n \"script\": {\n \"source\": \"doc['field'].value.length() <= params.max_length\",\n \"params\": {\n \"max_length\": 4\n }\n },\n \"context\": \"filter\",\n \"context_setup\": {\n \"index\": \"my-index-000001\",\n \"document\": {\n \"field\": \"four\"\n }\n }\n}" }, "ExecutePainlessScriptRequestExample3": { "description": "Run `POST /_scripts/painless/_execute` with a `score` context. It treats scripts as if they were run inside a `script_score` function in a `function_score` query.\n", "summary": "Score context", "value": "{\n \"script\": {\n \"source\": \"doc['rank'].value / params.max_rank\",\n \"params\": {\n \"max_rank\": 5.0\n }\n },\n \"context\": \"score\",\n \"context_setup\": {\n \"index\": \"my-index-000001\",\n \"document\": {\n \"rank\": 4\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.scripts_painless_execute" }, "path": [], "query": [], "specLocation": "_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "TResult", "namespace": "_global.scripts_painless_execute.Response" } } } ] }, "examples": { "ExecutePainlessScriptResponseExample1": { "description": "A successful response from `POST /_scripts/painless/_execute` with a `painless_test` context.", "summary": "Test context", "value": "{\n \"result\": \"0.1\"\n}" }, "ExecutePainlessScriptResponseExample2": { "description": "A successful response from `POST /_scripts/painless/_execute` with a `filter` context.", "summary": "Filter context", "value": "{\n \"result\": true\n}" }, "ExecutePainlessScriptResponseExample3": { "description": "A successful response from `POST /_scripts/painless/_execute` with a `score` context.", "summary": "Score context", "value": "{\n \"result\": 0.8\n}" } }, "generics": [ { "name": "TResult", "namespace": "_global.scripts_painless_execute.Response" } ], "name": { "name": "Response", "namespace": "_global.scripts_painless_execute" }, "specLocation": "_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The period to retain the search context for scrolling.", "docId": "scroll-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "scroll", "required": false, "serverDefault": "1d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The scroll ID of the search.", "name": "scroll_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } } ] }, "description": "Run a scrolling search.\n\nIMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the `search_after` parameter with a point in time (PIT).\n\nThe scroll API gets large sets of results from a single scrolling search request.\nTo get the necessary scroll ID, submit a search API request that includes an argument for the `scroll` query parameter.\nThe `scroll` parameter indicates how long Elasticsearch should retain the search context for the request.\nThe search response returns a scroll ID in the `_scroll_id` response body parameter.\nYou can then use the scroll ID with the scroll API to retrieve the next batch of results for the request.\nIf the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search.\n\nYou can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context.\n\nIMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests.", "examples": { "ScrollRequestExample1": { "description": "Run `GET /_search/scroll` to get the next batch of results for a scrolling search.", "value": "{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.scroll" }, "path": [ { "deprecation": { "description": "", "version": "7.0.0" }, "description": "The scroll ID", "name": "scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } } ], "query": [ { "description": "The period to retain the search context for scrolling.", "docId": "scroll-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "scroll", "required": false, "serverDefault": "1d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.0.0" }, "description": "The scroll ID for scrolled search", "name": "scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } }, { "description": "If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object.", "name": "rest_total_hits_as_int", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/scroll/ScrollRequest.ts#L24-L88" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.scroll.Response" } } ], "type": { "name": "ResponseBody", "namespace": "_global.search" } } }, "generics": [ { "name": "TDocument", "namespace": "_global.scroll.Response" } ], "name": { "name": "Response", "namespace": "_global.scroll" }, "specLocation": "_global/scroll/ScrollResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "aliases": [ "aggs" ], "description": "Defines the aggregations that are run as part of the search request.", "extDocId": "search-aggregations", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/aggregations", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Collapses search results the values of the specified field.", "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } }, { "description": "If `true`, the request returns detailed information about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Configuration of search extensions defined by Elasticsearch plugins.", "name": "ext", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "The starting document offset, which must be non-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.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results.", "extDocId": "search-highlight", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/highlighting", "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "Highlight", "namespace": "_global.search._types" } } }, { "description": "Number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.", "name": "track_total_hits", "required": false, "serverDefault": "10000", "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "Boost the `_score` of documents from specified indices.\nThe boost value is the factor by which scores are multiplied.\nA boost value greater than `1.0` increases the score.\nA boost value between `0` and `1.0` decreases the score.", "extDocId": "relevance-scores", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl#relevance-scores", "name": "indices_boost", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } }, { "description": "An array of wildcard (`*`) field patterns.\nThe request returns doc values for field names matching these patterns in the `hits.fields` property of the response.", "extDocId": "docvalue-fields", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#docvalue-fields", "name": "docvalue_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.4.0" } }, "description": "The approximate kNN search to run.", "extDocId": "knn-approximate", "extDocUrl": "https://www.elastic.co/docs/solutions/search/vector/knn#approximate-knn", "name": "knn", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "KnnSearch", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnSearch", "namespace": "_types" } } } ] } }, { "availability": { "stack": { "since": "8.8.0" } }, "description": "The Reciprocal Rank Fusion (RRF) to use.", "name": "rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankContainer", "namespace": "_types" } } }, { "description": "The minimum `_score` for matching documents.\nDocuments with a lower `_score` are not included in search results and results collected by aggregations.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Use the `post_filter` parameter to filter search results.\nThe search hits are filtered after the aggregations are calculated.\nA post filter has no impact on the aggregation results.", "name": "post_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Set to `true` to return detailed timing information about the execution of individual components in a search request.\nNOTE: This is a debugging tool and adds significant overhead to search execution.", "name": "profile", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The search definition using the Query DSL.", "extDocId": "query-dsl", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.", "name": "rescore", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } } } ] } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.14.0", "stability": "stable" } }, "description": "A retriever is a specification to describe top documents returned from a search.\nA retriever replaces other elements of the search API that also return top documents such as `query` and `knn`.", "extDocId": "search-retrievers", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrievers", "name": "retriever", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetrieverContainer", "namespace": "_types" } } }, { "description": "Retrieve a script evaluation (based on different fields) for each hit.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "description": "Used to retrieve the next page of hits using a set of sort values from the previous page.", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } }, { "description": "The number of hits to return, which 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` property.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Split a scrolled search into multiple slices that can be consumed independently.", "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } }, { "description": "A comma-separated list of : pairs.", "extDocId": "sort-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "The source fields that are returned for matching documents.\nThese fields are returned in the `hits._source` property of the search response.\nIf the `stored_fields` property is specified, the `_source` property defaults to `false`.\nOtherwise, it defaults to `true`.", "extDocId": "source-filtering", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#source-filtering", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "An array of wildcard (`*`) field patterns.\nThe request returns values for field names matching these patterns in the `hits.fields` property of the response.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "description": "Defines a suggester that provides similar looking terms based on a provided text.", "name": "suggest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Suggester", "namespace": "_global.search._types" } } }, { "description": "The maximum number of documents to collect for each shard.\nIf a query reaches this limit, Elasticsearch terminates the query early.\nElasticsearch collects documents before sorting.\n\nIMPORTANT: Use with caution.\nElasticsearch applies this property to each shard handling the request.\nWhen possible, let Elasticsearch perform early termination automatically.\nAvoid specifying this property for requests that target data streams with backing indices across multiple data tiers.\n\nIf set to `0` (default), the query does not terminate early.", "name": "terminate_after", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The period of time to wait for a response from each shard.\nIf no response is received before the timeout expires, the request fails and returns an error.\nDefaults to no timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, calculate and return document scores, even if the scores are not used for sorting.", "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request returns the document version as part of a hit.", "name": "version", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request returns sequence number and primary term of the last modification of each hit.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` property defaults to `false`.\nYou can pass `_source: true` to return both source fields and stored fields in the search response.", "extDocId": "stored-fields", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#stored-fields", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Limit the search to a point in time (PIT).\nIf you provide a PIT, you cannot specify an `` in the request path.", "name": "pit", "required": false, "type": { "kind": "instance_of", "type": { "name": "PointInTimeReference", "namespace": "_global.search._types" } } }, { "description": "One or more runtime fields in the search request.\nThese fields take precedence over mapped fields with the same name.", "extDocId": "runtime-search-request", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/mapping/define-runtime-fields-in-search-request", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "The stats groups to associate with the search.\nEach group maintains a statistics aggregation for its associated searches.\nYou can retrieve these stats using the indices stats API.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Run a search.\n\nGet search hits that match the query defined in the request.\nYou can provide search queries using the `q` query string parameter or the request body.\nIf both are specified, only the query parameter is used.\n\nIf the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges.\nTo search a point in time (PIT) for an alias, you must have the `read` index privilege for the alias's data streams or indices.\n\n**Search slicing**\n\nWhen paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the `slice` and `pit` properties.\nBy default the splitting is done first on the shards, then locally on each shard.\nThe local splitting partitions the shard into contiguous ranges based on Lucene document IDs.\n\nFor instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard.\n\nIMPORTANT: The same point-in-time ID should be used for all slices.\nIf different PIT IDs are used, slices can overlap and miss documents.\nThis situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index.", "examples": { "SearchRequestExample1": { "description": "Run `GET /my-index-000001/_search?from=40&size=20` to run a search.\n", "summary": "A simple term search", "value": "{\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}" }, "SearchRequestExample2": { "description": "Run `POST /_search` to run a point in time search. The `id` parameter tells Elasticsearch to run the request using contexts from this open point in time. The `keep_alive` parameter tells Elasticsearch how long it should extend the time to live of the point in time.\n", "summary": "A point in time search", "value": "{\n \"size\": 100, \n \"query\": {\n \"match\" : {\n \"title\" : \"elasticsearch\"\n }\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\", \n \"keep_alive\": \"1m\" \n }\n}" }, "SearchRequestExample3": { "description": "When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently. The result from running the first `GET /_search` request returns documents belonging to the first slice (`id: 0`). If you run a second request with `id` set to `1', it returns documents in the second slice. Since the maximum number of slices is set to `2`, the union of the results is equivalent to the results of a point-in-time search without slicing.\n", "summary": "Search slicing", "value": "{\n \"slice\": {\n \"id\": 0, \n \"max\": 2 \n },\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.search" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).\nTo search all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true` and there are shard request timeouts or shard failures, the request returns partial results.\nIf `false`, it returns an error with no partial results.\n\nTo override the default behavior, you can set the `search.default_allow_partial_results` cluster setting to `false`.", "name": "allow_partial_search_results", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analyzer to use for the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, wildcard and prefix queries are analyzed.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of shard results that should be reduced at once on the coordinating node.\nIf the potential number of shards in the request can be large, this value should be used as a protection mechanism to reduce the memory overhead per search request.", "name": "batched_reduce_size", "required": false, "serverDefault": 512, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If `true`, network round-trips between the coordinating node and the remote clusters are minimized when running cross-cluster search (CCS) requests.", "extDocId": "ccs-network-delays", "extDocUrl": "https://www.elastic.co/docs/solutions/search/cross-cluster-search#ccs-network-delays", "name": "ccs_minimize_roundtrips", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default operator for the query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, "serverDefault": "OR", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "The field to use as a default when no field prefix is given in the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A comma-separated list of fields to return as the docvalue representation of a field for each hit.", "extDocId": "docvalue-fields", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#docvalue-fields", "name": "docvalue_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, the request returns detailed information about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If `true`, concrete, expanded or aliased indices will be ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes the score contribution from any named queries.\n\nThis functionality reruns each named query on every hit in a search response.\nTypically, this adds a small overhead to a request.\nHowever, using computationally expensive named queries on a large number of hits may add significant overhead.", "name": "include_named_queries_score", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of concurrent shard requests per node that the search runs concurrently.\nThis value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests.", "name": "max_concurrent_shard_requests", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The nodes and shards used for the search.\nBy default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness.\nValid values are:\n\n* `_only_local` to run the search only on shards on the local node.\n* `_local` to, if possible, run the search on shards on the local node, or if not, select shards using the default method.\n* `_only_nodes:,` to run the search on only the specified nodes IDs. If suitable shards exist on more than one selected node, use shards on those nodes using the default method. If none of the specified nodes are available, select shards from any available node using the default method.\n* `_prefer_nodes:,` to if possible, run the search on the specified nodes IDs. If not, select shards using the default method.\n`_shards:,` to run the search only on the specified shards. You can combine this value with other `preference` values. However, the `_shards` value must come first. For example: `_shards:2,3|_local`.\n`` (any string that does not start with `_`) to route searches with the same `` to the same shards in the same order.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold.\nThis filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint).\nWhen unspecified, the pre-filter phase is executed if any of these conditions is met:\n\n* The request targets more than 128 shards.\n* The request targets one or more read-only index.\n* The primary sort of the query targets an indexed field.", "name": "pre_filter_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If `true`, the caching of search results is enabled for requests where `size` is `0`.\nIt defaults to index level settings.", "extDocId": "shard-request-cache", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/shard-request-cache", "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The period to retain the search context for scrolling.\nBy default, this value cannot exceed `1d` (24 hours).\nYou can change this limit by using the `search.max_keep_alive` cluster-level setting.", "extDocId": "scroll-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "scroll", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Indicates how distributed term frequencies are calculated for relevance scoring.", "extDocId": "relevance-scores", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl#relevance-scores", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "Specific `tag` of the request for logging and statistical purposes.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` parameter defaults to `false`.\nYou can pass `_source: true` to return both source fields and stored fields in the search response.", "extDocId": "stored-fields", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#stored-fields", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The field to use for suggestions.", "name": "suggest_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The suggest mode.\nThis parameter can be used only when the `suggest_field` and `suggest_text` query string parameters are specified.", "name": "suggest_mode", "required": false, "serverDefault": "missing", "type": { "kind": "instance_of", "type": { "name": "SuggestMode", "namespace": "_types" } } }, { "description": "The number of suggestions to return.\nThis parameter can be used only when the `suggest_field` and `suggest_text` query string parameters are specified.", "name": "suggest_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The source text for which the suggestions should be returned.\nThis parameter can be used only when the `suggest_field` and `suggest_text` query string parameters are specified.", "name": "suggest_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of documents to collect for each shard.\nIf a query reaches this limit, Elasticsearch terminates the query early.\nElasticsearch collects documents before sorting.\n\nIMPORTANT: Use with caution.\nElasticsearch applies this parameter to each shard handling the request.\nWhen possible, let Elasticsearch perform early termination automatically.\nAvoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.\nIf set to `0` (default), the query does not terminate early.", "name": "terminate_after", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The period of time to wait for a response from each shard.\nIf no response is received before the timeout expires, the request fails and returns an error.\nIt defaults to no timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.", "name": "track_total_hits", "required": false, "serverDefault": "10000", "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "If `true`, the request calculates and returns document scores, even if the scores are not used for sorting.", "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, aggregation and suggester names are be prefixed by their respective types in the response.", "name": "typed_keys", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether `hits.total` should be rendered as an integer or an object in the rest search response.", "name": "rest_total_hits_as_int", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request returns the document version as part of a hit.", "name": "version", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The source fields that are returned for matching documents.\nThese fields are returned in the `hits._source` property of the search response.\nValid values are:\n\n* `true` to return the entire document source.\n* `false` to not return the document source.\n* `` to return the source fields that are specified as a comma-separated list that supports wildcard (`*`) patterns.", "name": "_source", "required": false, "serverDefault": "true", "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A comma-separated list of source fields to exclude from the response.\nYou can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A comma-separated list of source fields to include in the response.\nIf this parameter is specified, only these source fields are returned.\nYou can exclude fields from this subset using the `_source_excludes` query parameter.\nIf the `_source` parameter is `false`, this parameter is ignored.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, the request returns the sequence number and primary term of the last modification of each hit.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A query in the Lucene query string syntax.\nQuery parameter searches do not support the full Elasticsearch Query DSL but are handy for testing.\n\nIMPORTANT: This parameter overrides the query parameter in the request body.\nIf both parameters are specified, documents matching the query request body parameter are not returned.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of hits to return.\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.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The starting document offset, which must be non-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.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A comma-separated list of `:` pairs.", "extDocId": "sort-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "availability": { "stack": { "featureFlag": "es.index_mode_feature_flag_registered", "since": "8.4.0", "visibility": "feature_flag" } }, "description": "Should this request force synthetic _source?\nUse this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.\nFetches with this enabled will be slower the enabling synthetic source natively in the index.", "name": "force_synthetic_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/SearchRequest.ts#L53-L588" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search.Response" } } ], "type": { "name": "ResponseBody", "namespace": "_global.search" } } }, "examples": { "SearchResponseExample1": { "description": "An abbreviated response from `GET /my-index-000001/_search?from=40&size=20` with a simple term query.\n", "value": "{\n \"took\": 5,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 20,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.3862942,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"0\",\n \"_score\": 1.3862942,\n \"_source\": {\n \"@timestamp\": \"2099-11-15T14:12:12\",\n \"http\": {\n \"request\": {\n \"method\": \"get\"\n },\n \"response\": {\n \"status_code\": 200,\n \"bytes\": 1070000\n },\n \"version\": \"1.1\"\n },\n \"source\": {\n \"ip\": \"127.0.0.1\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n }\n }\n ]\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.search.Response" } ], "name": { "name": "Response", "namespace": "_global.search" }, "specLocation": "_global/search/SearchResponse.ts#L34-L37" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.search.ResponseBody" } ], "name": { "name": "ResponseBody", "namespace": "_global.search" }, "properties": [ { "description": "The number of milliseconds it took Elasticsearch to run the request.\nThis value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response.\nIt includes:\n\n* Communication time between the coordinating node and data nodes\n* Time the request spends in the search thread pool, queued for execution\n* Actual run time\n\nIt does not include:\n\n* Time needed to send the request to Elasticsearch\n* Time needed to serialize the JSON response\n* Time needed to send the response to a client", "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If `true`, the request timed out before completion; returned results may be partial or empty.", "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A count of shards used for the request.", "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "description": "The returned documents and metadata.", "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search.ResponseBody" } } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } }, { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } } }, { "name": "_clusters", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterStatistics", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "max_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "num_reduce_phases", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "Profile", "namespace": "_global.search._types" } } }, { "name": "pit_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The identifier for the search and its search context.\nYou can use this scroll ID with the scroll API to retrieve the next batch of search results for the request.\nThis property is returned only if the `scroll` query parameter is specified in the request.", "extDocId": "scroll-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#scroll-search-results", "name": "_scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } }, { "name": "suggest", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "SuggestionName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search.ResponseBody" } } ], "type": { "name": "Suggest", "namespace": "_global.search._types" } } } } }, { "name": "terminated_early", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/SearchResponse.ts#L39-L85" }, { "kind": "interface", "name": { "name": "AggregationBreakdown", "namespace": "_global.search._types" }, "properties": [ { "name": "build_aggregation", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_aggregation_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_leaf_collector", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_leaf_collector_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "collect", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "collect_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "initialize", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "initialize_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "post_collection", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "post_collection_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "reduce", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "reduce_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L26-L39" }, { "kind": "interface", "name": { "name": "AggregationProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { "name": "AggregationBreakdown", "namespace": "_global.search._types" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "debug", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregationProfileDebug", "namespace": "_global.search._types" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AggregationProfile", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L85-L92" }, { "kind": "interface", "name": { "name": "AggregationProfileDebug", "namespace": "_global.search._types" }, "properties": [ { "name": "segments_with_multi_valued_ords", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "collection_strategy", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "segments_with_single_valued_ords", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_buckets", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "built_buckets", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "result_strategy", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "has_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "delegate", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "delegate_debug", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregationProfileDebug", "namespace": "_global.search._types" } } }, { "name": "chars_fetched", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "extract_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "extract_ns", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "values_fetched", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "collect_analyzed_ns", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "collect_analyzed_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "surviving_buckets", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "ordinals_collectors_used", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "ordinals_collectors_overhead_too_high", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "string_hashing_collectors_used", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "numeric_collectors_used", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "empty_collectors_used", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "deferred_aggregators", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "segments_with_doc_count_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "segments_with_deleted_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "filters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AggregationProfileDelegateDebugFilter", "namespace": "_global.search._types" } } } }, { "name": "segments_counted", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "segments_collected", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "map_reducer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "brute_force_used", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "dynamic_pruning_attempted", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "dynamic_pruning_used", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "skipped_due_to_no_data", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L42-L76" }, { "kind": "interface", "name": { "name": "AggregationProfileDelegateDebugFilter", "namespace": "_global.search._types" }, "properties": [ { "name": "results_from_metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "specialized_for", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "segments_counted_in_constant_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L78-L83" }, { "kind": "enum", "members": [ { "description": "Use the characters specified by `boundary_chars` as highlighting boundaries.\nThe `boundary_max_scan` setting controls how far to scan for boundary characters.\nOnly valid for the `fvh` highlighter.", "name": "chars" }, { "description": "Break highlighted fragments at the next sentence boundary, as determined by Java’s `BreakIterator`.\nYou can specify the locale to use with `boundary_scanner_locale`.\nWhen used with the `unified` highlighter, the `sentence` scanner splits sentences bigger than `fragment_size` at the first word boundary next to fragment_size.\nYou can set `fragment_size` to `0` to never split any sentence.", "name": "sentence" }, { "description": "Break highlighted fragments at the next word boundary, as determined by Java’s `BreakIterator`.\nYou can specify the locale to use with `boundary_scanner_locale`.", "name": "word" } ], "name": { "name": "BoundaryScanner", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/highlighting.ts#L26-L45" }, { "kind": "interface", "name": { "name": "Collector", "namespace": "_global.search._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Collector", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L94-L99" }, { "kind": "interface", "name": { "name": "CompletionContext", "namespace": "_global.search._types" }, "properties": [ { "description": "The factor by which the score of the suggestion should be boosted.\nThe score is computed by multiplying the boost with the suggestion weight.", "name": "boost", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The value of the category to filter/boost on.", "name": "context", "required": true, "type": { "kind": "instance_of", "type": { "name": "Context", "namespace": "_global.search._types" } } }, { "description": "An array of precision values at which neighboring geohashes should be taken into account.\nPrecision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash precision (`1`..`12`).\nDefaults to generating neighbors for index time precision level.", "name": "neighbours", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GeoHashPrecision", "namespace": "_types" } } } }, { "description": "The precision of the geohash to encode the query geo point.\nCan be specified as a distance value (`5m`, `10km`, etc.), or as a raw geohash precision (`1`..`12`).\nDefaults to index time precision level.", "name": "precision", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoHashPrecision", "namespace": "_types" } } }, { "description": "Whether the category value should be treated as a prefix or not.", "name": "prefix", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "shortcutProperty": "context", "specLocation": "_global/search/_types/suggester.ts#L236-L265" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.search._types.CompletionSuggest" } ], "inherits": { "type": { "name": "SuggestBase", "namespace": "_global.search._types" } }, "name": { "name": "CompletionSuggest", "namespace": "_global.search._types" }, "properties": [ { "name": "options", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search._types.CompletionSuggest" } } ], "type": { "name": "CompletionSuggestOption", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search._types.CompletionSuggest" } } ], "type": { "name": "CompletionSuggestOption", "namespace": "_global.search._types" } } } ] } } ], "specLocation": "_global/search/_types/suggester.ts#L49-L56", "variantName": "completion" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.search._types.CompletionSuggestOption" } ], "name": { "name": "CompletionSuggestOption", "namespace": "_global.search._types" }, "properties": [ { "name": "collate_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "contexts", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Context", "namespace": "_global.search._types" } } } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "name": "_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search._types.CompletionSuggestOption" } } }, { "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L74-L85" }, { "kind": "interface", "inherits": { "type": { "name": "SuggesterBase", "namespace": "_global.search._types" } }, "name": { "name": "CompletionSuggester", "namespace": "_global.search._types" }, "properties": [ { "description": "A value, geo point object, or a geo hash string to filter or boost the suggestion on.", "name": "contexts", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CompletionContext", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CompletionContext", "namespace": "_global.search._types" } } } ] } } }, { "description": "Enables fuzziness, meaning you can have a typo in your search and still get results back.", "name": "fuzzy", "required": false, "type": { "kind": "instance_of", "type": { "name": "SuggestFuzziness", "namespace": "_global.search._types" } } }, { "description": "A regex query that expresses a prefix as a regular expression.", "name": "regex", "required": false, "type": { "kind": "instance_of", "type": { "name": "RegexOptions", "namespace": "_global.search._types" } } }, { "description": "Whether duplicate suggestions should be filtered out.", "name": "skip_duplicates", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L164-L182" }, { "kind": "type_alias", "codegenNames": [ "category", "location" ], "description": "Text or location that we want similar documents for or a lookup to a document's field for the text.", "docId": "document-input-parameters", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-mlt-query#_document_input_parameters", "name": { "name": "Context", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/suggester.ts#L229-L234", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } ] } }, { "kind": "interface", "name": { "name": "DfsKnnProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "vector_operations_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnQueryProfileResult", "namespace": "_global.search._types" } } } }, { "name": "rewrite_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "collector", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnCollectorResult", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L181-L186" }, { "kind": "interface", "name": { "name": "DfsProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "statistics", "required": false, "type": { "kind": "instance_of", "type": { "name": "DfsStatisticsProfile", "namespace": "_global.search._types" } } }, { "name": "knn", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DfsKnnProfile", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L154-L157" }, { "kind": "interface", "name": { "name": "DfsStatisticsBreakdown", "namespace": "_global.search._types" }, "properties": [ { "name": "collection_statistics", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "collection_statistics_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "create_weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "create_weight_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "rewrite", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "rewrite_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "term_statistics", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "term_statistics_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L170-L179" }, { "kind": "interface", "name": { "name": "DfsStatisticsProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { "name": "DfsStatisticsBreakdown", "namespace": "_global.search._types" } } }, { "name": "debug", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DfsStatisticsProfile", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L159-L167" }, { "kind": "interface", "name": { "name": "DirectGenerator", "namespace": "_global.search._types" }, "properties": [ { "description": "The field to fetch the candidate suggestions from.\nNeeds to be set globally or per suggestion.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.\nCan only be `1` or `2`.", "name": "max_edits", "required": false, "serverDefault": 2, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.\nCan improve accuracy at the cost of performance.", "name": "max_inspections", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The maximum threshold in number of documents in which a suggest text token can exist in order to be included.\nThis can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.\nCan be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.\nIf a value higher than 1 is specified, then fractional can not be specified.", "name": "max_term_freq", "required": false, "serverDefault": 0.01, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The minimal threshold in number of documents a suggestion should appear in.\nThis can improve quality by only suggesting high frequency terms.\nCan be specified as an absolute number or as a relative percentage of number of documents.\nIf a value higher than 1 is specified, the number cannot be fractional.", "name": "min_doc_freq", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The minimum length a suggest text term must have in order to be included.", "name": "min_word_length", "required": false, "serverDefault": 4, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer.", "name": "post_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.\nThis filter is applied to the original token before candidates are generated.", "name": "pre_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of minimal prefix characters that must match in order be a candidate suggestions.\nIncreasing this number improves spellcheck performance.", "name": "prefix_length", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum corrections to be returned per suggest text token.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Controls what suggestions are included on the suggestions generated on each shard.", "name": "suggest_mode", "required": false, "serverDefault": "missing", "type": { "kind": "instance_of", "type": { "name": "SuggestMode", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L269-L332" }, { "kind": "interface", "name": { "name": "FetchProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { "name": "FetchProfileBreakdown", "namespace": "_global.search._types" } } }, { "name": "debug", "required": false, "type": { "kind": "instance_of", "type": { "name": "FetchProfileDebug", "namespace": "_global.search._types" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FetchProfile", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L230-L237" }, { "kind": "interface", "name": { "name": "FetchProfileBreakdown", "namespace": "_global.search._types" }, "properties": [ { "name": "load_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "load_source_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "load_stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "load_stored_fields_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "next_reader", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "next_reader_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "process_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "process", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L239-L248" }, { "kind": "interface", "name": { "name": "FetchProfileDebug", "namespace": "_global.search._types" }, "properties": [ { "name": "stored_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "fast_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L250-L253" }, { "kind": "interface", "extDocId": "collapse-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/collapse-search-results", "name": { "name": "FieldCollapse", "namespace": "_global.search._types" }, "properties": [ { "description": "The field to collapse the result set on", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The number of inner hits and their sort order", "name": "inner_hits", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "InnerHits", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InnerHits", "namespace": "_global.search._types" } } } ] } }, { "description": "The number of concurrent requests allowed to retrieve the inner_hits per group", "name": "max_concurrent_group_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/FieldCollapse.ts#L24-L41" }, { "kind": "interface", "name": { "name": "FieldSuggester", "namespace": "_global.search._types" }, "properties": [ { "description": "Provides auto-complete/search-as-you-type functionality.", "name": "completion", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompletionSuggester", "namespace": "_global.search._types" } } }, { "description": "Provides access to word alternatives on a per token basis within a certain string distance.", "name": "phrase", "required": false, "type": { "kind": "instance_of", "type": { "name": "PhraseSuggester", "namespace": "_global.search._types" } } }, { "description": "Suggests terms based on edit distance.", "name": "term", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermSuggester", "namespace": "_global.search._types" } } }, { "containerProperty": true, "description": "Prefix used to search for suggestions.", "name": "prefix", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "containerProperty": true, "description": "A prefix expressed as a regular expression.", "name": "regex", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "containerProperty": true, "description": "The text to use as input for the suggester.\nNeeds to be set globally or per suggestion.", "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L110-L143", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "inherits": { "type": { "name": "HighlightBase", "namespace": "_global.search._types" } }, "name": { "name": "Highlight", "namespace": "_global.search._types" }, "properties": [ { "name": "encoder", "required": false, "type": { "kind": "instance_of", "type": { "name": "HighlighterEncoder", "namespace": "_global.search._types" } } }, { "name": "fields", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "HighlightField", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/highlighting.ts#L152-L155" }, { "kind": "interface", "name": { "name": "HighlightBase", "namespace": "_global.search._types" }, "properties": [ { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "HighlighterType", "namespace": "_global.search._types" } } }, { "description": "A string that contains each boundary character.", "name": "boundary_chars", "required": false, "serverDefault": ".,!? \\t\\n", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "How far to scan for boundary characters.", "name": "boundary_max_scan", "required": false, "serverDefault": 20, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies how to break the highlighted fragments: chars, sentence, or word.\nOnly valid for the unified and fvh highlighters.\nDefaults to `sentence` for the `unified` highlighter. Defaults to `chars` for the `fvh` highlighter.", "name": "boundary_scanner", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoundaryScanner", "namespace": "_global.search._types" } } }, { "description": "Controls which locale is used to search for sentence and word boundaries.\nThis parameter takes a form of a language tag, for example: `\"en-US\"`, `\"fr-FR\"`, `\"ja-JP\"`.", "name": "boundary_scanner_locale", "required": false, "serverDefault": "Locale.ROOT", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "deprecation": { "description": "", "version": "8.8.0" }, "name": "force_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies how text should be broken up in highlight snippets: `simple` or `span`.\nOnly valid for the `plain` highlighter.", "name": "fragmenter", "required": false, "serverDefault": "span", "type": { "kind": "instance_of", "type": { "name": "HighlighterFragmenter", "namespace": "_global.search._types" } } }, { "description": "The size of the highlighted fragment in characters.", "name": "fragment_size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "highlight_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Highlight matches for a query other than the search query.\nThis is especially useful if you use a rescore query because those are not taken into account by highlighting by default.", "name": "highlight_query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "max_fragment_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If set to a non-negative value, highlighting stops at this defined maximum limit.\nThe rest of the text is not processed, thus not highlighted and no error is returned\nThe `max_analyzed_offset` query setting does not override the `index.highlight.max_analyzed_offset` setting, which prevails when it’s set to lower value than the query setting.", "name": "max_analyzed_offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.", "name": "no_match_size", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of fragments to return.\nIf the number of fragments is set to `0`, no fragments are returned.\nInstead, the entire field contents are highlighted and returned.\nThis can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required.\nIf `number_of_fragments` is `0`, `fragment_size` is ignored.", "name": "number_of_fragments", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "options", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Sorts highlighted fragments by score when set to `score`.\nBy default, fragments will be output in the order they appear in the field (order: `none`).\nSetting this option to `score` will output the most relevant fragments first.\nEach highlighter applies its own logic to compute relevancy scores.", "name": "order", "required": false, "serverDefault": "none", "type": { "kind": "instance_of", "type": { "name": "HighlighterOrder", "namespace": "_global.search._types" } } }, { "description": "Controls the number of matching phrases in a document that are considered.\nPrevents the `fvh` highlighter from analyzing too many phrases and consuming too much memory.\nWhen using `matched_fields`, `phrase_limit` phrases per matched field are considered. Raising the limit increases query time and consumes more memory.\nOnly supported by the `fvh` highlighter.", "name": "phrase_limit", "required": false, "serverDefault": 256, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Use in conjunction with `pre_tags` to define the HTML tags to use for the highlighted text.\nBy default, highlighted text is wrapped in `` and `` tags.", "name": "post_tags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Use in conjunction with `post_tags` to define the HTML tags to use for the highlighted text.\nBy default, highlighted text is wrapped in `` and `` tags.", "name": "pre_tags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "By default, only fields that contains a query match are highlighted.\nSet to `false` to highlight all fields.", "name": "require_field_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Set to `styled` to use the built-in tag schema.", "name": "tags_schema", "required": false, "type": { "kind": "instance_of", "type": { "name": "HighlighterTagsSchema", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/highlighting.ts#L47-L150" }, { "kind": "interface", "inherits": { "type": { "name": "HighlightBase", "namespace": "_global.search._types" } }, "name": { "name": "HighlightField", "namespace": "_global.search._types" }, "properties": [ { "name": "fragment_offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "matched_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/highlighting.ts#L192-L195" }, { "kind": "enum", "members": [ { "name": "default" }, { "name": "html" } ], "name": { "name": "HighlighterEncoder", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/highlighting.ts#L157-L160" }, { "kind": "enum", "members": [ { "name": "simple" }, { "name": "span" } ], "name": { "name": "HighlighterFragmenter", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/highlighting.ts#L162-L165" }, { "kind": "enum", "members": [ { "name": "score" } ], "name": { "name": "HighlighterOrder", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/highlighting.ts#L167-L169" }, { "kind": "enum", "members": [ { "name": "styled" } ], "name": { "name": "HighlighterTagsSchema", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/highlighting.ts#L171-L173" }, { "kind": "enum", "isOpen": true, "members": [ { "description": "The `plain` highlighter uses the standard Lucene highlighter", "name": "plain" }, { "codegenName": "fast_vector", "description": "The fvh highlighter uses the Lucene Fast Vector highlighter.", "name": "fvh" }, { "description": "The unified highlighter uses the Lucene Unified Highlighter.", "name": "unified" } ], "name": { "name": "HighlighterType", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/highlighting.ts#L175-L190" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.search._types.Hit" } ], "name": { "name": "Hit", "namespace": "_global.search._types" }, "properties": [ { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "esQuirk": "'_id' is not available when using 'stored_fields: _none_'\non a search request. Otherwise the field is always present on hits.", "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_score", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "Explanation", "namespace": "_global.explain" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "highlight", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } }, { "name": "inner_hits", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "InnerHitsResult", "namespace": "_global.search._types" } } } }, { "name": "matched_queries", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ] } }, { "name": "_nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedIdentity", "namespace": "_global.search._types" } } }, { "name": "_ignored", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "ignored_field_values", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "user_defined_value" } } } }, { "name": "_shard", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search._types.Hit" } } }, { "name": "_rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/hits.ts#L40-L65" }, { "kind": "interface", "generics": [ { "name": "T", "namespace": "_global.search._types.HitsMetadata" } ], "name": { "name": "HitsMetadata", "namespace": "_global.search._types" }, "properties": [ { "description": "Total hit count information, present only if `track_total_hits` wasn't `false` in the search request.", "name": "total", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TotalHits", "namespace": "_global.search._types" } }, { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } ] } }, { "name": "hits", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_global.search._types.HitsMetadata" } } ], "type": { "name": "Hit", "namespace": "_global.search._types" } } } }, { "name": "max_score", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_global/search/_types/hits.ts#L67-L73" }, { "kind": "interface", "name": { "name": "InnerHits", "namespace": "_global.search._types" }, "properties": [ { "description": "The name for the particular inner hit definition in the response.\nUseful when a search request contains multiple inner hits.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The maximum number of hits to return per `inner_hits`.", "name": "size", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Inner hit starting document offset.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } }, { "name": "docvalue_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "name": "explain", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "Highlight", "namespace": "_global.search._types" } } }, { "name": "ignore_unmapped", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "How the inner hits should be sorted per `inner_hits`.\nBy default, inner hits are sorted by score.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/hits.ts#L107-L141" }, { "kind": "interface", "name": { "name": "InnerHitsResult", "namespace": "_global.search._types" }, "properties": [ { "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "user_defined_value" } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/hits.ts#L85-L87" }, { "kind": "interface", "name": { "name": "KnnCollectorResult", "namespace": "_global.search._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnCollectorResult", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L222-L228" }, { "kind": "interface", "name": { "name": "KnnQueryProfileBreakdown", "namespace": "_global.search._types" }, "properties": [ { "name": "advance", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "advance_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_scorer", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_scorer_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "compute_max_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "compute_max_score_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "count_weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "count_weight_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "create_weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "create_weight_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "match", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "match_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "next_doc", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "next_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "score", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "score_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "set_min_competitive_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "set_min_competitive_score_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "shallow_advance", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "shallow_advance_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L199-L220" }, { "kind": "interface", "name": { "name": "KnnQueryProfileResult", "namespace": "_global.search._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { "name": "KnnQueryProfileBreakdown", "namespace": "_global.search._types" } } }, { "name": "debug", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnQueryProfileResult", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L188-L196" }, { "kind": "interface", "name": { "name": "LaplaceSmoothingModel", "namespace": "_global.search._types" }, "properties": [ { "description": "A constant that is added to all counts to balance weights.", "name": "alpha", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L431-L436" }, { "kind": "interface", "name": { "name": "LearningToRank", "namespace": "_global.search._types" }, "properties": [ { "description": "The unique identifier of the trained model uploaded to Elasticsearch", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Named parameters to be passed to the query templates used for feature", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "_global/search/_types/rescoring.ts#L88-L97" }, { "kind": "interface", "name": { "name": "LinearInterpolationSmoothingModel", "namespace": "_global.search._types" }, "properties": [ { "name": "bigram_lambda", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "trigram_lambda", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "unigram_lambda", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L438-L442" }, { "kind": "interface", "name": { "name": "NestedIdentity", "namespace": "_global.search._types" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "_nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedIdentity", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/hits.ts#L89-L93" }, { "kind": "interface", "inherits": { "type": { "name": "SuggestBase", "namespace": "_global.search._types" } }, "name": { "name": "PhraseSuggest", "namespace": "_global.search._types" }, "properties": [ { "name": "options", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "PhraseSuggestOption", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PhraseSuggestOption", "namespace": "_global.search._types" } } } ] } } ], "specLocation": "_global/search/_types/suggester.ts#L58-L63", "variantName": "phrase" }, { "kind": "interface", "name": { "name": "PhraseSuggestCollate", "namespace": "_global.search._types" }, "properties": [ { "description": "Parameters to use if the query is templated.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Returns all suggestions with an extra `collate_match` option indicating whether the generated phrase matched any document.", "name": "prune", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A collate query that is run once for every suggestion.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "PhraseSuggestCollateQuery", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L334-L347" }, { "kind": "interface", "name": { "name": "PhraseSuggestCollateQuery", "namespace": "_global.search._types" }, "properties": [ { "description": "The search template ID.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The query source.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L349-L358" }, { "kind": "interface", "name": { "name": "PhraseSuggestHighlight", "namespace": "_global.search._types" }, "properties": [ { "description": "Use in conjunction with `pre_tag` to define the HTML tags to use for the highlighted text.", "name": "post_tag", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Use in conjunction with `post_tag` to define the HTML tags to use for the highlighted text.", "name": "pre_tag", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L420-L429" }, { "kind": "interface", "name": { "name": "PhraseSuggestOption", "namespace": "_global.search._types" }, "properties": [ { "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "highlighted", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "collate_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L87-L92" }, { "kind": "interface", "inherits": { "type": { "name": "SuggesterBase", "namespace": "_global.search._types" } }, "name": { "name": "PhraseSuggester", "namespace": "_global.search._types" }, "properties": [ { "description": "Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index.", "name": "collate", "required": false, "type": { "kind": "instance_of", "type": { "name": "PhraseSuggestCollate", "namespace": "_global.search._types" } } }, { "description": "Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.\nOnly candidates that score higher than the threshold will be included in the result.", "name": "confidence", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "A list of candidate generators that produce a list of possible terms per term in the given text.", "name": "direct_generator", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DirectGenerator", "namespace": "_global.search._types" } } } }, { "name": "force_unigrams", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Sets max size of the n-grams (shingles) in the field.\nIf the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.\nIf the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.", "name": "gram_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Sets up suggestion highlighting.\nIf not provided, no highlighted field is returned.", "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "PhraseSuggestHighlight", "namespace": "_global.search._types" } } }, { "description": "The maximum percentage of the terms considered to be misspellings in order to form a correction.\nThis method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.", "name": "max_errors", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The likelihood of a term being misspelled even if the term exists in the dictionary.", "name": "real_word_error_likelihood", "required": false, "serverDefault": 0.95, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The separator that is used to separate terms in the bigram field.\nIf not set, the whitespace character is used as a separator.", "name": "separator", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Sets the maximum number of suggested terms to be retrieved from each individual shard.", "name": "shard_size", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).\nThe default model is Stupid Backoff.", "name": "smoothing", "required": false, "type": { "kind": "instance_of", "type": { "name": "SmoothingModelContainer", "namespace": "_global.search._types" } } }, { "description": "The text/query to provide suggestions for.", "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "token_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L360-L418" }, { "kind": "interface", "name": { "name": "PointInTimeReference", "namespace": "_global.search._types" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/PointInTimeReference.ts#L23-L26" }, { "kind": "interface", "name": { "name": "Profile", "namespace": "_global.search._types" }, "properties": [ { "name": "shards", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardProfile", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L101-L103" }, { "kind": "interface", "name": { "name": "QueryBreakdown", "namespace": "_global.search._types" }, "properties": [ { "name": "advance", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "advance_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_scorer", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "build_scorer_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "create_weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "create_weight_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "match", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "match_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "shallow_advance", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "shallow_advance_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "next_doc", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "next_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "score", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "score_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "compute_max_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "compute_max_score_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "count_weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "count_weight_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "set_min_competitive_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "set_min_competitive_score_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L105-L126" }, { "kind": "interface", "name": { "name": "QueryProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "breakdown", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryBreakdown", "namespace": "_global.search._types" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryProfile", "namespace": "_global.search._types" } } } } ], "specLocation": "_global/search/_types/profile.ts#L128-L134" }, { "kind": "interface", "name": { "name": "RegexOptions", "namespace": "_global.search._types" }, "properties": [ { "description": "Optional operators for the regular expression.", "docId": "regexp-syntax", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/regexp-syntax", "name": "flags", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "description": "Maximum number of automaton states required for the query.", "name": "max_determinized_states", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L184-L195" }, { "kind": "interface", "name": { "name": "Rescore", "namespace": "_global.search._types" }, "properties": [ { "containerProperty": true, "name": "window_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "RescoreQuery", "namespace": "_global.search._types" } } }, { "name": "learning_to_rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "LearningToRank", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/rescoring.ts#L25-L38", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "name": { "name": "RescoreQuery", "namespace": "_global.search._types" }, "properties": [ { "codegenName": "Query", "description": "The query to use for rescoring.\nThis query is only run on the Top-K results returned by the `query` and `post_filter` phases.", "name": "rescore_query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Relative importance of the original query versus the rescore query.", "name": "query_weight", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Relative importance of the rescore query versus the original query.", "name": "rescore_query_weight", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Determines how scores are combined.", "name": "score_mode", "required": false, "serverDefault": "total", "type": { "kind": "instance_of", "type": { "name": "ScoreMode", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/rescoring.ts#L40-L62" }, { "kind": "enum", "members": [ { "description": "Average the original score and the rescore query score.", "name": "avg" }, { "description": "Take the max of original score and the rescore query score.", "name": "max" }, { "description": "Take the min of the original score and the rescore query score.", "name": "min" }, { "description": "Multiply the original score by the rescore query score.\nUseful for `function` query rescores.", "name": "multiply" }, { "description": "Add the original score and the rescore query score.", "name": "total" } ], "name": { "name": "ScoreMode", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/rescoring.ts#L64-L86" }, { "kind": "interface", "name": { "name": "SearchProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "collector", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Collector", "namespace": "_global.search._types" } } } }, { "name": "query", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryProfile", "namespace": "_global.search._types" } } } }, { "name": "rewrite_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L136-L140" }, { "kind": "interface", "name": { "name": "SearchRequestBody", "namespace": "_global.search._types" }, "properties": [ { "aliases": [ "aggs" ], "description": "Defines the aggregations that are run as part of the search request.", "extDocId": "search-aggregations", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/aggregations", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Collapses search results the values of the specified field.", "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } }, { "description": "If `true`, the request returns detailed information about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Configuration of search extensions defined by Elasticsearch plugins.", "name": "ext", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "The starting document offset, which must be non-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.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results.", "extDocId": "search-highlight", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/highlighting", "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "Highlight", "namespace": "_global.search._types" } } }, { "description": "Number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.", "name": "track_total_hits", "required": false, "serverDefault": "10000", "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "Boost the `_score` of documents from specified indices.\nThe boost value is the factor by which scores are multiplied.\nA boost value greater than `1.0` increases the score.\nA boost value between `0` and `1.0` decreases the score.", "extDocId": "relevance-scores", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl#relevance-scores", "name": "indices_boost", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } }, { "description": "An array of wildcard (`*`) field patterns.\nThe request returns doc values for field names matching these patterns in the `hits.fields` property of the response.", "extDocId": "docvalue-fields", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#docvalue-fields", "name": "docvalue_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.4.0" } }, "description": "The approximate kNN search to run.", "extDocId": "knn-approximate", "extDocUrl": "https://www.elastic.co/docs/solutions/search/vector/knn#approximate-knn", "name": "knn", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "KnnSearch", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnSearch", "namespace": "_types" } } } ] } }, { "availability": { "stack": { "since": "8.8.0" } }, "description": "The Reciprocal Rank Fusion (RRF) to use.", "name": "rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankContainer", "namespace": "_types" } } }, { "description": "The minimum `_score` for matching documents.\nDocuments with a lower `_score` are not included in search results or results collected by aggregations.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Use the `post_filter` parameter to filter search results.\nThe search hits are filtered after the aggregations are calculated.\nA post filter has no impact on the aggregation results.", "name": "post_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Set to `true` to return detailed timing information about the execution of individual components in a search request.\nNOTE: This is a debugging tool and adds significant overhead to search execution.", "name": "profile", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The search definition using the Query DSL.", "extDocId": "query-dsl", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.", "name": "rescore", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } } } ] } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.14.0", "stability": "stable" } }, "description": "A retriever is a specification to describe top documents returned from a search.\nA retriever replaces other elements of the search API that also return top documents such as `query` and `knn`.", "extDocId": "search-retrievers", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrievers", "name": "retriever", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetrieverContainer", "namespace": "_types" } } }, { "description": "Retrieve a script evaluation (based on different fields) for each hit.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "description": "Used to retrieve the next page of hits using a set of sort values from the previous page.", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } }, { "description": "The number of hits to return, which 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` property.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Split a scrolled search into multiple slices that can be consumed independently.", "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } }, { "description": "A comma-separated list of : pairs.", "extDocId": "sort-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "The source fields that are returned for matching documents.\nThese fields are returned in the `hits._source` property of the search response.\nIf the `stored_fields` property is specified, the `_source` property defaults to `false`.\nOtherwise, it defaults to `true`.", "extDocId": "source-filtering", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#source-filtering", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "An array of wildcard (`*`) field patterns.\nThe request returns values for field names matching these patterns in the `hits.fields` property of the response.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "description": "Defines a suggester that provides similar looking terms based on a provided text.", "name": "suggest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Suggester", "namespace": "_global.search._types" } } }, { "description": "The maximum number of documents to collect for each shard.\nIf a query reaches this limit, Elasticsearch terminates the query early.\nElasticsearch collects documents before sorting.\n\nIMPORTANT: Use with caution.\nElasticsearch applies this property to each shard handling the request.\nWhen possible, let Elasticsearch perform early termination automatically.\nAvoid specifying this property for requests that target data streams with backing indices across multiple data tiers.\n\nIf set to `0` (default), the query does not terminate early.", "name": "terminate_after", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The period of time to wait for a response from each shard.\nIf no response is received before the timeout expires, the request fails and returns an error.\nDefaults to no timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, calculate and return document scores, even if the scores are not used for sorting.", "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request returns the document version as part of a hit.", "name": "version", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request returns sequence number and primary term of the last modification of each hit.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A comma-separated list of stored fields to return as part of a hit.\nIf no fields are specified, no stored fields are included in the response.\nIf this field is specified, the `_source` property defaults to `false`.\nYou can pass `_source: true` to return both source fields and stored fields in the search response.", "extDocId": "stored-fields", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-selected-fields#stored-fields", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Limit the search to a point in time (PIT).\nIf you provide a PIT, you cannot specify an `` in the request path.", "name": "pit", "required": false, "type": { "kind": "instance_of", "type": { "name": "PointInTimeReference", "namespace": "_global.search._types" } } }, { "description": "One or more runtime fields in the search request.\nThese fields take precedence over mapped fields with the same name.", "extDocId": "runtime-search-request", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/mapping/define-runtime-fields-in-search-request", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "The stats groups to associate with the search.\nEach group maintains a statistics aggregation for its associated searches.\nYou can retrieve these stats using the indices stats API.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_global/search/_types/SearchRequestBody.ts#L42-L242" }, { "kind": "interface", "name": { "name": "ShardProfile", "namespace": "_global.search._types" }, "properties": [ { "name": "aggregations", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AggregationProfile", "namespace": "_global.search._types" } } } }, { "name": "cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "dfs", "required": false, "type": { "kind": "instance_of", "type": { "name": "DfsProfile", "namespace": "_global.search._types" } } }, { "name": "fetch", "required": false, "type": { "kind": "instance_of", "type": { "name": "FetchProfile", "namespace": "_global.search._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "searches", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SearchProfile", "namespace": "_global.search._types" } } } }, { "name": "shard_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/profile.ts#L142-L152" }, { "kind": "interface", "name": { "name": "SmoothingModelContainer", "namespace": "_global.search._types" }, "properties": [ { "description": "A smoothing model that uses an additive smoothing where a constant (typically `1.0` or smaller) is added to all counts to balance weights.", "name": "laplace", "required": false, "type": { "kind": "instance_of", "type": { "name": "LaplaceSmoothingModel", "namespace": "_global.search._types" } } }, { "description": "A smoothing model that takes the weighted mean of the unigrams, bigrams, and trigrams based on user supplied weights (lambdas).", "name": "linear_interpolation", "required": false, "type": { "kind": "instance_of", "type": { "name": "LinearInterpolationSmoothingModel", "namespace": "_global.search._types" } } }, { "description": "A simple backoff model that backs off to lower order n-gram models if the higher order count is `0` and discounts the lower order n-gram model by a constant factor.", "name": "stupid_backoff", "required": false, "type": { "kind": "instance_of", "type": { "name": "StupidBackoffSmoothingModel", "namespace": "_global.search._types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L446-L462", "variants": { "kind": "container" } }, { "kind": "type_alias", "codegenNames": [ "fetch", "filter" ], "description": "Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.", "name": { "name": "SourceConfig", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/SourceFilter.ts#L33-L37", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "SourceFilter", "namespace": "_global.search._types" } } ] } }, { "kind": "type_alias", "codegenNames": [ "fetch", "fields" ], "description": "Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.\nUsed as a query parameter along with the `_source_includes` and `_source_excludes` parameters.", "name": { "name": "SourceConfigParam", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/SourceFilter.ts#L39-L45", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } ] } }, { "kind": "interface", "name": { "name": "SourceFilter", "namespace": "_global.search._types" }, "properties": [ { "aliases": [ "exclude" ], "name": "excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "aliases": [ "include" ], "name": "includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "shortcutProperty": "includes", "specLocation": "_global/search/_types/SourceFilter.ts#L23-L31" }, { "kind": "enum", "members": [ { "description": "Based on the Damerau-Levenshtein algorithm, but highly optimized for comparing string distance for terms inside the index.", "name": "internal" }, { "description": "String distance algorithm based on Damerau-Levenshtein algorithm.", "name": "damerau_levenshtein" }, { "description": "String distance algorithm based on the Levenshtein edit distance algorithm.", "name": "levenshtein" }, { "description": "String distance algorithm based on Jaro-Winkler algorithm.", "name": "jaro_winkler" }, { "description": "String distance algorithm based on character n-grams.", "name": "ngram" } ], "name": { "name": "StringDistance", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/suggester.ts#L473-L494" }, { "kind": "interface", "name": { "name": "StupidBackoffSmoothingModel", "namespace": "_global.search._types" }, "properties": [ { "description": "A constant factor that the lower order n-gram model is discounted by.", "name": "discount", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L464-L469" }, { "kind": "type_alias", "generics": [ { "name": "TDocument", "namespace": "_global.search._types.Suggest" } ], "name": { "name": "Suggest", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/suggester.ts#L35-L41", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search._types.Suggest" } } ], "type": { "name": "CompletionSuggest", "namespace": "_global.search._types" } }, { "kind": "instance_of", "type": { "name": "PhraseSuggest", "namespace": "_global.search._types" } }, { "kind": "instance_of", "type": { "name": "TermSuggest", "namespace": "_global.search._types" } } ] }, "variants": { "kind": "external_tag" } }, { "kind": "interface", "name": { "name": "SuggestBase", "namespace": "_global.search._types" }, "properties": [ { "name": "length", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L43-L47" }, { "kind": "interface", "name": { "name": "SuggestFuzziness", "namespace": "_global.search._types" }, "properties": [ { "description": "The fuzziness factor.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzziness", "required": false, "serverDefault": "AUTO", "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Minimum length of the input before fuzzy suggestions are returned.", "name": "min_length", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum length of the input, which is not checked for fuzzy alternatives.", "name": "prefix_length", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If set to `true`, transpositions are counted as one change instead of two.", "name": "transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.\nThis is slightly slower than raw bytes.", "name": "unicode_aware", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L197-L225" }, { "kind": "enum", "members": [ { "description": "Sort by score first, then document frequency and then the term itself.", "name": "score" }, { "description": "Sort by document frequency first, then similarity score and then the term itself.", "name": "frequency" } ], "name": { "name": "SuggestSort", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/suggester.ts#L496-L505" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "FieldSuggester", "namespace": "_global.search._types" } } ], "meta": { "description": "The named suggesters", "fieldname": "suggesters" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "name": { "name": "Suggester", "namespace": "_global.search._types" }, "properties": [ { "description": "Global suggest text, to avoid repetition when the same text is used in several suggesters", "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L102-L108" }, { "kind": "interface", "name": { "name": "SuggesterBase", "namespace": "_global.search._types" }, "properties": [ { "description": "The field to fetch the candidate suggestions from.\nNeeds to be set globally or per suggestion.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The analyzer to analyze the suggest text with.\nDefaults to the search analyzer of the suggest field.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum corrections to be returned per suggest text token.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/suggester.ts#L145-L160" }, { "kind": "interface", "inherits": { "type": { "name": "SuggestBase", "namespace": "_global.search._types" } }, "name": { "name": "TermSuggest", "namespace": "_global.search._types" }, "properties": [ { "name": "options", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TermSuggestOption", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TermSuggestOption", "namespace": "_global.search._types" } } } ] } } ], "specLocation": "_global/search/_types/suggester.ts#L65-L70", "variantName": "term" }, { "kind": "interface", "name": { "name": "TermSuggestOption", "namespace": "_global.search._types" }, "properties": [ { "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "freq", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "highlighted", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "collate_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L94-L100" }, { "kind": "interface", "inherits": { "type": { "name": "SuggesterBase", "namespace": "_global.search._types" } }, "name": { "name": "TermSuggester", "namespace": "_global.search._types" }, "properties": [ { "name": "lowercase_terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.\nCan only be `1` or `2`.", "name": "max_edits", "required": false, "serverDefault": 2, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.\nCan improve accuracy at the cost of performance.", "name": "max_inspections", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum threshold in number of documents in which a suggest text token can exist in order to be included.\nCan be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.\nIf a value higher than 1 is specified, then fractional can not be specified.", "name": "max_term_freq", "required": false, "serverDefault": 0.01, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The minimal threshold in number of documents a suggestion should appear in.\nThis can improve quality by only suggesting high frequency terms.\nCan be specified as an absolute number or as a relative percentage of number of documents.\nIf a value higher than 1 is specified, then the number cannot be fractional.", "name": "min_doc_freq", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The minimum length a suggest text term must have in order to be included.", "name": "min_word_length", "required": false, "serverDefault": 4, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of minimal prefix characters that must match in order be a candidate for suggestions.\nIncreasing this number improves spellcheck performance.", "name": "prefix_length", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Sets the maximum number of suggestions to be retrieved from each individual shard.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Defines how suggestions should be sorted per suggest text term.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "SuggestSort", "namespace": "_global.search._types" } } }, { "description": "The string distance implementation to use for comparing how similar suggested terms are.", "name": "string_distance", "required": false, "serverDefault": "internal", "type": { "kind": "instance_of", "type": { "name": "StringDistance", "namespace": "_global.search._types" } } }, { "description": "Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested.", "name": "suggest_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SuggestMode", "namespace": "_types" } } }, { "description": "The suggest text.\nNeeds to be set globally or per suggestion.", "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_global/search/_types/suggester.ts#L507-L569" }, { "kind": "interface", "name": { "name": "TotalHits", "namespace": "_global.search._types" }, "properties": [ { "name": "relation", "required": true, "type": { "kind": "instance_of", "type": { "name": "TotalHitsRelation", "namespace": "_global.search._types" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/search/_types/hits.ts#L95-L98" }, { "kind": "enum", "members": [ { "description": "Accurate", "name": "eq" }, { "description": "Lower bound, including returned events or sequences", "name": "gte" } ], "name": { "name": "TotalHitsRelation", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/hits.ts#L100-L105" }, { "kind": "type_alias", "codegenNames": [ "enabled", "count" ], "description": "Number of hits matching the query to count accurately. If true, the exact\nnumber of hits is returned at the cost of some performance. If false, the\nresponse does not include the total number of hits matching the query.\nDefaults to 10,000 hits.", "name": { "name": "TrackHits", "namespace": "_global.search._types" }, "specLocation": "_global/search/_types/hits.ts#L143-L151", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ] } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Sub-aggregations for the geotile_grid.\n\nIt supports the following aggregation types:\n\n- `avg`\n- `boxplot`\n- `cardinality`\n- `extended stats`\n- `max`\n- `median absolute deviation`\n- `min`\n- `percentile`\n- `percentile-rank`\n- `stats`\n- `sum`\n- `value count`\n\nThe aggregation names can't start with `_mvt_`. The `_mvt_` prefix is reserved for internal aggregations.", "name": "aggs", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "The size, in pixels, of a clipping buffer outside the tile. This allows renderers\nto avoid outline artifacts from geometries that extend past the extent of the tile.", "name": "buffer", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `false`, the meta layer's feature is the bounding box of the tile.\nIf `true`, the meta layer's feature is a bounding box resulting from a\n`geo_bounds` aggregation. The aggregation runs on values that intersect\nthe `//` tile with `wrap_longitude` set to `false`. The resulting\nbounding box may be larger than the vector tile.", "name": "exact_bounds", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The size, in pixels, of a side of the tile. Vector tiles are square with equal sides.", "name": "extent", "required": false, "serverDefault": 4096, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The fields to return in the `hits` layer.\nIt supports wildcards (`*`).\nThis parameter does not support fields with array values. Fields with array\nvalues may return inconsistent results.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The aggregation used to create a grid for the `field`.", "name": "grid_agg", "required": false, "type": { "kind": "instance_of", "type": { "name": "GridAggregationType", "namespace": "_global.search_mvt._types" } } }, { "description": "Additional zoom levels available through the aggs layer. For example, if `` is `7`\nand `grid_precision` is `8`, you can zoom in up to level 15. Accepts 0-8. If 0, results\ndon't include the aggs layer.", "name": "grid_precision", "required": false, "serverDefault": 8, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Determines the geometry type for features in the aggs layer. In the aggs layer,\neach feature represents a `geotile_grid` cell. If `grid, each feature is a polygon\nof the cells bounding box. If `point`, each feature is a Point that is the centroid\nof the cell.", "name": "grid_type", "required": false, "serverDefault": "grid", "type": { "kind": "instance_of", "type": { "name": "GridType", "namespace": "_global.search_mvt._types" } } }, { "description": "The query DSL used to filter documents for the search.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Defines one or more runtime fields in the search request. These fields take\nprecedence over mapped fields with the same name.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "The maximum number of features to return in the hits layer. Accepts 0-10000.\nIf 0, results don't include the hits layer.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Sort the features in the hits layer. By default, the API calculates a bounding\nbox for each feature. It sorts features based on this box's diagonal length,\nfrom longest to shortest.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "The number of hits matching the query to count accurately. If `true`, the exact number\nof hits is returned at the cost of some performance. If `false`, the response does\nnot include the total number of hits matching the query.", "name": "track_total_hits", "required": false, "serverDefault": "10000", "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "If `true`, the hits and aggs layers will contain additional point features representing\nsuggested label positions for the original features.\n\n* `Point` and `MultiPoint` features will have one of the points selected.\n* `Polygon` and `MultiPolygon` features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree.\n* `LineString` features will likewise provide a roughly central point selected from the triangle-tree.\n* The aggregation results will provide one central point for each aggregation bucket.\n\nAll attributes from the original features will also be copied to the new label features.\nIn addition, the new features will be distinguishable using the tag `_mvt_label_position`.", "name": "with_labels", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Search a vector tile.\n\nSearch a vector tile for geospatial values.\nBefore using this API, you should be familiar with the Mapbox vector tile specification.\nThe API returns results as a binary mapbox vector tile.\n\nInternally, Elasticsearch translates a vector tile search API request into a search containing:\n\n* A `geo_bounding_box` query on the ``. The query uses the `//` tile as a bounding box.\n* A `geotile_grid` or `geohex_grid` aggregation on the ``. The `grid_agg` parameter determines the aggregation type. The aggregation uses the `//` tile as a bounding box.\n* Optionally, a `geo_bounds` aggregation on the ``. The search only includes this aggregation if the `exact_bounds` parameter is `true`.\n* If the optional parameter `with_labels` is `true`, the internal search will include a dynamic runtime field that calls the `getLabelPosition` function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label.\n\nFor example, Elasticsearch may translate a vector tile search API request with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of `true` into the following search\n\n```\nGET my-index/_search\n{\n \"size\": 10000,\n \"query\": {\n \"geo_bounding_box\": {\n \"my-geo-field\": {\n \"top_left\": {\n \"lat\": -40.979898069620134,\n \"lon\": -45\n },\n \"bottom_right\": {\n \"lat\": -66.51326044311186,\n \"lon\": 0\n }\n }\n }\n },\n \"aggregations\": {\n \"grid\": {\n \"geotile_grid\": {\n \"field\": \"my-geo-field\",\n \"precision\": 11,\n \"size\": 65536,\n \"bounds\": {\n \"top_left\": {\n \"lat\": -40.979898069620134,\n \"lon\": -45\n },\n \"bottom_right\": {\n \"lat\": -66.51326044311186,\n \"lon\": 0\n }\n }\n }\n },\n \"bounds\": {\n \"geo_bounds\": {\n \"field\": \"my-geo-field\",\n \"wrap_longitude\": false\n }\n }\n }\n}\n```\n\nThe API returns results as a binary Mapbox vector tile.\nMapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers:\n\n* A `hits` layer containing a feature for each `` value matching the `geo_bounding_box` query.\n* An `aggs` layer containing a feature for each cell of the `geotile_grid` or `geohex_grid`. The layer only contains features for cells with matching data.\n* A meta layer containing:\n * A feature containing a bounding box. By default, this is the bounding box of the tile.\n * Value ranges for any sub-aggregations on the `geotile_grid` or `geohex_grid`.\n * Metadata for the search.\n\nThe API only returns features that can display at its zoom level.\nFor example, if a polygon feature has no area at its zoom level, the API omits it.\nThe API returns errors as UTF-8 encoded JSON.\n\nIMPORTANT: You can specify several options for this API as either a query parameter or request body parameter.\nIf you specify both parameters, the query parameter takes precedence.\n\n**Grid precision for geotile**\n\nFor a `grid_agg` of `geotile`, you can use cells in the `aggs` layer as tiles for lower zoom levels.\n`grid_precision` represents the additional zoom levels available through these cells. The final precision is computed by as follows: ` + grid_precision`.\nFor example, if `` is 7 and `grid_precision` is 8, then the `geotile_grid` aggregation will use a precision of 15.\nThe maximum final precision is 29.\nThe `grid_precision` also determines the number of cells for the grid as follows: `(2^grid_precision) x (2^grid_precision)`.\nFor example, a value of 8 divides the tile into a grid of 256 x 256 cells.\nThe `aggs` layer only contains features for cells with matching data.\n\n**Grid precision for geohex**\n\nFor a `grid_agg` of `geohex`, Elasticsearch uses `` and `grid_precision` to calculate a final precision as follows: ` + grid_precision`.\n\nThis precision determines the H3 resolution of the hexagonal cells produced by the `geohex` aggregation.\nThe following table maps the H3 resolution for each precision.\nFor example, if `` is 3 and `grid_precision` is 3, the precision is 6.\nAt a precision of 6, hexagonal cells have an H3 resolution of 2.\nIf `` is 3 and `grid_precision` is 4, the precision is 7.\nAt a precision of 7, hexagonal cells have an H3 resolution of 3.\n\n| Precision | Unique tile bins | H3 resolution | Unique hex bins |\tRatio |\n| --------- | ---------------- | ------------- | ----------------| ----- |\n| 1 | 4 | 0 | 122 | 30.5 |\n| 2 | 16 | 0 | 122 | 7.625 |\n| 3 | 64 | 1 | 842 | 13.15625 |\n| 4 | 256 | 1 | 842 | 3.2890625 |\n| 5 | 1024 | 2 | 5882 | 5.744140625 |\n| 6 | 4096 | 2 | 5882 | 1.436035156 |\n| 7 | 16384 | 3 | 41162 | 2.512329102 |\n| 8 | 65536 | 3 | 41162 | 0.6280822754 |\n| 9 | 262144 | 4 | 288122 | 1.099098206 |\n| 10 | 1048576 | 4 | 288122 | 0.2747745514 |\n| 11 | 4194304 | 5 | 2016842 | 0.4808526039 |\n| 12 | 16777216 | 6 | 14117882 | 0.8414913416 |\n| 13 | 67108864 | 6 | 14117882 | 0.2103728354 |\n| 14 | 268435456 | 7 | 98825162 | 0.3681524172 |\n| 15 | 1073741824 | 8 | 691776122 | 0.644266719 |\n| 16 | 4294967296 | 8 | 691776122 | 0.1610666797 |\n| 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 |\n| 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 |\n| 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 |\n| 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 |\n| 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 |\n| 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 |\n| 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 |\n| 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 |\n| 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 |\n| 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 |\n| 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 |\n| 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 |\n| 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 |\n\nHexagonal cells don't align perfectly on a vector tile.\nSome cells may intersect more than one vector tile.\nTo compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level.\nElasticsearch uses the H3 resolution that is closest to the corresponding geotile density.", "examples": { "SearchMvtRequestExample1": { "description": "Run `GET museums/_mvt/location/13/4207/2692` to search an index for `location` values that intersect the `13/4207/2692` vector tile.\n", "value": "{\n \"grid_agg\": \"geotile\",\n \"grid_precision\": 2,\n \"fields\": [\n \"name\",\n \"price\"\n ],\n \"query\": {\n \"term\": {\n \"included\": true\n }\n },\n \"aggs\": {\n \"min_price\": {\n \"min\": {\n \"field\": \"price\"\n }\n },\n \"max_price\": {\n \"max\": {\n \"field\": \"price\"\n }\n },\n \"avg_price\": {\n \"avg\": {\n \"field\": \"price\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.search_mvt" }, "path": [ { "description": "Comma-separated list of data streams, indices, or aliases to search", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Field containing geospatial data to return", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Zoom level for the vector tile to search", "name": "zoom", "required": true, "type": { "kind": "instance_of", "type": { "name": "ZoomLevel", "namespace": "_global.search_mvt._types" } } }, { "description": "X coordinate for the vector tile to search", "name": "x", "required": true, "type": { "kind": "instance_of", "type": { "name": "Coordinate", "namespace": "_global.search_mvt._types" } } }, { "description": "Y coordinate for the vector tile to search", "name": "y", "required": true, "type": { "kind": "instance_of", "type": { "name": "Coordinate", "namespace": "_global.search_mvt._types" } } } ], "query": [ { "description": "If `false`, the meta layer's feature is the bounding box of the tile.\nIf true, the meta layer's feature is a bounding box resulting from a\ngeo_bounds aggregation. The aggregation runs on values that intersect\nthe // tile with wrap_longitude set to false. The resulting\nbounding box may be larger than the vector tile.", "name": "exact_bounds", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The size, in pixels, of a side of the tile. Vector tiles are square with equal sides.", "name": "extent", "required": false, "serverDefault": 4096, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Aggregation used to create a grid for `field`.", "name": "grid_agg", "required": false, "type": { "kind": "instance_of", "type": { "name": "GridAggregationType", "namespace": "_global.search_mvt._types" } } }, { "description": "Additional zoom levels available through the aggs layer. For example, if is 7\nand grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results\ndon't include the aggs layer.", "name": "grid_precision", "required": false, "serverDefault": 8, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Determines the geometry type for features in the aggs layer. In the aggs layer,\neach feature represents a geotile_grid cell. If 'grid' each feature is a Polygon\nof the cells bounding box. If 'point' each feature is a Point that is the centroid\nof the cell.", "name": "grid_type", "required": false, "serverDefault": "grid", "type": { "kind": "instance_of", "type": { "name": "GridType", "namespace": "_global.search_mvt._types" } } }, { "description": "Maximum number of features to return in the hits layer. Accepts 0-10000.\nIf 0, results don't include the hits layer.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, the hits and aggs layers will contain additional point features representing\nsuggested label positions for the original features.\n\n* `Point` and `MultiPoint` features will have one of the points selected.\n* `Polygon` and `MultiPolygon` features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree.\n* `LineString` features will likewise provide a roughly central point selected from the triangle-tree.\n* The aggregation results will provide one central point for each aggregation bucket.\n\nAll attributes from the original features will also be copied to the new label features.\nIn addition, the new features will be distinguishable using the tag `_mvt_label_position`.", "name": "with_labels", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search_mvt/SearchMvtRequest.ts#L33-L373" }, { "kind": "response", "body": { "kind": "value", "codegenName": "vector_tiles", "value": { "kind": "instance_of", "type": { "name": "MapboxVectorTiles", "namespace": "_types" } } }, "examples": { "SearchMvtResponseExample1": { "description": "A successful response from `GET museums/_mvt/location/13/4207/2692`. It returns results as a binary vector tile. When decoded into JSON, the tile contains the following data.\n", "value": "{\n \"hits\": {\n \"extent\": 4096,\n \"version\": 2,\n \"features\": [\n {\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 3208,\n 3864\n ]\n },\n \"properties\": {\n \"_id\": \"1\",\n \"_index\": \"museums\",\n \"name\": \"NEMO Science Museum\",\n \"price\": 1750\n },\n \"type\": 1\n },\n {\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 3429,\n 3496\n ]\n },\n \"properties\": {\n \"_id\": \"3\",\n \"_index\": \"museums\",\n \"name\": \"Nederlands Scheepvaartmuseum\",\n \"price\": 1650\n },\n \"type\": 1\n },\n {\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 3429,\n 3496\n ]\n },\n \"properties\": {\n \"_id\": \"4\",\n \"_index\": \"museums\",\n \"name\": \"Amsterdam Centre for Architecture\",\n \"price\": 0\n },\n \"type\": 1\n }\n ]\n },\n \"aggs\": {\n \"extent\": 4096,\n \"version\": 2,\n \"features\": [\n {\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [\n 3072,\n 3072\n ],\n [\n 4096,\n 3072\n ],\n [\n 4096,\n 4096\n ],\n [\n 3072,\n 4096\n ],\n [\n 3072,\n 3072\n ]\n ]\n ]\n },\n \"properties\": {\n \"_count\": 3,\n \"max_price.value\": 1750.0,\n \"min_price.value\": 0.0,\n \"avg_price.value\": 1133.3333333333333\n },\n \"type\": 3\n }\n ]\n },\n \"meta\": {\n \"extent\": 4096,\n \"version\": 2,\n \"features\": [\n {\n \"geometry\": {\n \"type\": \"Polygon\",\n \"coordinates\": [\n [\n [\n 0,\n 0\n ],\n [\n 4096,\n 0\n ],\n [\n 4096,\n 4096\n ],\n [\n 0,\n 4096\n ],\n [\n 0,\n 0\n ]\n ]\n ]\n },\n \"properties\": {\n \"_shards.failed\": 0,\n \"_shards.skipped\": 0,\n \"_shards.successful\": 1,\n \"_shards.total\": 1,\n \"aggregations._count.avg\": 3.0,\n \"aggregations._count.count\": 1,\n \"aggregations._count.max\": 3.0,\n \"aggregations._count.min\": 3.0,\n \"aggregations._count.sum\": 3.0,\n \"aggregations.avg_price.avg\": 1133.3333333333333,\n \"aggregations.avg_price.count\": 1,\n \"aggregations.avg_price.max\": 1133.3333333333333,\n \"aggregations.avg_price.min\": 1133.3333333333333,\n \"aggregations.avg_price.sum\": 1133.3333333333333,\n \"aggregations.max_price.avg\": 1750.0,\n \"aggregations.max_price.count\": 1,\n \"aggregations.max_price.max\": 1750.0,\n \"aggregations.max_price.min\": 1750.0,\n \"aggregations.max_price.sum\": 1750.0,\n \"aggregations.min_price.avg\": 0.0,\n \"aggregations.min_price.count\": 1,\n \"aggregations.min_price.max\": 0.0,\n \"aggregations.min_price.min\": 0.0,\n \"aggregations.min_price.sum\": 0.0,\n \"hits.max_score\": 0.0,\n \"hits.total.relation\": \"eq\",\n \"hits.total.value\": 3,\n \"timed_out\": false,\n \"took\": 2\n },\n \"type\": 3\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "_global.search_mvt" }, "specLocation": "_global/search_mvt/SearchMvtResponse.ts#L22-L25" }, { "kind": "type_alias", "name": { "name": "Coordinate", "namespace": "_global.search_mvt._types" }, "specLocation": "_global/search_mvt/_types/Coordinate.ts#L22-L22", "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "kind": "enum", "members": [ { "name": "geotile" }, { "name": "geohex" } ], "name": { "name": "GridAggregationType", "namespace": "_global.search_mvt._types" }, "specLocation": "_global/search_mvt/_types/GridType.ts#L30-L33" }, { "kind": "enum", "members": [ { "name": "grid" }, { "name": "point" }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "centroid" } ], "name": { "name": "GridType", "namespace": "_global.search_mvt._types" }, "specLocation": "_global/search_mvt/_types/GridType.ts#L20-L28" }, { "kind": "type_alias", "name": { "name": "ZoomLevel", "namespace": "_global.search_mvt._types" }, "specLocation": "_global/search_mvt/_types/ZoomLevel.ts#L22-L22", "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the search shards.\n\nGet the indices and shards that a search request would be run against.\nThis information can be useful for working out issues or planning optimizations with routing and shard preferences.\nWhen filtered aliases are used, the filter is returned as part of the `indices` section.\n\nIf the Elasticsearch security features are enabled, you must have the `view_index_metadata` or `manage` index privilege for the target data stream, index, or alias.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.search_shards" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).\nTo search all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request retrieves information from the local node only.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.\nIT can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } } ], "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L100" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "SearchShardsNodeAttributes", "namespace": "_global.search_shards" } } } }, { "name": "shards", "required": true, "type": { "kind": "array_of", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeShard", "namespace": "_types" } } } } }, { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ShardStoreIndex", "namespace": "_global.search_shards" } } } } ] }, "examples": { "SearchShardsResponseExample1": { "description": "An abbreviated response from `GET /my-index-000001/_search_shards`.", "value": "{\n \"nodes\": {},\n \"indices\": {\n \"my-index-000001\": { }\n },\n \"shards\": [\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 0,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"0TvkCyF7TAmM1wHP4a42-A\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 1,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"fMju3hd1QHWmWrIgFnI4Ww\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 2,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"Nwl0wbMBTHCWjEEbGYGapg\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 3,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"bU_KLGJISbW0RejwnwDPKw\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 4,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"DMs7_giNSwmdqVukF7UydA\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ]\n ]\n }" } }, "name": { "name": "Response", "namespace": "_global.search_shards" }, "specLocation": "_global/search_shards/SearchShardsResponse.ts#L34-L40" }, { "kind": "interface", "name": { "name": "SearchShardsNodeAttributes", "namespace": "_global.search_shards" }, "properties": [ { "description": "The human-readable identifier of the node.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } }, { "description": "The ephemeral ID of the node.", "name": "ephemeral_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The host and port where transport HTTP connections are accepted.", "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.3.0" } }, "name": "external_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Lists node attributes.", "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "roles", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeRoles", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "min_index_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_index_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/search_shards/SearchShardsResponse.ts#L42-L60" }, { "kind": "interface", "name": { "name": "ShardStoreIndex", "namespace": "_global.search_shards" }, "properties": [ { "name": "aliases", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } }, { "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_global/search_shards/SearchShardsResponse.ts#L62-L65" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "If `true`, returns detailed information about score calculation as part of each hit.\nIf you specify both this and the `explain` query parameter, the API uses only the query parameter.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The ID of the search template to use. If no `source` is specified,\nthis parameter is required.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Key-value pairs used to replace Mustache variables in the template.\nThe key is the variable name.\nThe value is the variable value.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "If `true`, the query execution is profiled.", "name": "profile", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "An inline search template. Supports the same parameters as the search API's\nrequest body. It also supports Mustache variables. If no `id` is specified, this\nparameter is required.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } } ] }, "description": "Run a search with a search template.", "examples": { "SearchTemplateRequestExample1": { "description": "Run `GET my-index/_search/template` to run a search with a search template.\n", "value": "{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"hello world\",\n \"from\": 0,\n \"size\": 10\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.search_template" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, network round-trips are minimized for cross-cluster search requests.", "name": "ccs_minimize_roundtrips", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, the response includes additional details about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the query execution is profiled.", "name": "profile", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Specifies how long a consistent view of the index\nshould be maintained for scrolled search.", "name": "scroll", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The type of the search operation.", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.0.0" } }, "description": "If `true`, `hits.total` is rendered as an integer in the response.\nIf `false`, it is rendered as an object.", "name": "rest_total_hits_as_int", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response prefixes aggregation and suggester names with their respective types.", "name": "typed_keys", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/search_template/SearchTemplateRequest.ts#L33-L154" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search_template.Response" } } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } }, { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } } }, { "name": "_clusters", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterStatistics", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "max_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "num_reduce_phases", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "Profile", "namespace": "_global.search._types" } } }, { "name": "pit_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } }, { "name": "suggest", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "SuggestionName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.search_template.Response" } } ], "type": { "name": "Suggest", "namespace": "_global.search._types" } } } } }, { "name": "terminated_early", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "generics": [ { "name": "TDocument", "namespace": "_global.search_template.Response" } ], "name": { "name": "Response", "namespace": "_global.search_template" }, "specLocation": "_global/search_template/SearchTemplateResponse.ts#L30-L48" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The string to match at the start of indexed terms. If not provided, all terms in the field are considered.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The number of matching terms to return.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum length of time to spend collecting results.\nIf the timeout is exceeded the `complete` flag set to `false` in the response and the results may be partial or empty.", "name": "timeout", "required": false, "serverDefault": "1s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "When `true`, the provided search string is matched against index terms without case sensitivity.", "name": "case_insensitive", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Filter an index shard if the provided query rewrites to `match_none`.", "docId": "query-dsl", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": "index_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "The string to match at the start of indexed terms.\nIf it is not provided, all terms in the field are considered.\n\n> info\n> The prefix string cannot be larger than the largest possible keyword value, which is Lucene's term byte-length limit of 32766.", "name": "string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The string after which terms in the index should be returned.\nIt allows for a form of pagination if the last result from one request is passed as the `search_after` parameter for a subsequent request.", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Get terms in an index.\n\nDiscover terms that match a partial string in an index.\nThis API is designed for low-latency look-ups used in auto-complete scenarios.\n\n> info\n> The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents.", "examples": { "TermsEnumRequestExample1": { "description": "Run `POST stackoverflow/_terms_enum`.", "value": "{\n \"field\" : \"tags\",\n \"string\" : \"kiba\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.terms_enum" }, "path": [ { "description": "A comma-separated list of data streams, indices, and index aliases to search.\nWildcard (`*`) expressions are supported.\nTo search all data streams or indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "_global/terms_enum/TermsEnumRequest.ts#L26-L93" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "terms", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "If `false`, the returned terms set may be incomplete and should be treated as approximate.\nThis can occur due to a few reasons, such as a request timeout or a node error.", "name": "complete", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "TermsEnumResponseExample1": { "description": "A successful response from `POST stackoverflow/_terms_enum`.", "value": "{\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"terms\": [\n \"kibana\"\n ],\n \"complete\" : true\n}" } }, "name": { "name": "Response", "namespace": "_global.terms_enum" }, "specLocation": "_global/terms_enum/TermsEnumResponse.ts#L22-L32" }, { "kind": "interface", "name": { "name": "FieldStatistics", "namespace": "_global.termvectors" }, "properties": [ { "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sum_doc_freq", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "sum_ttf", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_global/termvectors/types.ts#L28-L32" }, { "kind": "interface", "name": { "name": "Filter", "namespace": "_global.termvectors" }, "properties": [ { "description": "Ignore words which occur in more than this many docs.\nDefaults to unbounded.", "name": "max_doc_freq", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of terms that must be returned per field.", "name": "max_num_terms", "required": false, "serverDefault": 25, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Ignore words with more than this frequency in the source doc.\nIt defaults to unbounded.", "name": "max_term_freq", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum word length above which words will be ignored.\nDefaults to unbounded.", "name": "max_word_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Ignore terms which do not occur in at least this many docs.", "name": "min_doc_freq", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Ignore words with less than this frequency in the source doc.", "name": "min_term_freq", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum word length below which words will be ignored.", "name": "min_word_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/termvectors/types.ts#L49-L86" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "An artificial document (a document not present in the index) for which you want to retrieve term vectors.", "name": "doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.termvectors.Request" } } }, { "description": "Filter terms based on their tf-idf scores.\nThis could be useful in order find out a good characteristic vector of a document.\nThis feature works in a similar manner to the second phase of the More Like This Query.", "extDocId": "query-dsl-mlt-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-mlt-query", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "Filter", "namespace": "_global.termvectors" } } }, { "description": "Override the default per-field analyzer.\nThis is useful in order to generate term vectors in any fashion, especially when using artificial documents.\nWhen providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated.", "name": "per_field_analyzer", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A list of fields to include in the statistics.\nIt is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, the response includes:\n\n* The document count (how many documents contain this field).\n* The sum of document frequencies (the sum of document frequencies for all terms in this field).\n* The sum of total term frequencies (the sum of total term frequencies of each term in this field).", "name": "field_statistics", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term offsets.", "name": "offsets", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term payloads.", "name": "payloads", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term positions.", "name": "positions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes:\n\n* The total term frequency (how often a term occurs in all documents).\n* The document frequency (the number of documents containing the current term).\n\nBy default these values are not returned since term statistics can have a serious performance impact.", "name": "term_statistics", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `true`, returns the document version as part of a hit.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ] }, "description": "Get term vector information.\n\nGet information and statistics about terms in the fields of a particular document.\n\nYou can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request.\nYou can specify the fields you are interested in through the `fields` parameter or by adding the fields to the request body.\nFor example:\n\n```\nGET /my-index-000001/_termvectors/1?fields=message\n```\n\nFields can be specified using wildcards, similar to the multi match query.\n\nTerm vectors are real-time by default, not near real-time.\nThis can be changed by setting `realtime` parameter to `false`.\n\nYou can request three types of values: _term information_, _term statistics_, and _field statistics_.\nBy default, all term information and field statistics are returned for all fields but term statistics are excluded.\n\n**Term information**\n\n* term frequency in the field (always returned)\n* term positions (`positions: true`)\n* start and end offsets (`offsets: true`)\n* term payloads (`payloads: true`), as base64 encoded bytes\n\nIf the requested information wasn't stored in the index, it will be computed on the fly if possible.\nAdditionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user.\n\n> warn\n> Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16.\n\n**Behaviour**\n\nThe term and field statistics are not accurate.\nDeleted documents are not taken into account.\nThe information is only retrieved for the shard the requested document resides in.\nThe term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context.\nBy default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected.\nUse `routing` only to hit a particular shard.", "examples": { "TermVectorsRequestExample1": { "description": "Run `GET /my-index-000001/_termvectors/1` to return all information and statistics for field `text` in document 1.\n", "summary": "Return stored term vectors", "value": "{\n \"fields\" : [\"text\"],\n \"offsets\" : true,\n \"payloads\" : true,\n \"positions\" : true,\n \"term_statistics\" : true,\n \"field_statistics\" : true\n}" }, "TermVectorsRequestExample2": { "description": "Run `GET /my-index-000001/_termvectors/1` to set per-field analyzers. A different analyzer than the one at the field may be provided by using the `per_field_analyzer` parameter.\n", "summary": "Per-field analyzer", "value": "{\n \"doc\" : {\n \"fullname\" : \"John Doe\",\n \"text\" : \"test test test\"\n },\n \"fields\": [\"fullname\"],\n \"per_field_analyzer\" : {\n \"fullname\": \"keyword\"\n }\n}" }, "TermVectorsRequestExample3": { "description": "Run `GET /imdb/_termvectors` to filter the terms returned based on their tf-idf scores. It returns the three most \"interesting\" keywords from the artificial document having the given \"plot\" field value. Notice that the keyword \"Tony\" or any stop words are not part of the response, as their tf-idf must be too low.\n", "summary": "Terms filtering", "value": "{\n \"doc\": {\n \"plot\": \"When wealthy industrialist Tony Stark is forced to build an armored suit after a life-threatening incident, he ultimately decides to use its technology to fight against evil.\"\n },\n \"term_statistics\": true,\n \"field_statistics\": true,\n \"positions\": false,\n \"offsets\": false,\n \"filter\": {\n \"max_num_terms\": 3,\n \"min_term_freq\": 1,\n \"min_doc_freq\": 1\n }\n}" }, "TermVectorsRequestExample4": { "description": "Run `GET /my-index-000001/_termvectors/1`. Term vectors which are not explicitly stored in the index are automatically computed on the fly. This request returns all information and statistics for the fields in document 1, even though the terms haven't been explicitly stored in the index. Note that for the field text, the terms are not regenerated.\n", "summary": "Generate term vectors on the fly", "value": "{\n \"fields\" : [\"text\", \"some_field_without_term_vectors\"],\n \"offsets\" : true,\n \"positions\" : true,\n \"term_statistics\" : true,\n \"field_statistics\" : true\n}" }, "TermVectorsRequestExample5": { "description": "Run `GET /my-index-000001/_termvectors`. Term vectors can be generated for artificial documents, that is for documents not present in the index. If dynamic mapping is turned on (default), the document fields not in the original mapping will be dynamically created.\n", "summary": "Artificial documents", "value": "{\n \"doc\" : {\n \"fullname\" : \"John Doe\",\n \"text\" : \"test test test\"\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.termvectors.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.termvectors" }, "path": [ { "description": "The name of the index that contains the document.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "A unique identifier for the document.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "A comma-separated list or wildcard expressions of fields to include in the statistics.\nIt is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, the response includes:\n\n* The document count (how many documents contain this field).\n* The sum of document frequencies (the sum of document frequencies for all terms in this field).\n* The sum of total term frequencies (the sum of total term frequencies of each term in this field).", "name": "field_statistics", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term offsets.", "name": "offsets", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term payloads.", "name": "payloads", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes term positions.", "name": "positions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If true, the request is real-time as opposed to near-real-time.", "docId": "realtime", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get", "name": "realtime", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A custom value that is used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `true`, the response includes:\n\n* The total term frequency (how often a term occurs in all documents).\n* The document frequency (the number of documents containing the current term).\n\nBy default these values are not returned since term statistics can have a serious performance impact.", "name": "term_statistics", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns the document version as part of a hit.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The version type.", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_global/termvectors/TermVectorsRequest.ts#L33-L239" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "term_vectors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TermVector", "namespace": "_global.termvectors" } } } }, { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ] }, "examples": { "TermVectorsResponseExample1": { "description": "A successful response from `GET /my-index-000001/_termvectors/1`.", "summary": "Return stored term vectors", "value": "{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"found\": true,\n \"took\": 6,\n \"term_vectors\": {\n \"text\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 4,\n \"doc_count\": 2,\n \"sum_ttf\": 6\n },\n \"terms\": {\n \"test\": {\n \"doc_freq\": 2,\n \"ttf\": 4,\n \"term_freq\": 3,\n \"tokens\": [\n {\n \"position\": 0,\n \"start_offset\": 0,\n \"end_offset\": 4,\n \"payload\": \"d29yZA==\"\n },\n {\n \"position\": 1,\n \"start_offset\": 5,\n \"end_offset\": 9,\n \"payload\": \"d29yZA==\"\n },\n {\n \"position\": 2,\n \"start_offset\": 10,\n \"end_offset\": 14,\n \"payload\": \"d29yZA==\"\n }\n ]\n }\n }\n }\n }\n}" }, "TermVectorsResponseExample2": { "description": "A successful response from `GET /my-index-000001/_termvectors` with `per_field_analyzer` in the request body.", "summary": "Per-field analyzer", "value": "{\n \"_index\": \"my-index-000001\",\n \"_version\": 0,\n \"found\": true,\n \"took\": 6,\n \"term_vectors\": {\n \"fullname\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 2,\n \"doc_count\": 4,\n \"sum_ttf\": 4\n },\n \"terms\": {\n \"John Doe\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 0,\n \"start_offset\": 0,\n \"end_offset\": 8\n }\n ]\n }\n }\n }\n }\n}" }, "TermVectorsResponseExample3": { "description": "A successful response from `GET /my-index-000001/_termvectors` with a `filter` in the request body.", "summary": "Terms filtering", "value": "{\n \"_index\": \"imdb\",\n \"_version\": 0,\n \"found\": true,\n \"term_vectors\": {\n \"plot\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 3384269,\n \"doc_count\": 176214,\n \"sum_ttf\": 3753460\n },\n \"terms\": {\n \"armored\": {\n \"doc_freq\": 27,\n \"ttf\": 27,\n \"term_freq\": 1,\n \"score\": 9.74725\n },\n \"industrialist\": {\n \"doc_freq\": 88,\n \"ttf\": 88,\n \"term_freq\": 1,\n \"score\": 8.590818\n },\n \"stark\": {\n \"doc_freq\": 44,\n \"ttf\": 47,\n \"term_freq\": 1,\n \"score\": 9.272792\n }\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "_global.termvectors" }, "specLocation": "_global/termvectors/TermVectorsResponse.ts#L25-L34" }, { "kind": "interface", "name": { "name": "Term", "namespace": "_global.termvectors" }, "properties": [ { "name": "doc_freq", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "term_freq", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "tokens", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Token", "namespace": "_global.termvectors" } } } }, { "name": "ttf", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/termvectors/types.ts#L34-L40" }, { "kind": "interface", "name": { "name": "TermVector", "namespace": "_global.termvectors" }, "properties": [ { "name": "field_statistics", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldStatistics", "namespace": "_global.termvectors" } } }, { "name": "terms", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Term", "namespace": "_global.termvectors" } } } } ], "specLocation": "_global/termvectors/types.ts#L23-L26" }, { "kind": "interface", "name": { "name": "Token", "namespace": "_global.termvectors" }, "properties": [ { "name": "end_offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "payload", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "position", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "start_offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_global/termvectors/types.ts#L42-L47" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "If `true`, the `result` in the response is set to `noop` (no operation) when there are no changes to the document.", "name": "detect_noop", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A partial update to an existing document.\nIf both `doc` and `script` are specified, `doc` is ignored.", "name": "doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "TPartialDocument", "namespace": "_global.update.Request" } } }, { "description": "If `true`, use the contents of 'doc' as the value of 'upsert'.\nNOTE: Using ingest pipelines with `doc_as_upsert` is not supported.", "name": "doc_as_upsert", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The script to run to update the document.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "If `true`, run the script whether or not the document exists.", "name": "scripted_upsert", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, turn off source retrieval.\nYou can also specify a comma-separated list of the fields you want to retrieve.", "name": "_source", "required": false, "serverDefault": "true", "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "If the document does not already exist, the contents of 'upsert' are inserted as a new document.\nIf the document exists, the 'script' is run.", "name": "upsert", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.update.Request" } } } ] }, "description": "Update a document.\n\nUpdate a document by running a script or passing a partial document.\n\nIf the Elasticsearch security features are enabled, you must have the `index` or `write` index privilege for the target index or index alias.\n\nThe script can update, delete, or skip modifying the document.\nThe API also supports passing a partial document, which is merged into the existing document.\nTo fully replace an existing document, use the index API.\nThis operation:\n\n* Gets the document (collocated with the shard) from the index.\n* Runs the specified script.\n* Indexes the result.\n\nThe document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation.\n\nThe `_source` field must be enabled to use this API.\nIn addition to `_source`, you can access the following variables through the `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the current timestamp).", "examples": { "UpdateRequestExample1": { "description": "Run `POST test/_update/1` to increment a counter by using a script.", "summary": "Update a counter with a script", "value": "{\n \"script\" : {\n \"source\": \"ctx._source.counter += params.count\",\n \"lang\": \"painless\",\n \"params\" : {\n \"count\" : 4\n }\n }\n}" }, "UpdateRequestExample10": { "description": "Run `POST test/_update/1` to perform a scripted upsert. When `scripted_upsert` is `true`, the script runs whether or not the document exists.\n", "summary": "Scripted upsert", "value": "{\n \"scripted_upsert\": true,\n \"script\": {\n \"source\": \"\"\"\n if ( ctx.op == 'create' ) {\n ctx._source.counter = params.count\n } else {\n ctx._source.counter += params.count\n }\n \"\"\",\n \"params\": {\n \"count\": 4\n }\n },\n \"upsert\": {}\n}" }, "UpdateRequestExample11": { "description": "Run `POST test/_update/1` to perform a doc as upsert. Instead of sending a partial `doc` plus an `upsert` doc, you can set `doc_as_upsert` to `true` to use the contents of `doc` as the `upsert` value.\n", "summary": "Doc as upsert", "value": "{\n \"doc\": {\n \"name\": \"new_name\"\n },\n \"doc_as_upsert\": true\n}" }, "UpdateRequestExample2": { "description": "Run `POST test/_update/1` to use a script to add a tag to a list of tags. In this example, it is just a list, so the tag is added even it exists.\n", "summary": "Add a tag with a script", "value": "{\n \"script\": {\n \"source\": \"ctx._source.tags.add(params.tag)\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"blue\"\n }\n }\n}" }, "UpdateRequestExample3": { "description": "Run `POST test/_update/1` to use a script to remove a tag from a list of tags. The Painless function to remove a tag takes the array index of the element you want to remove. To avoid a possible runtime error, you first need to make sure the tag exists. If the list contains duplicates of the tag, this script just removes one occurrence.\n", "summary": "Remove a tag with a script", "value": "{\n \"script\": {\n \"source\": \"if (ctx._source.tags.contains(params.tag)) { ctx._source.tags.remove(ctx._source.tags.indexOf(params.tag)) }\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"blue\"\n }\n }\n}" }, "UpdateRequestExample4": { "description": "Run `POST test/_update/1` to use a script to add a field `new_field` to the document.\n", "summary": "Add fields with a script", "value": "{\n \"script\" : \"ctx._source.new_field = 'value_of_new_field'\"\n}" }, "UpdateRequestExample5": { "description": "Run `POST test/_update/1` to use a script to remove a field `new_field` from the document.\n", "summary": "Remove fields with a script", "value": "{\n \"script\" : \"ctx._source.remove('new_field')\"\n}" }, "UpdateRequestExample6": { "description": "Run `POST test/_update/1` to use a script to remove a subfield from an object field.\n", "summary": "Remove subfields with a script", "value": "{\n \"script\": \"ctx._source['my-object'].remove('my-subfield')\"\n}" }, "UpdateRequestExample7": { "description": "Run `POST test/_update/1` to change the operation that runs from within the script. For example, this request deletes the document if the `tags` field contains `green`, otherwise it does nothing (`noop`).\n", "summary": "Change the operation with a script", "value": "{\n \"script\": {\n \"source\": \"if (ctx._source.tags.contains(params.tag)) { ctx.op = 'delete' } else { ctx.op = 'noop' }\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"green\"\n }\n }\n}" }, "UpdateRequestExample8": { "description": "Run `POST test/_update/1` to do a partial update that adds a new field to the existing document.\n", "summary": "Update part of a document", "value": "{\n \"doc\": {\n \"name\": \"new_name\"\n }\n}" }, "UpdateRequestExample9": { "description": "Run `POST test/_update/1` to perfom an upsert. If the document does not already exist, the contents of the upsert element are inserted as a new document. If the document exists, the script is run.\n", "summary": "Upsert", "value": "{\n \"script\": {\n \"source\": \"ctx._source.counter += params.count\",\n \"lang\": \"painless\",\n \"params\": {\n \"count\": 4\n }\n },\n \"upsert\": {\n \"counter\": 1\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.update.Request" }, { "name": "TPartialDocument", "namespace": "_global.update.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.update" }, "path": [ { "description": "A unique identifier for the document to be updated.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the target index.\nBy default, the index is created automatically if it doesn't exist.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Only perform the operation if the document has this primary term.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Only perform the operation if the document has this sequence number.", "extDocId": "optimistic-concurrency", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/optimistic-concurrency-control", "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "True or false if to include the document source in the error message in case of parsing errors.", "name": "include_source_on_error", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The script language.", "name": "lang", "required": false, "serverDefault": "painless", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } }, { "description": "If `true`, the destination must be an index alias.", "name": "require_alias", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of times the operation should be retried when a conflict occurs.", "name": "retry_on_conflict", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The period to wait for the following operations: dynamic mapping updates and waiting for active shards.\nElasticsearch waits for at least the timeout period before failing.\nThe actual wait time could be longer, particularly when multiple waits occur.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of copies of each shard that must be active before proceeding with the operation.\nSet to 'all' or any positive integer up to the total number of shards in the index (`number_of_replicas`+1).\nThe default value of `1` means it waits for each primary shard to be active.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If `false`, source retrieval is turned off.\nYou can also specify a comma-separated list of the fields you want to retrieve.", "name": "_source", "required": false, "serverDefault": "true", "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "The source fields you want to exclude.", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The source fields you want to retrieve.", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "_global/update/UpdateRequest.ts#L38-L194" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.update.Response" } } ], "type": { "name": "UpdateWriteResponseBase", "namespace": "_global.update" } } }, "examples": { "UpdateResponseExample1": { "description": "By default updates that don't change anything detect that they don't change anything and return `\"result\": \"noop\"`.\n", "summary": "Detect noop updates", "value": "{\n \"_shards\": {\n \"total\": 0,\n \"successful\": 0,\n \"failed\": 0\n },\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_version\": 2,\n \"_primary_term\": 1,\n \"_seq_no\": 1,\n \"result\": \"noop\"\n}" } }, "generics": [ { "name": "TDocument", "namespace": "_global.update.Response" } ], "name": { "name": "Response", "namespace": "_global.update" }, "specLocation": "_global/update/UpdateResponse.ts#L27-L30" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "_global.update.UpdateWriteResponseBase" } ], "inherits": { "type": { "name": "WriteResponseBase", "namespace": "_types" } }, "name": { "name": "UpdateWriteResponseBase", "namespace": "_global.update" }, "properties": [ { "name": "get", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_global.update.UpdateWriteResponseBase" } } ], "type": { "name": "InlineGet", "namespace": "_types" } } } ], "specLocation": "_global/update/UpdateResponse.ts#L23-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The maximum number of documents to update.", "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The documents to update using the Query DSL.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "The script to run to update the document source or metadata when updating.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Slice the request manually using the provided slice ID and total number of slices.", "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } }, { "description": "The preferred behavior when update by query hits version conflicts: `abort` or `proceed`.", "name": "conflicts", "required": false, "serverDefault": "abort", "type": { "kind": "instance_of", "type": { "name": "Conflicts", "namespace": "_types" } } } ] }, "description": "Update documents.\nUpdates documents that match the specified query.\nIf no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.\n\nIf the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias:\n\n* `read`\n* `index` or `write`\n\nYou can specify the query criteria in the request URI or the request body using the same syntax as the search API.\n\nWhen you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning.\nWhen the versions match, the document is updated and the version number is incremented.\nIf a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails.\nYou can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`.\nNote that if you opt to count version conflicts, the operation could attempt to update more documents from the source than `max_docs` until it has successfully updated `max_docs` documents or it has gone through every document in the source query.\n\nNOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number.\n\nWhile processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents.\nA bulk update request is performed for each batch of matching documents.\nAny query or update failures cause the update by query request to fail and the failures are shown in the response.\nAny update requests that completed successfully still stick, they are not rolled back.\n\n**Throttling update requests**\n\nTo control the rate at which update by query issues batches of update operations, you can set `requests_per_second` to any positive decimal number.\nThis pads each batch with a wait time to throttle the rate.\nSet `requests_per_second` to `-1` to turn off throttling.\n\nThrottling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account.\nThe padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing.\nBy default the batch size is 1000, so if `requests_per_second` is set to `500`:\n\n```\ntarget_time = 1000 / 500 per second = 2 seconds\nwait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds\n```\n\nSince the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set.\nThis is \"bursty\" instead of \"smooth\".\n\n**Slicing**\n\nUpdate by query supports sliced scroll to parallelize the update process.\nThis can improve efficiency and provide a convenient way to break the request down into smaller parts.\n\nSetting `slices` to `auto` chooses a reasonable number for most data streams and indices.\nThis setting will use one slice per shard, up to a certain limit.\nIf there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards.\n\nAdding `slices` to `_update_by_query` just automates the manual process of creating sub-requests, which means it has some quirks:\n\n* You can see these requests in the tasks APIs. These sub-requests are \"child\" tasks of the task for the request with slices.\n* Fetching the status of the task for the request with `slices` only contains the status of completed slices.\n* These sub-requests are individually addressable for things like cancellation and rethrottling.\n* Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally.\n* Canceling the request with slices will cancel each sub-request.\n* Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution.\n* Parameters like `requests_per_second` and `max_docs` on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being updated.\n* Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time.\n\nIf you're slicing manually or otherwise tuning automatic slicing, keep in mind that:\n\n* Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead.\n* Update performance scales linearly across available resources with the number of slices.\n\nWhether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources.\n\n**Update the document source**\n\nUpdate by query supports scripts to update the document source.\nAs with the update API, you can set `ctx.op` to change the operation that is performed.\n\nSet `ctx.op = \"noop\"` if your script decides that it doesn't have to make any changes.\nThe update by query operation skips updating the document and increments the `noop` counter.\n\nSet `ctx.op = \"delete\"` if your script decides that the document should be deleted.\nThe update by query operation deletes the document and increments the `deleted` counter.\n\nUpdate by query supports only `index`, `noop`, and `delete`.\nSetting `ctx.op` to anything else is an error.\nSetting any other field in `ctx` is an error.\nThis API enables you to only modify the source of matching documents; you cannot move them.", "examples": { "UpdateByQueryRequestExample1": { "description": "Run `POST my-index-000001/_update_by_query?conflicts=proceed` to update documents that match a query.\n", "summary": "Update selected documents", "value": "{\n \"query\": { \n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}" }, "UpdateByQueryRequestExample2": { "description": "Run `POST my-index-000001/_update_by_query` with a script to update the document source. It increments the `count` field for all documents with a `user.id` of `kimchy` in `my-index-000001`.\n", "summary": "Update the document source", "value": "{\n \"script\": {\n \"source\": \"ctx._source.count++\",\n \"lang\": \"painless\"\n },\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}" }, "UpdateByQueryRequestExample3": { "description": "Run `POST my-index-000001/_update_by_query` to slice an update by query manually. Provide a slice ID and total number of slices to each request.\n", "summary": "Slice manually", "value": "{\n \"slice\": {\n \"id\": 0,\n \"max\": 2\n },\n \"script\": {\n \"source\": \"ctx._source['extra'] = 'test'\"\n }\n}" }, "UpdateByQueryRequestExample4": { "description": "Run `POST my-index-000001/_update_by_query?refresh&slices=5` to use automatic slicing. It automatically parallelizes using sliced scroll to slice on `_id`.\n", "summary": "Slice automatically", "value": "{\n \"script\": {\n \"source\": \"ctx._source['extra'] = 'test'\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.update_by_query" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to search.\nIt supports wildcards (`*`).\nTo search all data streams or indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analyzer to use for the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, wildcard and prefix queries are analyzed.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The preferred behavior when update by query hits version conflicts: `abort` or `proceed`.", "name": "conflicts", "required": false, "serverDefault": "abort", "type": { "kind": "instance_of", "type": { "name": "Conflicts", "namespace": "_types" } } }, { "description": "The default operator for query string query: `AND` or `OR`.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "default_operator", "required": false, "serverDefault": "OR", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "The field to use as default where no field prefix is given in the query string.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Skips the specified number of documents.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.\nThis parameter can be used only when the `q` query string parameter is specified.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum number of documents to process.\nIt defaults to all documents.\nWhen set to a value less then or equal to `scroll_size` then a scroll will not be used to retrieve the results for the operation.", "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The ID of the pipeline to use to preprocess incoming documents.\nIf the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.\nIf a final pipeline is configured it will always run, regardless of the value of this parameter.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The node or shard the operation should be performed on.\nIt is random by default.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A query in the Lucene query string syntax.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, Elasticsearch refreshes affected shards to make the operation visible to search after the request completes.\nThis is different than the update API's `refresh` parameter, which causes just the shard that received the request to be refreshed.", "name": "refresh", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request cache is used for this request.\nIt defaults to the index-level setting.", "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The throttle for this request in sub-requests per second.", "name": "requests_per_second", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "A custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The period to retain the search context for scrolling.", "extDocId": "search-scroll-results", "name": "scroll", "required": false, "serverDefault": "5m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The size of the scroll request that powers the operation.", "name": "scroll_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "An explicit timeout for each search request.\nBy default, there is no timeout.", "name": "search_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The type of the search operation. Available options include `query_then_fetch` and `dfs_query_then_fetch`.", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "The number of slices this task should be divided into.", "name": "slices", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "Slices", "namespace": "_types" } } }, { "description": "A comma-separated list of : pairs.", "name": "sort", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The specific `tag` of the request for logging and statistical purposes.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The maximum number of documents to collect for each shard.\nIf a query reaches this limit, Elasticsearch terminates the query early.\nElasticsearch collects documents before sorting.\n\nIMPORTANT: Use with caution.\nElasticsearch applies this parameter to each shard handling the request.\nWhen possible, let Elasticsearch perform early termination automatically.\nAvoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.", "name": "terminate_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The period each update request waits for the following operations: dynamic mapping updates, waiting for active shards.\nBy default, it is one minute.\nThis guarantees Elasticsearch waits for at least the timeout before failing.\nThe actual wait time could be longer, particularly when multiple waits occur.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, returns the document version as part of a hit.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Should the document increment the version number (internal) on hit or not (reindex)", "name": "version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).\nThe `timeout` parameter controls how long each write request waits for unavailable shards to become available.\nBoth work exactly the way they work in the bulk API.", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If `true`, the request blocks until the operation is complete.\nIf `false`, Elasticsearch performs some preflight checks, launches the request, and returns a task ID that you can use to cancel or get the status of the task.\nElasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`.", "name": "wait_for_completion", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_global/update_by_query/UpdateByQueryRequest.ts#L37-L340" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of scroll responses pulled back by the update by query.", "name": "batches", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Array of failures if there were any unrecoverable errors during the process.\nIf this is non-empty then the request ended because of those failures.\nUpdate by query is implemented using batches.\nAny failure causes the entire process to end, but all failures in the current batch are collected into the array.\nYou can use the `conflicts` option to prevent reindex from ending when version conflicts occur.", "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "BulkIndexByScrollFailure", "namespace": "_types" } } } }, { "description": "The number of documents that were ignored because the script used for the update by query returned a noop value for `ctx.op`.", "name": "noops", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully deleted.", "name": "deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of requests per second effectively run during the update by query.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The number of retries attempted by update by query.\n`bulk` is the number of bulk actions retried.\n`search` is the number of search actions retried.", "name": "retries", "required": false, "type": { "kind": "instance_of", "type": { "name": "Retries", "namespace": "_types" } } }, { "name": "task", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } }, { "description": "If true, some requests timed out during the update by query.", "name": "timed_out", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of milliseconds from start to end of the whole operation.", "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of documents that were successfully processed.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents that were successfully updated.", "name": "updated", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of version conflicts that the update by query hit.", "name": "version_conflicts", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of milliseconds the request slept to conform to `requests_per_second`.", "name": "throttled_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "throttled_until", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "This field should always be equal to zero in an _update_by_query response.\nIt only has meaning when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform to `requests_per_second`.", "name": "throttled_until_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "_global.update_by_query" }, "specLocation": "_global/update_by_query/UpdateByQueryResponse.ts#L26-L67" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Throttle an update by query operation.\n\nChange the number of requests per second for a particular update by query operation.\nRethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "_global.update_by_query_rethrottle" }, "path": [ { "description": "The ID for the task.", "name": "task_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The throttle for this request in sub-requests per second.\nTo turn off throttling, set it to `-1`.", "name": "requests_per_second", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleRequest.ts#L24-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "UpdateByQueryRethrottleNode", "namespace": "_global.update_by_query_rethrottle" } } } } ] }, "name": { "name": "Response", "namespace": "_global.update_by_query_rethrottle" }, "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25" }, { "kind": "interface", "inherits": { "type": { "name": "BaseNode", "namespace": "_spec_utils" } }, "name": { "name": "UpdateByQueryRethrottleNode", "namespace": "_global.update_by_query_rethrottle" }, "properties": [ { "name": "tasks", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TaskInfo", "namespace": "tasks._types" } } } } ], "specLocation": "_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27" }, { "kind": "interface", "name": { "name": "BaseNode", "namespace": "_spec_utils" }, "properties": [ { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "host", "required": true, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "ip", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "roles", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeRoles", "namespace": "_types" } } }, { "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } } ], "specLocation": "_spec_utils/BaseNode.ts#L25-L32" }, { "kind": "type_alias", "description": "A `null` value that is to be interpreted as an actual value, unless other uses of `null` that are equivalent\nto a missing value. It is used for exemple in settings, where using the `NullValue` for a setting will reset\nit to its default value.", "name": { "name": "NullValue", "namespace": "_spec_utils" }, "specLocation": "_spec_utils/utils.ts#L22-L27", "type": { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } }, { "kind": "type_alias", "description": "A set of flags that can be represented as a single enum value or a set of values that are encoded\nas a pipe-separated string\n\nDepending on the target language, code generators can use this hint to generate language specific\nflags enum constructs and the corresponding (de-)serialization code.", "generics": [ { "name": "T", "namespace": "_spec_utils.PipeSeparatedFlags" } ], "name": { "name": "PipeSeparatedFlags", "namespace": "_spec_utils" }, "specLocation": "_spec_utils/PipeSeparatedFlags.ts#L20-L27", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_spec_utils.PipeSeparatedFlags" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "kind": "type_alias", "description": "Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior\nis used to capture this behavior while keeping the semantics of the field type.\n\nDepending on the target language, code generators can keep the union or remove it and leniently parse\nstrings to the target type.", "generics": [ { "name": "T", "namespace": "_spec_utils.Stringified" } ], "name": { "name": "Stringified", "namespace": "_spec_utils" }, "specLocation": "_spec_utils/Stringified.ts#L20-L27", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_spec_utils.Stringified" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "kind": "type_alias", "description": "The absence of any type. This is commonly used in APIs that don't return a body.\n\nAlthough \"void\" is generally used for the unit type that has only one value, this is to be interpreted as\nthe bottom type that has no value at all. Most languages have a unit type, but few have a bottom type.\n\nSee https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type", "name": { "name": "Void", "namespace": "_spec_utils" }, "specLocation": "_spec_utils/VoidValue.ts#L20-L28", "type": { "kind": "instance_of", "type": { "name": "void", "namespace": "_builtins" } } }, { "kind": "type_alias", "description": "`WithNullValue` allows for explicit null assignments in contexts where `null` should be interpreted as an\nactual value.", "generics": [ { "name": "T", "namespace": "_spec_utils.WithNullValue" } ], "name": { "name": "WithNullValue", "namespace": "_spec_utils" }, "specLocation": "_spec_utils/utils.ts#L29-L33", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_spec_utils.WithNullValue" } }, { "kind": "instance_of", "type": { "name": "NullValue", "namespace": "_spec_utils" } } ] } }, { "kind": "interface", "name": { "name": "AcknowledgedResponseBase", "namespace": "_types" }, "properties": [ { "description": "For a successful response, this value is always true. On failure, an exception is returned instead.", "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/Base.ts#L69-L72" }, { "kind": "type_alias", "description": "The aggregation name as returned from the server. Depending whether typed_keys is specified this could come back\nin the form of `name#type` instead of simply `name`", "name": { "name": "AggregateName", "namespace": "_types" }, "specLocation": "_types/common.ts#L142-L146", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "BulkIndexByScrollFailure", "namespace": "_types" }, "properties": [ { "name": "cause", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/Errors.ts#L60-L65" }, { "kind": "interface", "name": { "name": "BulkStats", "namespace": "_types" }, "properties": [ { "name": "total_operations", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "total_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "avg_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "avg_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "avg_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "avg_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L71-L81" }, { "kind": "type_alias", "docId": "byte-units", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#byte-units", "name": { "name": "ByteSize", "namespace": "_types" }, "specLocation": "_types/common.ts#L90-L91", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "kind": "enum", "members": [ { "codegenName": "bytes", "name": "b" }, { "codegenName": "kilo_bytes", "name": "kb" }, { "codegenName": "mega_bytes", "name": "mb" }, { "codegenName": "giga_bytes", "name": "gb" }, { "codegenName": "tera_bytes", "name": "tb" }, { "codegenName": "peta_bytes", "name": "pb" } ], "name": { "name": "Bytes", "namespace": "_types" }, "specLocation": "_types/common.ts#L166-L178" }, { "kind": "type_alias", "name": { "name": "CategoryId", "namespace": "_types" }, "specLocation": "_types/common.ts#L52-L52", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "ClusterAlias", "namespace": "_types" }, "specLocation": "_types/common.ts#L72-L72", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "ClusterDetails", "namespace": "_types" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterSearchStatus", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardFailure", "namespace": "_types" } } } } ], "specLocation": "_types/Stats.ts#L45-L52" }, { "kind": "enum", "members": [ { "name": "_all" }, { "name": "http" }, { "name": "ingest" }, { "name": "thread_pool" }, { "name": "script" } ], "name": { "name": "ClusterInfoTarget", "namespace": "_types" }, "specLocation": "_types/common.ts#L378-L384" }, { "kind": "type_alias", "name": { "name": "ClusterInfoTargets", "namespace": "_types" }, "specLocation": "_types/common.ts#L386-L386", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ClusterInfoTarget", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterInfoTarget", "namespace": "_types" } } } ] } }, { "kind": "enum", "members": [ { "name": "running" }, { "name": "successful" }, { "name": "partial" }, { "name": "skipped" }, { "name": "failed" } ], "name": { "name": "ClusterSearchStatus", "namespace": "_types" }, "specLocation": "_types/Stats.ts#L37-L43" }, { "kind": "interface", "name": { "name": "ClusterStatistics", "namespace": "_types" }, "properties": [ { "name": "skipped", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "successful", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "running", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "partial", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "details", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "ClusterAlias", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterDetails", "namespace": "_types" } } } } ], "specLocation": "_types/Stats.ts#L27-L35" }, { "kind": "interface", "name": { "name": "CompletionStats", "namespace": "_types" }, "properties": [ { "description": "Total amount, in bytes, of memory used for completion across all shards assigned to selected nodes.", "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used for completion across all shards assigned to selected nodes.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldSizeUsage", "namespace": "_types" } } } } ], "specLocation": "_types/Stats.ts#L83-L93" }, { "kind": "enum", "members": [ { "description": "Stop reindexing if there are conflicts.", "name": "abort" }, { "description": "Continue reindexing even if there are conflicts.", "name": "proceed" } ], "name": { "name": "Conflicts", "namespace": "_types" }, "specLocation": "_types/common.ts#L180-L189" }, { "kind": "interface", "name": { "name": "CoordsGeoBounds", "namespace": "_types" }, "properties": [ { "name": "top", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "bottom", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "left", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "right", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/Geo.ts#L154-L159" }, { "kind": "enum", "members": [ { "name": "standardized" }, { "name": "saturated" }, { "name": "chisquared" } ], "name": { "name": "DFIIndependenceMeasure", "namespace": "_types" }, "specLocation": "_types/Similarity.ts#L20-L24" }, { "kind": "enum", "members": [ { "name": "no" }, { "name": "b" }, { "name": "l" } ], "name": { "name": "DFRAfterEffect", "namespace": "_types" }, "specLocation": "_types/Similarity.ts#L26-L30" }, { "kind": "enum", "members": [ { "name": "be" }, { "name": "d" }, { "name": "g" }, { "name": "if" }, { "name": "in" }, { "name": "ine" }, { "name": "p" } ], "name": { "name": "DFRBasicModel", "namespace": "_types" }, "specLocation": "_types/Similarity.ts#L32-L40" }, { "kind": "type_alias", "name": { "name": "DataStreamName", "namespace": "_types" }, "specLocation": "_types/common.ts#L86-L86", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "DataStreamNames", "namespace": "_types" }, "specLocation": "_types/common.ts#L88-L88", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "docId": "mapping-date-format", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-date-format", "name": { "name": "DateFormat", "namespace": "_types" }, "specLocation": "_types/Time.ts#L49-L50", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "DateMath", "namespace": "_types" }, "specLocation": "_types/Time.ts#L42-L42", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "description": "A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a\nnumber of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string\nrepresentation.", "name": { "name": "DateTime", "namespace": "_types" }, "specLocation": "_types/Time.ts#L22-L27", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } ] } }, { "kind": "type_alias", "name": { "name": "Distance", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L28-L28", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "enum", "members": [ { "codegenName": "inches", "name": "in" }, { "codegenName": "feet", "name": "ft" }, { "codegenName": "yards", "name": "yd" }, { "codegenName": "miles", "name": "mi" }, { "codegenName": "nautic_miles", "name": "nmi" }, { "codegenName": "kilometers", "name": "km" }, { "codegenName": "meters", "name": "m" }, { "codegenName": "centimeters", "name": "cm" }, { "codegenName": "millimeters", "name": "mm" } ], "name": { "name": "DistanceUnit", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L30-L40" }, { "kind": "interface", "name": { "name": "DocStats", "namespace": "_types" }, "properties": [ { "description": "Total number of non-deleted documents across all primary shards assigned to selected nodes.\nThis number is based on documents in Lucene segments and may include documents from nested fields.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of deleted documents across all primary shards assigned to selected nodes.\nThis number is based on documents in Lucene segments.\nElasticsearch reclaims the disk space of deleted Lucene documents when a segment is merged.", "name": "deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L100-L112" }, { "kind": "type_alias", "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.", "docId": "time-value", "docUrl": "https://github.com/elastic/elasticsearch/blob/current/libs/core/src/main/java/org/elasticsearch/core/TimeValue.java", "name": { "name": "Duration", "namespace": "_types" }, "specLocation": "_types/Time.ts#L52-L58", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "literal_value", "value": -1 }, { "kind": "literal_value", "value": 0 } ] } }, { "kind": "type_alias", "description": "A date histogram interval. Similar to `Duration` with additional units: `w` (week), `M` (month), `q` (quarter) and\n`y` (year)", "name": { "name": "DurationLarge", "namespace": "_types" }, "specLocation": "_types/Time.ts#L60-L65", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "generics": [ { "name": "Unit", "namespace": "_types.DurationValue" } ], "name": { "name": "DurationValue", "namespace": "_types" }, "specLocation": "_types/Time.ts#L67-L67", "type": { "kind": "instance_of", "type": { "name": "Unit", "namespace": "_types.DurationValue" } } }, { "kind": "interface", "name": { "name": "ElasticsearchVersionInfo", "namespace": "_types" }, "properties": [ { "description": "The Elasticsearch Git commit's date.", "name": "build_date", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The build flavor. For example, `default`.", "name": "build_flavor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The Elasticsearch Git commit's SHA hash.", "name": "build_hash", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates whether the Elasticsearch build was a snapshot.", "name": "build_snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The build type that corresponds to how Elasticsearch was installed.\nFor example, `docker`, `rpm`, or `tar`.", "name": "build_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The version number of Elasticsearch's underlying Lucene software.", "name": "lucene_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "The minimum index version with which the responding node can read from disk.", "name": "minimum_index_compatibility_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "The minimum node version with which the responding node can communicate.\nAlso the minimum version from which you can perform a rolling upgrade.", "name": "minimum_wire_compatibility_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "The Elasticsearch version number.", "name": "number", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Base.ts#L76-L115" }, { "kind": "interface", "description": "Reduced (minimal) info ElasticsearchVersion", "name": { "name": "ElasticsearchVersionMinInfo", "namespace": "_types" }, "properties": [ { "name": "build_flavor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "minimum_index_compatibility_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "minimum_wire_compatibility_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "number", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Base.ts#L117-L125" }, { "kind": "interface", "description": "For empty Class assignments", "name": { "name": "EmptyObject", "namespace": "_types" }, "properties": [], "specLocation": "_types/common.ts#L157-L158" }, { "kind": "type_alias", "generics": [ { "name": "Unit", "namespace": "_types.EpochTime" } ], "name": { "name": "EpochTime", "namespace": "_types" }, "specLocation": "_types/Time.ts#L40-L40", "type": { "kind": "instance_of", "type": { "name": "Unit", "namespace": "_types.EpochTime" } } }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "user_defined_value" } ], "meta": { "description": "Additional details about the error", "fieldname": "metadata" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "description": "Cause and details about a request failure. This class defines the properties common to all error types.\nAdditional details are also provided, that depend on the error type.", "name": { "name": "ErrorCause", "namespace": "_types" }, "properties": [ { "description": "The type of error", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A human-readable explanation of the error, in English.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The server stack trace. Present only if the `error_trace=true` parameter was sent with the request.", "name": "stack_trace", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "caused_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "root_cause", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } }, { "name": "suppressed", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } } ], "specLocation": "_types/Errors.ts#L25-L50" }, { "kind": "interface", "description": "The response returned by Elasticsearch when request execution did not succeed.", "name": { "name": "ErrorResponseBase", "namespace": "_types" }, "properties": [ { "name": "error", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/Base.ts#L127-L136" }, { "kind": "enum", "members": [ { "description": "Match any data stream or index, including hidden ones.", "name": "all" }, { "description": "Match open, non-hidden indices. Also matches any non-hidden data stream.", "name": "open" }, { "description": "Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.", "name": "closed" }, { "description": "Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or `both`.", "name": "hidden" }, { "description": "Wildcard expressions are not accepted.", "name": "none" } ], "name": { "name": "ExpandWildcard", "namespace": "_types" }, "specLocation": "_types/common.ts#L198-L212" }, { "kind": "type_alias", "name": { "name": "ExpandWildcards", "namespace": "_types" }, "specLocation": "_types/common.ts#L214-L214", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ExpandWildcard", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExpandWildcard", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "description": "Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.", "name": { "name": "Field", "namespace": "_types" }, "specLocation": "_types/common.ts#L135-L136", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "FieldMemoryUsage", "namespace": "_types" }, "properties": [ { "name": "memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "memory_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L121-L124" }, { "kind": "interface", "name": { "name": "FieldSizeUsage", "namespace": "_types" }, "properties": [ { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L95-L98" }, { "kind": "interface", "name": { "name": "FieldSort", "namespace": "_types" }, "properties": [ { "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } }, { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortMode", "namespace": "_types" } } }, { "name": "nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedSortValue", "namespace": "_types" } } }, { "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "name": "unmapped_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldType", "namespace": "_types.mapping" } } }, { "name": "numeric_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldSortNumericType", "namespace": "_types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "order", "specLocation": "_types/sort.ts#L43-L52" }, { "kind": "enum", "members": [ { "name": "long" }, { "name": "double" }, { "name": "date" }, { "name": "date_nanos" } ], "name": { "name": "FieldSortNumericType", "namespace": "_types" }, "specLocation": "_types/sort.ts#L36-L41" }, { "kind": "type_alias", "codegenNames": [ "long", "double", "string", "boolean", "null" ], "description": "A field value.", "name": { "name": "FieldValue", "namespace": "_types" }, "specLocation": "_types/common.ts#L25-L31", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "kind": "interface", "name": { "name": "FielddataStats", "namespace": "_types" }, "properties": [ { "name": "evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "memory_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldMemoryUsage", "namespace": "_types" } } } } ], "specLocation": "_types/Stats.ts#L114-L119" }, { "kind": "type_alias", "name": { "name": "Fields", "namespace": "_types" }, "specLocation": "_types/common.ts#L137-L137", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ] } }, { "kind": "interface", "name": { "name": "FlushStats", "namespace": "_types" }, "properties": [ { "name": "periodic", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L126-L131" }, { "kind": "type_alias", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": { "name": "Fuzziness", "namespace": "_types" }, "specLocation": "_types/common.ts#L130-L131", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ] } }, { "kind": "type_alias", "codegenNames": [ "coords", "tlbr", "trbl", "wkt" ], "description": "A geo bounding box. It can be represented in various ways:\n- as 4 top/bottom/left/right coordinates\n- as 2 top_left / bottom_right points\n- as 2 top_right / bottom_left points\n- as a WKT bounding box", "name": { "name": "GeoBounds", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L135-L148", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CoordsGeoBounds", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "TopLeftBottomRightGeoBounds", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "TopRightBottomLeftGeoBounds", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "WktGeoBounds", "namespace": "_types" } } ] } }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } } ] } ], "meta": { "key": "field", "value": "location" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "name": { "name": "GeoDistanceSort", "namespace": "_types" }, "properties": [ { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortMode", "namespace": "_types" } } }, { "name": "distance_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoDistanceType", "namespace": "_types" } } }, { "name": "ignore_unmapped", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "name": "unit", "required": false, "type": { "kind": "instance_of", "type": { "name": "DistanceUnit", "namespace": "_types" } } }, { "name": "nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedSortValue", "namespace": "_types" } } } ], "specLocation": "_types/sort.ts#L58-L70" }, { "kind": "enum", "members": [ { "description": "The `arc` calculation is the most accurate.", "name": "arc" }, { "description": "The `plane` calculation is faster but less accurate.", "name": "plane" } ], "name": { "name": "GeoDistanceType", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L42-L51" }, { "kind": "type_alias", "name": { "name": "GeoHash", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L91-L91", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "GeoHashLocation", "namespace": "_types" }, "properties": [ { "name": "geohash", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoHash", "namespace": "_types" } } } ], "specLocation": "_types/Geo.ts#L131-L133" }, { "kind": "type_alias", "codegenNames": [ "geohash_length", "distance" ], "description": "A precision that can be expressed as a geohash length between 1 and 12, or a distance measure like \"1km\", \"10m\".", "name": { "name": "GeoHashPrecision", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L86-L90", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "kind": "type_alias", "description": "A map hex cell (H3) reference", "name": { "name": "GeoHexCell", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L96-L97", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "description": "A GeoJson GeoLine.", "name": { "name": "GeoLine", "namespace": "_types" }, "properties": [ { "description": "Always `\"LineString\"`", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Array of `[lon, lat]` coordinates", "name": "coordinates", "required": true, "type": { "kind": "array_of", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } } ], "specLocation": "_types/Geo.ts#L56-L62" }, { "kind": "type_alias", "codegenNames": [ "latlon", "geohash", "coords", "text" ], "description": "A latitude/longitude as a 2 dimensional point. It can be represented in various ways:\n- as a `{lat, long}` object\n- as a geo hash value\n- as a `[lon, lat]` array\n- as a string in `\", \"` or WKT point formats", "name": { "name": "GeoLocation", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L104-L118", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "LatLonGeoLocation", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "GeoHashLocation", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "kind": "type_alias", "description": "A GeoJson shape, that can also use Elasticsearch's `envelope` extension.", "name": { "name": "GeoShape", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L53-L54", "type": { "kind": "user_defined_value" } }, { "kind": "enum", "members": [ { "description": "Return all documents whose `geo_shape` or `geo_point` field intersects the query geometry.", "name": "intersects" }, { "description": "Return all documents whose `geo_shape` or `geo_point` field has nothing in common with the query geometry.", "name": "disjoint" }, { "description": "Return all documents whose `geo_shape` or `geo_point` field is within the query geometry.\nLine geometries are not supported.", "name": "within" }, { "description": "Return all documents whose `geo_shape` or `geo_point` field contains the query geometry.", "name": "contains" } ], "name": { "name": "GeoShapeRelation", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L64-L82" }, { "kind": "type_alias", "description": "A map tile reference, represented as `{zoom}/{x}/{y}`", "name": { "name": "GeoTile", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L93-L94", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "GeoTilePrecision", "namespace": "_types" }, "specLocation": "_types/Geo.ts#L84-L84", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "GetStats", "namespace": "_types" }, "properties": [ { "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "exists_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "exists_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "exists_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "missing_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "missing_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "missing_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L133-L144" }, { "kind": "type_alias", "name": { "name": "GrokPattern", "namespace": "_types" }, "specLocation": "_types/common.ts#L81-L81", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "enum", "members": [ { "aliases": [ "GREEN" ], "description": "All shards are assigned.", "name": "green" }, { "aliases": [ "YELLOW" ], "description": "All primary shards are assigned, but one or more replica shards are unassigned. If a node in the cluster fails, some data could be unavailable until that node is repaired.", "name": "yellow" }, { "aliases": [ "RED" ], "description": "One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned.", "name": "red" } ], "name": { "name": "HealthStatus", "namespace": "_types" }, "specLocation": "_types/common.ts#L216-L236" }, { "kind": "type_alias", "name": { "name": "Host", "namespace": "_types" }, "specLocation": "_types/Networking.ts#L21-L21", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "HttpHeaders", "namespace": "_types" }, "specLocation": "_types/common.ts#L155-L155", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } }, { "kind": "enum", "members": [ { "name": "ll" }, { "name": "spl" } ], "name": { "name": "IBDistribution", "namespace": "_types" }, "specLocation": "_types/Similarity.ts#L42-L45" }, { "kind": "enum", "members": [ { "name": "df" }, { "name": "ttf" } ], "name": { "name": "IBLambda", "namespace": "_types" }, "specLocation": "_types/Similarity.ts#L47-L50" }, { "kind": "type_alias", "name": { "name": "Id", "namespace": "_types" }, "specLocation": "_types/common.ts#L55-L55", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "Ids", "namespace": "_types" }, "specLocation": "_types/common.ts#L56-L56", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "name": { "name": "IndexAlias", "namespace": "_types" }, "specLocation": "_types/common.ts#L62-L62", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "IndexName", "namespace": "_types" }, "specLocation": "_types/common.ts#L60-L60", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "IndexPattern", "namespace": "_types" }, "specLocation": "_types/common.ts#L63-L63", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "IndexPatterns", "namespace": "_types" }, "specLocation": "_types/common.ts#L64-L64", "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPattern", "namespace": "_types" } } } }, { "kind": "interface", "name": { "name": "IndexingStats", "namespace": "_types" }, "properties": [ { "name": "index_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "delete_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "delete_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "delete_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "delete_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "is_throttled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "noop_update_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "throttle_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "throttle_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "index_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "index_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index_failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "types", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexingStats", "namespace": "_types" } } } }, { "name": "write_load", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "recent_write_load", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "peak_write_load", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L146-L164" }, { "kind": "type_alias", "name": { "name": "Indices", "namespace": "_types" }, "specLocation": "_types/common.ts#L61-L61", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "kind": "interface", "description": "Controls how to deal with unavailable concrete indices (closed or missing), how wildcard expressions are expanded\nto actual indices (all, closed or open indices) and how to deal with wildcard expressions that resolve to no indices.", "name": { "name": "IndicesOptions", "namespace": "_types" }, "properties": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only\nmissing or closed indices. This behavior applies even if the request targets other open indices. For example,\na request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target data streams, this argument\ndetermines whether wildcard expressions match hidden data streams. Supports comma-separated values,\nsuch as `open,hidden`.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If true, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, concrete, expanded or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/common.ts#L332-L359" }, { "kind": "interface", "inherits": { "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } }, "name": { "name": "IndicesResponseBase", "namespace": "_types" }, "properties": [ { "name": "_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ], "specLocation": "_types/Base.ts#L138-L140" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "user_defined_value" } ], "meta": { "description": "Document metadata", "fieldname": "metadata" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "generics": [ { "name": "TDocument", "namespace": "_types.InlineGet" } ], "name": { "name": "InlineGet", "namespace": "_types" }, "properties": [ { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "_types.InlineGet" } } } ], "specLocation": "_types/common.ts#L317-L330" }, { "kind": "type_alias", "name": { "name": "Ip", "namespace": "_types" }, "specLocation": "_types/Networking.ts#L20-L20", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "extDocId": "query-dsl-knn-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-knn-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "KnnQuery", "namespace": "_types" }, "properties": [ { "description": "The name of the vector field to search against", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The query vector", "name": "query_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryVector", "namespace": "_types" } } }, { "description": "The query vector builder. You must provide a query_vector_builder or query_vector, but not both.", "name": "query_vector_builder", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryVectorBuilder", "namespace": "_types" } } }, { "description": "The number of nearest neighbor candidates to consider per shard", "name": "num_candidates", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The final number of nearest neighbors to return as top hits", "name": "k", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Filters for the kNN search query", "name": "filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "description": "The minimum similarity for a vector to be considered a match", "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.18.0" } }, "description": "Apply oversampling and rescoring to quantized vectors", "name": "rescore_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "RescoreVector", "namespace": "_types" } } } ], "specLocation": "_types/Knn.ts#L64-L87" }, { "kind": "interface", "inherits": { "type": { "name": "RetrieverBase", "namespace": "_types" } }, "name": { "name": "KnnRetriever", "namespace": "_types" }, "properties": [ { "description": "The name of the vector field to search against.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Query vector. Must have the same number of dimensions as the vector field you are searching against. You must provide a query_vector_builder or query_vector, but not both.", "name": "query_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryVector", "namespace": "_types" } } }, { "description": "Defines a model to build a query vector.", "name": "query_vector_builder", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryVectorBuilder", "namespace": "_types" } } }, { "description": "Number of nearest neighbors to return as top hits.", "name": "k", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of nearest neighbor candidates to consider per shard.", "name": "num_candidates", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum similarity required for a document to be considered a match.", "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.18.0" } }, "description": "Apply oversampling and rescoring to quantized vectors", "name": "rescore_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "RescoreVector", "namespace": "_types" } } } ], "specLocation": "_types/Retriever.ts#L64-L82" }, { "kind": "interface", "name": { "name": "KnnSearch", "namespace": "_types" }, "properties": [ { "description": "The name of the vector field to search against", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The query vector", "name": "query_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryVector", "namespace": "_types" } } }, { "description": "The query vector builder. You must provide a query_vector_builder or query_vector, but not both.", "name": "query_vector_builder", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryVectorBuilder", "namespace": "_types" } } }, { "description": "The final number of nearest neighbors to return as top hits", "name": "k", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of nearest neighbor candidates to consider per shard", "name": "num_candidates", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Boost value to apply to kNN scores", "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Filters for the kNN search query", "name": "filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "description": "The minimum similarity for a vector to be considered a match", "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "If defined, each search hit will contain inner hits.", "docId": "knn-inner-hits", "docUrl": "https://www.elastic.co/docs/solutions/search/vector/knn#nested-knn-search-inner-hits", "name": "inner_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "InnerHits", "namespace": "_global.search._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.18.0" } }, "description": "Apply oversampling and rescoring to quantized vectors", "name": "rescore_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "RescoreVector", "namespace": "_types" } } } ], "specLocation": "_types/Knn.ts#L35-L62" }, { "kind": "interface", "name": { "name": "LatLonGeoLocation", "namespace": "_types" }, "properties": [ { "description": "Latitude", "name": "lat", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Longitude", "name": "lon", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/Geo.ts#L120-L129" }, { "kind": "enum", "members": [ { "name": "cluster" }, { "name": "indices" }, { "name": "shards" } ], "name": { "name": "Level", "namespace": "_types" }, "specLocation": "_types/common.ts#L246-L250" }, { "kind": "enum", "members": [ { "name": "RUNNING" }, { "name": "STOPPING" }, { "name": "STOPPED" } ], "name": { "name": "LifecycleOperationMode", "namespace": "_types" }, "specLocation": "_types/Lifecycle.ts#L20-L24" }, { "kind": "type_alias", "name": { "name": "MapboxVectorTiles", "namespace": "_types" }, "specLocation": "_types/Binary.ts#L21-L21", "type": { "kind": "instance_of", "type": { "name": "binary", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "MergesStats", "namespace": "_types" }, "properties": [ { "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "current_docs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "current_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "current_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_auto_throttle", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_auto_throttle_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_docs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_stopped_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_stopped_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_throttled_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_throttled_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L166-L183" }, { "kind": "type_alias", "name": { "name": "Metadata", "namespace": "_types" }, "specLocation": "_types/common.ts#L93-L93", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "kind": "type_alias", "name": { "name": "Metrics", "namespace": "_types" }, "specLocation": "_types/common.ts#L70-L70", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "kind": "type_alias", "description": "The minimum number of terms that should match as integer, percentage or range", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": { "name": "MinimumShouldMatch", "namespace": "_types" }, "specLocation": "_types/common.ts#L160-L164", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "kind": "type_alias", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": { "name": "MultiTermQueryRewrite", "namespace": "_types" }, "specLocation": "_types/common.ts#L132-L133", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "Name", "namespace": "_types" }, "specLocation": "_types/common.ts#L74-L74", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "Names", "namespace": "_types" }, "specLocation": "_types/common.ts#L75-L75", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "name": { "name": "Namespace", "namespace": "_types" }, "specLocation": "_types/common.ts#L77-L77", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "NestedSortValue", "namespace": "_types" }, "properties": [ { "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "max_children", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedSortValue", "namespace": "_types" } } }, { "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/sort.ts#L29-L34" }, { "kind": "interface", "name": { "name": "NodeAttributes", "namespace": "_types" }, "properties": [ { "description": "Lists node attributes.", "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The ephemeral ID of the node.", "name": "ephemeral_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The unique identifier of the node.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "description": "The unique identifier of the node.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } }, { "description": "The host and port where transport HTTP connections are accepted.", "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } } ], "specLocation": "_types/Node.ts#L41-L52" }, { "kind": "type_alias", "name": { "name": "NodeId", "namespace": "_types" }, "specLocation": "_types/common.ts#L57-L57", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "NodeIds", "namespace": "_types" }, "specLocation": "_types/common.ts#L58-L58", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "docId": "modules-node", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/node-settings", "name": { "name": "NodeName", "namespace": "_types" }, "specLocation": "_types/common.ts#L83-L84", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "enum", "members": [ { "name": "master" }, { "name": "data" }, { "name": "data_cold" }, { "name": "data_content" }, { "name": "data_frozen" }, { "name": "data_hot" }, { "name": "data_warm" }, { "name": "client" }, { "name": "ingest" }, { "name": "ml" }, { "name": "voting_only" }, { "name": "transform" }, { "name": "remote_cluster_client" }, { "name": "coordinating_only" } ], "name": { "name": "NodeRole", "namespace": "_types" }, "specLocation": "_types/Node.ts#L71-L89" }, { "kind": "type_alias", "description": "* @doc_id node-roles", "name": { "name": "NodeRoles", "namespace": "_types" }, "specLocation": "_types/Node.ts#L91-L94", "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeRole", "namespace": "_types" } } } }, { "kind": "interface", "name": { "name": "NodeShard", "namespace": "_types" }, "properties": [ { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardRoutingState", "namespace": "indices.stats" } } }, { "name": "primary", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "allocation_id", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "name": "recovery_source", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "name": "unassigned_info", "required": false, "type": { "kind": "instance_of", "type": { "name": "UnassignedInformation", "namespace": "cluster.allocation_explain" } } }, { "name": "relocating_node", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "relocation_failure_info", "required": false, "type": { "kind": "instance_of", "type": { "name": "RelocationFailureInfo", "namespace": "_types" } } } ], "specLocation": "_types/Node.ts#L54-L65" }, { "kind": "interface", "description": "Contains statistics about the number of nodes selected by the request.", "name": { "name": "NodeStatistics", "namespace": "_types" }, "properties": [ { "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } }, { "description": "Total number of nodes selected by the request.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of nodes that responded successfully to the request.", "name": "successful", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response.", "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/Node.ts#L28-L39" }, { "kind": "enum", "members": [ { "name": "no" }, { "name": "h1" }, { "name": "h2" }, { "name": "h3" }, { "name": "z" } ], "name": { "name": "Normalization", "namespace": "_types" }, "specLocation": "_types/Similarity.ts#L52-L58" }, { "kind": "enum", "members": [ { "description": "Overwrite any documents that already exist.", "name": "index" }, { "description": "Only index documents that do not already exist.", "name": "create" } ], "name": { "name": "OpType", "namespace": "_types" }, "specLocation": "_types/common.ts#L252-L261" }, { "kind": "type_alias", "name": { "name": "Password", "namespace": "_types" }, "specLocation": "_types/common.ts#L192-L192", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "Percentage", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L28-L28", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } ] } }, { "kind": "type_alias", "name": { "name": "PipelineName", "namespace": "_types" }, "specLocation": "_types/common.ts#L80-L80", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "PluginStats", "namespace": "_types" }, "properties": [ { "name": "classname", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "elasticsearch_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "extended_plugins", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "has_native_controller", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "java_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "licensed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/Stats.ts#L185-L195" }, { "kind": "type_alias", "name": { "name": "PropertyName", "namespace": "_types" }, "specLocation": "_types/common.ts#L127-L127", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "QueryCacheStats", "namespace": "_types" }, "properties": [ { "description": "Total number of entries added to the query cache across all shards assigned to selected nodes.\nThis number includes current and evicted entries.", "name": "cache_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of entries currently in the query cache across all shards assigned to selected nodes.", "name": "cache_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of query cache evictions across all shards assigned to selected nodes.", "name": "evictions", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total count of query cache hits across all shards assigned to selected nodes.", "name": "hit_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used for the query cache across all shards assigned to selected nodes.", "name": "memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for the query cache across all shards assigned to selected nodes.", "name": "memory_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total count of query cache misses across all shards assigned to selected nodes.", "name": "miss_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total count of hits and misses in the query cache across all shards assigned to selected nodes.", "name": "total_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L197-L231" }, { "kind": "type_alias", "name": { "name": "QueryVector", "namespace": "_types" }, "specLocation": "_types/Knn.ts#L25-L25", "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } }, { "kind": "interface", "name": { "name": "QueryVectorBuilder", "namespace": "_types" }, "properties": [ { "name": "text_embedding", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextEmbedding", "namespace": "_types" } } } ], "specLocation": "_types/Knn.ts#L89-L92", "variants": { "kind": "container" } }, { "kind": "interface", "inherits": { "type": { "name": "RetrieverBase", "namespace": "_types" } }, "name": { "name": "RRFRetriever", "namespace": "_types" }, "properties": [ { "description": "A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.", "name": "retrievers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RetrieverContainer", "namespace": "_types" } } } }, { "description": "This value determines how much influence documents in individual result sets per query have over the final ranked result set.", "name": "rank_constant", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "This value determines the size of the individual result sets per query.", "name": "rank_window_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/Retriever.ts#L84-L91" }, { "kind": "interface", "name": { "name": "RankBase", "namespace": "_types" }, "properties": [], "specLocation": "_types/Rank.ts#L30-L30" }, { "kind": "interface", "name": { "name": "RankContainer", "namespace": "_types" }, "properties": [ { "description": "The reciprocal rank fusion parameters", "name": "rrf", "required": false, "type": { "kind": "instance_of", "type": { "name": "RrfRank", "namespace": "_types" } } } ], "specLocation": "_types/Rank.ts#L22-L28", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "RecoveryStats", "namespace": "_types" }, "properties": [ { "name": "current_as_source", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "current_as_target", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "throttle_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "throttle_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L233-L238" }, { "kind": "enum", "esQuirk": "This is a boolean that evolved into an enum. ES also accepts plain booleans for true and false.", "members": [ { "name": "true" }, { "name": "false" }, { "name": "wait_for" } ], "name": { "name": "Refresh", "namespace": "_types" }, "specLocation": "_types/common.ts#L263-L270" }, { "kind": "interface", "name": { "name": "RefreshStats", "namespace": "_types" }, "properties": [ { "name": "external_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "external_total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "listeners", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L240-L247" }, { "kind": "type_alias", "name": { "name": "RelationName", "namespace": "_types" }, "specLocation": "_types/common.ts#L128-L128", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "RelocationFailureInfo", "namespace": "_types" }, "properties": [ { "name": "failed_attempts", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/Node.ts#L67-L69" }, { "kind": "interface", "attachedBehaviors": [ "CommonQueryParameters" ], "behaviors": [ { "type": { "name": "CommonQueryParameters", "namespace": "_spec_utils" } } ], "name": { "name": "RequestBase", "namespace": "_types" }, "properties": [], "specLocation": "_types/Base.ts#L34-L34" }, { "kind": "interface", "name": { "name": "RequestCacheStats", "namespace": "_types" }, "properties": [ { "name": "evictions", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "hit_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "memory_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "miss_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L249-L255" }, { "kind": "interface", "name": { "name": "RescoreVector", "namespace": "_types" }, "properties": [ { "description": "Applies the specified oversample factor to k on the approximate kNN search", "name": "oversample", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/Knn.ts#L30-L33" }, { "kind": "enum", "members": [ { "name": "created" }, { "name": "updated" }, { "name": "deleted" }, { "name": "not_found" }, { "codegenName": "no_op", "name": "noop" } ], "name": { "name": "Result", "namespace": "_types" }, "specLocation": "_types/Result.ts#L20-L26" }, { "kind": "interface", "name": { "name": "Retries", "namespace": "_types" }, "properties": [ { "description": "The number of bulk actions retried.", "name": "bulk", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of search actions retried.", "name": "search", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Retries.ts#L22-L31" }, { "kind": "interface", "name": { "name": "RetrieverBase", "namespace": "_types" }, "properties": [ { "description": "Query to filter the documents that can match.", "name": "filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "description": "Minimum _score for matching documents. Documents with a lower _score are not included in the top documents.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/Retriever.ts#L44-L49" }, { "kind": "interface", "name": { "name": "RetrieverContainer", "namespace": "_types" }, "properties": [ { "description": "A retriever that replaces the functionality of a traditional query.", "name": "standard", "required": false, "type": { "kind": "instance_of", "type": { "name": "StandardRetriever", "namespace": "_types" } } }, { "description": "A retriever that replaces the functionality of a knn search.", "name": "knn", "required": false, "type": { "kind": "instance_of", "type": { "name": "KnnRetriever", "namespace": "_types" } } }, { "description": "A retriever that produces top documents from reciprocal rank fusion (RRF).", "name": "rrf", "required": false, "type": { "kind": "instance_of", "type": { "name": "RRFRetriever", "namespace": "_types" } } }, { "description": "A retriever that reranks the top documents based on a reranking model using the InferenceAPI", "name": "text_similarity_reranker", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextSimilarityReranker", "namespace": "_types" } } }, { "description": "A retriever that replaces the functionality of a rule query.", "name": "rule", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuleRetriever", "namespace": "_types" } } } ], "specLocation": "_types/Retriever.ts#L28-L42", "variants": { "kind": "container" } }, { "kind": "type_alias", "name": { "name": "Routing", "namespace": "_types" }, "specLocation": "_types/common.ts#L66-L66", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "inherits": { "type": { "name": "RankBase", "namespace": "_types" } }, "name": { "name": "RrfRank", "namespace": "_types" }, "properties": [ { "description": "How much influence documents in individual result sets per query have over the final ranked result set", "name": "rank_constant", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Size of the individual result sets per query", "name": "rank_window_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Rank.ts#L32-L37" }, { "kind": "interface", "inherits": { "type": { "name": "RetrieverBase", "namespace": "_types" } }, "name": { "name": "RuleRetriever", "namespace": "_types" }, "properties": [ { "description": "The ruleset IDs containing the rules this retriever is evaluating against.", "name": "ruleset_ids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "description": "The match criteria that will determine if a rule in the provided rulesets should be applied.", "name": "match_criteria", "required": true, "type": { "kind": "user_defined_value" } }, { "description": "The retriever whose results rules should be applied to.", "name": "retriever", "required": true, "type": { "kind": "instance_of", "type": { "name": "RetrieverContainer", "namespace": "_types" } } }, { "description": "This value determines the size of the individual result set.", "name": "rank_window_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/Retriever.ts#L106-L115" }, { "kind": "type_alias", "codegenNames": [ "long", "double", "string", "boolean", "null" ], "description": "A scalar value.", "name": { "name": "ScalarValue", "namespace": "_types" }, "specLocation": "_types/common.ts#L33-L37", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "kind": "interface", "name": { "name": "ScoreSort", "namespace": "_types" }, "properties": [ { "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } } ], "specLocation": "_types/sort.ts#L54-L56" }, { "kind": "interface", "name": { "name": "Script", "namespace": "_types" }, "properties": [ { "description": "The script source.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } }, { "description": "The `id` for a stored script.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Specifies any named parameters that are passed into the script as variables.\nUse parameters instead of hard-coded values to decrease compile time.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Specifies the language the script is written in.", "name": "lang", "required": false, "serverDefault": "painless", "type": { "kind": "instance_of", "type": { "name": "ScriptLanguage", "namespace": "_types" } } }, { "name": "options", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "shortcutProperty": "source", "specLocation": "_types/Scripting.ts#L65-L89" }, { "kind": "interface", "name": { "name": "ScriptField", "namespace": "_types" }, "properties": [ { "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "ignore_failure", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/Scripting.ts#L91-L94" }, { "kind": "enum", "isOpen": true, "members": [ { "description": "Painless scripting language, purpose-built for Elasticsearch.", "name": "painless" }, { "description": "Lucene’s expressions language, compiles a JavaScript expression to bytecode.", "name": "expression" }, { "description": "Mustache templated, used for templates.", "name": "mustache" }, { "description": "Expert Java API", "name": "java" } ], "name": { "name": "ScriptLanguage", "namespace": "_types" }, "specLocation": "_types/Scripting.ts#L25-L46" }, { "kind": "interface", "name": { "name": "ScriptSort", "namespace": "_types" }, "properties": [ { "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSortType", "namespace": "_types" } } }, { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortMode", "namespace": "_types" } } }, { "name": "nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedSortValue", "namespace": "_types" } } } ], "specLocation": "_types/sort.ts#L72-L78" }, { "kind": "enum", "members": [ { "name": "string" }, { "name": "number" }, { "name": "version" } ], "name": { "name": "ScriptSortType", "namespace": "_types" }, "specLocation": "_types/sort.ts#L80-L84" }, { "kind": "type_alias", "codegenNames": [ "script_string", "script_template" ], "name": { "name": "ScriptSource", "namespace": "_types" }, "specLocation": "_types/Scripting.ts#L48-L49", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "SearchRequestBody", "namespace": "_global.search._types" } } ] } }, { "kind": "interface", "name": { "name": "ScriptTransform", "namespace": "_types" }, "properties": [ { "name": "lang", "required": false, "serverDefault": "painless", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } }, { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Transform.ts#L37-L45" }, { "kind": "type_alias", "name": { "name": "ScrollId", "namespace": "_types" }, "specLocation": "_types/common.ts#L49-L49", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "ScrollIds", "namespace": "_types" }, "specLocation": "_types/common.ts#L50-L50", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } } ] } }, { "kind": "interface", "name": { "name": "SearchStats", "namespace": "_types" }, "properties": [ { "name": "fetch_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "fetch_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "fetch_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "fetch_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "open_contexts", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "query_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "query_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "query_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "query_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "scroll_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "scroll_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "scroll_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "scroll_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "suggest_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "suggest_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "suggest_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "suggest_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "groups", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "SearchStats", "namespace": "_types" } } } } ], "specLocation": "_types/Stats.ts#L257-L276" }, { "kind": "interface", "name": { "name": "SearchTransform", "namespace": "_types" }, "properties": [ { "name": "request", "required": true, "type": { "kind": "instance_of", "type": { "name": "SearchInputRequestDefinition", "namespace": "watcher._types" } } }, { "name": "timeout", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "_types/Transform.ts#L47-L50" }, { "kind": "enum", "members": [ { "description": "Documents are scored using local term and document frequencies for the shard. This is usually faster but less accurate.", "name": "query_then_fetch" }, { "description": "Documents are scored using global term and document frequencies across all shards. This is usually slower but more accurate.", "name": "dfs_query_then_fetch" } ], "name": { "name": "SearchType", "namespace": "_types" }, "specLocation": "_types/common.ts#L272-L277" }, { "kind": "interface", "name": { "name": "SegmentsStats", "namespace": "_types" }, "properties": [ { "description": "Total number of segments across all shards assigned to selected nodes.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total amount of memory used for doc values across all shards assigned to selected nodes.", "name": "doc_values_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for doc values across all shards assigned to selected nodes.", "name": "doc_values_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "This object is not populated by the cluster stats API.\nTo get information on segment files, use the node stats API.", "name": "file_sizes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ShardFileSizeInfo", "namespace": "indices.stats" } } } }, { "description": "Total amount of memory used by fixed bit sets across all shards assigned to selected nodes.\nFixed bit sets are used for nested object field types and type filters for join fields.", "name": "fixed_bit_set", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount of memory, in bytes, used by fixed bit sets across all shards assigned to selected nodes.", "name": "fixed_bit_set_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used by all index writers across all shards assigned to selected nodes.", "name": "index_writer_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "index_writer_max_memory_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used by all index writers across all shards assigned to selected nodes.", "name": "index_writer_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Unix timestamp, in milliseconds, of the most recently retried indexing request.", "name": "max_unsafe_auto_id_timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used for segments across all shards assigned to selected nodes.", "name": "memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for segments across all shards assigned to selected nodes.", "name": "memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used for normalization factors across all shards assigned to selected nodes.", "name": "norms_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for normalization factors across all shards assigned to selected nodes.", "name": "norms_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used for points across all shards assigned to selected nodes.", "name": "points_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for points across all shards assigned to selected nodes.", "name": "points_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "stored_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for stored fields across all shards assigned to selected nodes.", "name": "stored_fields_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for terms across all shards assigned to selected nodes.", "name": "terms_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used for terms across all shards assigned to selected nodes.", "name": "terms_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount of memory used for term vectors across all shards assigned to selected nodes.", "name": "term_vectory_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used for term vectors across all shards assigned to selected nodes.", "name": "term_vectors_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of memory used by all version maps across all shards assigned to selected nodes.", "name": "version_map_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of memory used by all version maps across all shards assigned to selected nodes.", "name": "version_map_memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L278-L371" }, { "kind": "type_alias", "name": { "name": "SequenceNumber", "namespace": "_types" }, "specLocation": "_types/common.ts#L125-L125", "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "kind": "type_alias", "name": { "name": "Service", "namespace": "_types" }, "specLocation": "_types/common.ts#L78-L78", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "ShardFailure", "namespace": "_types" }, "properties": [ { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Errors.ts#L52-L58" }, { "kind": "interface", "name": { "name": "ShardStatistics", "namespace": "_types" }, "properties": [ { "description": "The number of shards the operation or search attempted to run on but failed.", "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "The number of shards the operation or search succeeded on.", "name": "successful", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "The number of shards the operation or search will run on overall.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardFailure", "namespace": "_types" } } } }, { "name": "skipped", "required": false, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L54-L69" }, { "kind": "interface", "name": { "name": "ShardsOperationResponseBase", "namespace": "_types" }, "properties": [ { "name": "_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ], "specLocation": "_types/Base.ts#L142-L145" }, { "kind": "interface", "name": { "name": "SlicedScroll", "namespace": "_types" }, "properties": [ { "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/SlicedScroll.ts#L23-L27" }, { "kind": "type_alias", "codegenNames": [ "value", "computed" ], "description": "Slices configuration used to parallelize a process.", "name": { "name": "Slices", "namespace": "_types" }, "specLocation": "_types/common.ts#L361-L366", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "SlicesCalculation", "namespace": "_types" } } ] } }, { "kind": "enum", "members": [ { "description": "Let Elasticsearch choose a reasonable number for most data streams and indices.", "name": "auto" } ], "name": { "name": "SlicesCalculation", "namespace": "_types" }, "specLocation": "_types/common.ts#L368-L376" }, { "kind": "type_alias", "name": { "name": "Sort", "namespace": "_types" }, "specLocation": "_types/sort.ts#L104-L104", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SortCombinations", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SortCombinations", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "codegenNames": [ "field", "options" ], "name": { "name": "SortCombinations", "namespace": "_types" }, "specLocation": "_types/sort.ts#L98-L102", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "SortOptions", "namespace": "_types" } } ] } }, { "kind": "enum", "members": [ { "name": "min" }, { "name": "max" }, { "name": "sum" }, { "name": "avg" }, { "name": "median" } ], "name": { "name": "SortMode", "namespace": "_types" }, "specLocation": "_types/sort.ts#L108-L117" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "FieldSort", "namespace": "_types" } } ], "meta": { "key": "field", "value": "sort" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "docId": "sort-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": { "name": "SortOptions", "namespace": "_types" }, "properties": [ { "name": "_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScoreSort", "namespace": "_types" } } }, { "name": "_doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScoreSort", "namespace": "_types" } } }, { "name": "_geo_distance", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoDistanceSort", "namespace": "_types" } } }, { "name": "_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSort", "namespace": "_types" } } } ], "specLocation": "_types/sort.ts#L86-L96", "variants": { "kind": "container" } }, { "kind": "enum", "members": [ { "description": "Ascending (smallest to largest)", "name": "asc" }, { "description": "Descending (largest to smallest)", "name": "desc" } ], "name": { "name": "SortOrder", "namespace": "_types" }, "specLocation": "_types/sort.ts#L119-L128" }, { "kind": "type_alias", "name": { "name": "SortResults", "namespace": "_types" }, "specLocation": "_types/sort.ts#L106-L106", "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } }, { "kind": "interface", "inherits": { "type": { "name": "RetrieverBase", "namespace": "_types" } }, "name": { "name": "StandardRetriever", "namespace": "_types" }, "properties": [ { "description": "Defines a query to retrieve a set of top documents.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Defines a search after object parameter used for pagination.", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } }, { "description": "Maximum number of documents to collect for each shard.", "name": "terminate_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A sort object that that specifies the order of matching documents.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "Collapses the top documents by a specified key into a single top document per key.", "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } } ], "specLocation": "_types/Retriever.ts#L51-L62" }, { "kind": "interface", "name": { "name": "StoreStats", "namespace": "_types" }, "properties": [ { "description": "Total size of all shards assigned to selected nodes.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total size, in bytes, of all shards assigned to selected nodes.", "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A prediction of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities.", "name": "reserved", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "A prediction, in bytes, of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities.", "name": "reserved_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total data set size of all shards assigned to selected nodes.\nThis includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices.", "name": "total_data_set_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total data set size, in bytes, of all shards assigned to selected nodes.\nThis includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices.", "name": "total_data_set_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L373-L400" }, { "kind": "interface", "name": { "name": "StoredScript", "namespace": "_types" }, "properties": [ { "description": "The language the script is written in.\nFor search templates, use `mustache`.", "name": "lang", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScriptLanguage", "namespace": "_types" } } }, { "name": "options", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The script source.\nFor search templates, an object containing the search template.", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } } ], "specLocation": "_types/Scripting.ts#L51-L63" }, { "kind": "type_alias", "name": { "name": "StreamResult", "namespace": "_types" }, "specLocation": "_types/Binary.ts#L24-L24", "type": { "kind": "instance_of", "type": { "name": "binary", "namespace": "_builtins" } } }, { "kind": "enum", "members": [ { "description": "Only generate suggestions for terms that are not in the shard.", "name": "missing" }, { "description": "Only suggest terms that occur in more docs on the shard than the original term.", "name": "popular" }, { "description": "Suggest any matching suggestions based on terms in the suggest text.", "name": "always" } ], "name": { "name": "SuggestMode", "namespace": "_types" }, "specLocation": "_types/common.ts#L279-L292" }, { "kind": "type_alias", "description": "The suggestion name as returned from the server. Depending whether typed_keys is specified this could come back\nin the form of `name#type` instead of simply `name`", "name": { "name": "SuggestionName", "namespace": "_types" }, "specLocation": "_types/common.ts#L148-L152", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "TaskFailure", "namespace": "_types" }, "properties": [ { "name": "task_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "_types/Errors.ts#L67-L72" }, { "kind": "type_alias", "name": { "name": "TaskId", "namespace": "_types" }, "specLocation": "_types/common.ts#L129-L129", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ] } }, { "kind": "interface", "name": { "name": "TextEmbedding", "namespace": "_types" }, "properties": [ { "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Knn.ts#L94-L97" }, { "kind": "interface", "inherits": { "type": { "name": "RetrieverBase", "namespace": "_types" } }, "name": { "name": "TextSimilarityReranker", "namespace": "_types" }, "properties": [ { "description": "The nested retriever which will produce the first-level results, that will later be used for reranking.", "name": "retriever", "required": true, "type": { "kind": "instance_of", "type": { "name": "RetrieverContainer", "namespace": "_types" } } }, { "description": "This value determines how many documents we will consider from the nested retriever.", "name": "rank_window_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Unique identifier of the inference endpoint created using the inference API.", "name": "inference_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The text snippet used as the basis for similarity comparison", "name": "inference_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Retriever.ts#L93-L104" }, { "kind": "enum", "members": [ { "name": "cpu" }, { "name": "wait" }, { "name": "block" }, { "name": "gpu" }, { "name": "mem" } ], "name": { "name": "ThreadType", "namespace": "_types" }, "specLocation": "_types/common.ts#L294-L300" }, { "kind": "type_alias", "description": "Time of day, expressed as HH:MM:SS", "name": { "name": "TimeOfDay", "namespace": "_types" }, "specLocation": "_types/Time.ts#L44-L45", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "enum", "members": [ { "codegenName": "nanoseconds", "name": "nanos" }, { "codegenName": "microseconds", "name": "micros" }, { "codegenName": "milliseconds", "name": "ms" }, { "codegenName": "seconds", "name": "s" }, { "codegenName": "minutes", "name": "m" }, { "codegenName": "hours", "name": "h" }, { "codegenName": "days", "name": "d" } ], "name": { "name": "TimeUnit", "namespace": "_types" }, "specLocation": "_types/Time.ts#L69-L77" }, { "kind": "type_alias", "name": { "name": "TimeZone", "namespace": "_types" }, "specLocation": "_types/Time.ts#L47-L47", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "TopLeftBottomRightGeoBounds", "namespace": "_types" }, "properties": [ { "name": "top_left", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } }, { "name": "bottom_right", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } } ], "specLocation": "_types/Geo.ts#L161-L164" }, { "kind": "interface", "name": { "name": "TopRightBottomLeftGeoBounds", "namespace": "_types" }, "properties": [ { "name": "top_right", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } }, { "name": "bottom_left", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } } ], "specLocation": "_types/Geo.ts#L166-L169" }, { "kind": "interface", "name": { "name": "TransformContainer", "namespace": "_types" }, "properties": [ { "name": "chain", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransformContainer", "namespace": "_types" } } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptTransform", "namespace": "_types" } } }, { "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchTransform", "namespace": "_types" } } } ], "specLocation": "_types/Transform.ts#L28-L35", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "TranslogStats", "namespace": "_types" }, "properties": [ { "name": "earliest_last_modified_age", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "operations", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "uncommitted_operations", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "uncommitted_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "uncommitted_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L402-L410" }, { "kind": "type_alias", "name": { "name": "TransportAddress", "namespace": "_types" }, "specLocation": "_types/Networking.ts#L22-L22", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "description": "Time unit for fractional milliseconds", "name": { "name": "UnitFloatMillis", "namespace": "_types" }, "specLocation": "_types/Time.ts#L37-L38", "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "kind": "type_alias", "description": "Time unit for milliseconds", "name": { "name": "UnitMillis", "namespace": "_types" }, "specLocation": "_types/Time.ts#L33-L34", "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "kind": "type_alias", "description": "Time unit for nanoseconds", "name": { "name": "UnitNanos", "namespace": "_types" }, "specLocation": "_types/Time.ts#L35-L36", "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "kind": "type_alias", "description": "Time unit for seconds", "name": { "name": "UnitSeconds", "namespace": "_types" }, "specLocation": "_types/Time.ts#L29-L30", "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "kind": "type_alias", "name": { "name": "Username", "namespace": "_types" }, "specLocation": "_types/common.ts#L191-L191", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "Uuid", "namespace": "_types" }, "specLocation": "_types/common.ts#L122-L122", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "VersionNumber", "namespace": "_types" }, "specLocation": "_types/common.ts#L96-L96", "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "kind": "type_alias", "name": { "name": "VersionString", "namespace": "_types" }, "specLocation": "_types/common.ts#L98-L98", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "enum", "members": [ { "description": "Use internal versioning that starts at 1 and increments with each update or delete.", "name": "internal" }, { "description": "Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document.", "name": "external" }, { "description": "Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document.\nNOTE: The `external_gte` version type is meant for special use cases and should be used with care.\nIf used incorrectly, it can result in loss of data.", "name": "external_gte" }, { "description": "This option is deprecated because it can cause primary and replica shards to diverge.", "name": "force" } ], "name": { "name": "VersionType", "namespace": "_types" }, "specLocation": "_types/common.ts#L100-L119" }, { "kind": "enum", "members": [ { "name": "all" }, { "name": "index-setting" } ], "name": { "name": "WaitForActiveShardOptions", "namespace": "_types" }, "specLocation": "_types/common.ts#L302-L306" }, { "kind": "type_alias", "codegenNames": [ "count", "option" ], "name": { "name": "WaitForActiveShards", "namespace": "_types" }, "specLocation": "_types/common.ts#L139-L140", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "WaitForActiveShardOptions", "namespace": "_types" } } ] } }, { "kind": "enum", "members": [ { "name": "immediate" }, { "name": "urgent" }, { "name": "high" }, { "name": "normal" }, { "name": "low" }, { "name": "languid" } ], "name": { "name": "WaitForEvents", "namespace": "_types" }, "specLocation": "_types/common.ts#L308-L315" }, { "kind": "interface", "name": { "name": "WarmerStats", "namespace": "_types" }, "properties": [ { "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "_types/Stats.ts#L412-L417" }, { "kind": "interface", "name": { "name": "WktGeoBounds", "namespace": "_types" }, "properties": [ { "name": "wkt", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/Geo.ts#L150-L152" }, { "kind": "interface", "name": { "name": "WriteResponseBase", "namespace": "_types" }, "properties": [ { "description": "The unique identifier for the added document.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the index the document was added to.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The primary term assigned to the document for the indexing operation.", "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The result of the indexing operation: `created` or `updated`.", "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } }, { "description": "The sequence number assigned to the document for the indexing operation.\nSequence numbers are used to ensure an older version of a document doesn't overwrite a newer version.", "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "Information about the replication process of the operation.", "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "description": "The document version, which is incremented each time the document is updated.", "name": "_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "forced_refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/Base.ts#L36-L67" }, { "kind": "type_alias", "name": { "name": "byte", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L21-L21", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "double", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L27-L27", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "float", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L26-L26", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "integer", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L22-L22", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "long", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L24-L24", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "short", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L20-L20", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "uint", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L23-L23", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "type_alias", "name": { "name": "ulong", "namespace": "_types" }, "specLocation": "_types/Numeric.ts#L25-L25", "type": { "kind": "instance_of", "type": { "name": "number", "namespace": "_builtins" } } }, { "kind": "interface", "extDocId": "search-aggregations-bucket-adjacency-matrix-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-adjacency-matrix-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "AdjacencyMatrixBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "AdjacencyMatrixAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L647-L652", "variantName": "adjacency_matrix" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "AdjacencyMatrixAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Filters used to create buckets.\nAt least one filter is required.", "name": "filters", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } }, { "description": "Separator used to concatenate filter names. Defaults to &.", "name": "separator", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L60-L70" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "AdjacencyMatrixBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L654-L656" }, { "kind": "type_alias", "extDocId": "search-aggregations", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/aggregations", "name": { "name": "Aggregate", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/Aggregate.ts#L38-L125", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CardinalityAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "HdrPercentilesAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "HdrPercentileRanksAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "TDigestPercentilesAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "TDigestPercentileRanksAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "PercentilesBucketAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MedianAbsoluteDeviationAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MinAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MaxAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "SumAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "AvgAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "WeightedAvgAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ValueCountAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "SimpleValueAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "DerivativeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "BucketMetricValueAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "StatsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "StatsBucketAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ExtendedStatsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ExtendedStatsBucketAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoBoundsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoCentroidAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "HistogramAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "DateHistogramAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "AutoDateHistogramAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "VariableWidthHistogramAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "StringTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "LongTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "DoubleTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "UnmappedTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "LongRareTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "StringRareTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "UnmappedRareTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MultiTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MissingAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "NestedAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ReverseNestedAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GlobalAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "FilterAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ChildrenAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ParentAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "SamplerAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "UnmappedSamplerAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoHashGridAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoTileGridAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoHexGridAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "RangeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "DateRangeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoDistanceAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "IpRangeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "IpPrefixAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "FiltersAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "AdjacencyMatrixAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "SignificantLongTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "SignificantStringTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "UnmappedSignificantTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "CompositeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "FrequentItemSetsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "TimeSeriesAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ScriptedMetricAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "TopHitsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "InferenceAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "StringStatsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "BoxPlotAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "TopMetricsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "TTestAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "RateAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "CumulativeCardinalityAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MatrixStatsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "GeoLineAggregate", "namespace": "_types.aggregations" } } ] }, "variants": { "kind": "external_tag", "nonExhaustive": true } }, { "kind": "interface", "name": { "name": "AggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L136-L138" }, { "kind": "type_alias", "name": { "name": "AggregateOrder", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L1052-L1054", "type": { "kind": "union_of", "items": [ { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } } } ] } }, { "kind": "interface", "name": { "name": "Aggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregation.ts#L20-L20" }, { "kind": "interface", "name": { "name": "AggregationContainer", "namespace": "_types.aggregations" }, "properties": [ { "aliases": [ "aggs" ], "containerProperty": true, "description": "Sub-aggregations for this aggregation.\nOnly applies to bucket aggregations.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "containerProperty": true, "name": "meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "A bucket aggregation returning a form of adjacency matrix.\nThe request provides a collection of named filter expressions, similar to the `filters` aggregation.\nEach bucket in the response represents a non-empty cell in the matrix of intersecting filters.", "extDocId": "search-aggregations-bucket-adjacency-matrix-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-adjacency-matrix-aggregation", "name": "adjacency_matrix", "required": false, "type": { "kind": "instance_of", "type": { "name": "AdjacencyMatrixAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation similar to the date histogram, except instead of providing an interval to use as the width of each bucket, a target number of buckets is provided.", "extDocId": "search-aggregations-bucket-autodatehistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-autodatehistogram-aggregation", "name": "auto_date_histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "AutoDateHistogramAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that computes the average of numeric values that are extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-avg-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-avg-aggregation", "name": "avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "AverageAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which calculates the mean value of a specified metric in a sibling aggregation.\nThe specified metric must be numeric and the sibling aggregation must be a multi-bucket aggregation.", "extDocId": "search-aggregations-pipeline-avg-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-avg-bucket-aggregation", "name": "avg_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "AverageBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metrics aggregation that computes a box plot of numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-boxplot-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-boxplot-aggregation", "name": "boxplot", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoxplotAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which runs a script which can perform per bucket computations on metrics in the parent multi-bucket aggregation.", "extDocId": "search-aggregations-pipeline-bucket-script-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-bucket-script-aggregation", "name": "bucket_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "BucketScriptAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which runs a script to determine whether the current bucket will be retained in the parent multi-bucket aggregation.", "extDocId": "search-aggregations-pipeline-bucket-selector-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-bucket-selector-aggregation", "name": "bucket_selector", "required": false, "type": { "kind": "instance_of", "type": { "name": "BucketSelectorAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which sorts the buckets of its parent multi-bucket aggregation.", "extDocId": "search-aggregations-pipeline-bucket-sort-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-bucket-sort-aggregation", "name": "bucket_sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "BucketSortAggregation", "namespace": "_types.aggregations" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "A sibling pipeline aggregation which runs a two sample Kolmogorov–Smirnov test (\"K-S test\") against a provided distribution and the distribution implied by the documents counts in the configured sibling aggregation.", "extDocId": "search-aggregations-bucket-count-ks-test-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-count-ks-test-aggregation", "name": "bucket_count_ks_test", "required": false, "type": { "kind": "instance_of", "type": { "name": "BucketKsAggregation", "namespace": "_types.aggregations" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "A sibling pipeline aggregation which runs a correlation function on the configured sibling multi-bucket aggregation.", "extDocId": "search-aggregations-bucket-correlation-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-correlation-aggregation", "name": "bucket_correlation", "required": false, "type": { "kind": "instance_of", "type": { "name": "BucketCorrelationAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that calculates an approximate count of distinct values.", "extDocId": "search-aggregations-metrics-cardinality-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-cardinality-aggregation", "name": "cardinality", "required": false, "type": { "kind": "instance_of", "type": { "name": "CardinalityAggregation", "namespace": "_types.aggregations" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "A multi-bucket aggregation that groups semi-structured text into buckets.", "extDocId": "search-aggregations-bucket-categorize-text-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-categorize-text-aggregation", "name": "categorize_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "CategorizeTextAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single bucket aggregation that selects child documents that have the specified type, as defined in a `join` field.", "extDocId": "search-aggregations-bucket-children-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-children-aggregation", "name": "children", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChildrenAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation that creates composite buckets from different sources.\nUnlike the other multi-bucket aggregations, you can use the `composite` aggregation to paginate *all* buckets from a multi-level aggregation efficiently.", "name": "composite", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which calculates the cumulative cardinality in a parent `histogram` or `date_histogram` aggregation.", "extDocId": "search-aggregations-pipeline-cumulative-cardinality-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-cumulative-cardinality-aggregation", "name": "cumulative_cardinality", "required": false, "type": { "kind": "instance_of", "type": { "name": "CumulativeCardinalityAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which calculates the cumulative sum of a specified metric in a parent `histogram` or `date_histogram` aggregation.", "extDocId": "search-aggregations-pipeline-cumulative-sum-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-cumulative-sum-aggregation", "name": "cumulative_sum", "required": false, "type": { "kind": "instance_of", "type": { "name": "CumulativeSumAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket values source based aggregation that can be applied on date values or date range values extracted from the documents.\nIt dynamically builds fixed size (interval) buckets over the values.", "extDocId": "search-aggregations-bucket-datehistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-datehistogram-aggregation", "name": "date_histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateHistogramAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation that enables the user to define a set of date ranges - each representing a bucket.", "extDocId": "search-aggregations-bucket-daterange-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-daterange-aggregation", "name": "date_range", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateRangeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which calculates the derivative of a specified metric in a parent `histogram` or `date_histogram` aggregation.", "extDocId": "search-aggregations-pipeline-derivative-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-derivative-aggregation", "name": "derivative", "required": false, "type": { "kind": "instance_of", "type": { "name": "DerivativeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A filtering aggregation used to limit any sub aggregations' processing to a sample of the top-scoring documents.\nSimilar to the `sampler` aggregation, but adds the ability to limit the number of matches that share a common value.", "extDocId": "search-aggregations-bucket-diversified-sampler-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-diversified-sampler-aggregation", "name": "diversified_sampler", "required": false, "type": { "kind": "instance_of", "type": { "name": "DiversifiedSamplerAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-value metrics aggregation that computes stats over numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-extendedstats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-extendedstats-aggregation", "name": "extended_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExtendedStatsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which calculates a variety of stats across all bucket of a specified metric in a sibling aggregation.", "extDocId": "search-aggregations-pipeline-extended-stats-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-extended-stats-bucket-aggregation", "name": "extended_stats_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExtendedStatsBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A bucket aggregation which finds frequent item sets, a form of association rules mining that identifies items that often occur together.", "extDocId": "search-aggregations-bucket-frequent-item-sets-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-frequent-item-sets-aggregation", "name": "frequent_item_sets", "required": false, "type": { "kind": "instance_of", "type": { "name": "FrequentItemSetsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single bucket aggregation that narrows the set of documents to those that match a query.", "extDocId": "search-aggregations-bucket-filter-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-filter-aggregation", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "A multi-bucket aggregation where each bucket contains the documents that match a query.", "extDocId": "search-aggregations-bucket-filters-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-filters-aggregation", "name": "filters", "required": false, "type": { "kind": "instance_of", "type": { "name": "FiltersAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metric aggregation that computes the geographic bounding box containing all values for a Geopoint or Geoshape field.", "extDocId": "search-aggregations-metrics-geobounds-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geobounds-aggregation", "name": "geo_bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBoundsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metric aggregation that computes the weighted centroid from all coordinate values for geo fields.", "extDocId": "search-aggregations-metrics-geocentroid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geocentroid-aggregation", "name": "geo_centroid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoCentroidAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation that works on `geo_point` fields.\nEvaluates the distance of each document value from an origin point and determines the buckets it belongs to, based on ranges defined in the request.", "extDocId": "search-aggregations-bucket-geodistance-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geodistance-aggregation", "name": "geo_distance", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoDistanceAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation that groups `geo_point` and `geo_shape` values into buckets that represent a grid.\nEach cell is labeled using a geohash which is of user-definable precision.", "extDocId": "search-aggregations-bucket-geohashgrid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geohashgrid-aggregation", "name": "geohash_grid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoHashGridAggregation", "namespace": "_types.aggregations" } } }, { "description": "Aggregates all `geo_point` values within a bucket into a `LineString` ordered by the chosen sort field.", "extDocId": "search-aggregations-metrics-geo-line", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geo-line", "name": "geo_line", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoLineAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation that groups `geo_point` and `geo_shape` values into buckets that represent a grid.\nEach cell corresponds to a map tile as used by many online map sites.", "extDocId": "search-aggregations-bucket-geotilegrid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geotilegrid-aggregation", "name": "geotile_grid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoTileGridAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation that groups `geo_point` and `geo_shape` values into buckets that represent a grid.\nEach cell corresponds to a H3 cell index and is labeled using the H3Index representation.", "extDocId": "search-aggregations-bucket-geohexgrid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geohexgrid-aggregation", "name": "geohex_grid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeohexGridAggregation", "namespace": "_types.aggregations" } } }, { "description": "Defines a single bucket of all the documents within the search execution context.\nThis context is defined by the indices and the document types you’re searching on, but is not influenced by the search query itself.", "extDocId": "search-aggregations-bucket-global-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-global-aggregation", "name": "global", "required": false, "type": { "kind": "instance_of", "type": { "name": "GlobalAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket values source based aggregation that can be applied on numeric values or numeric range values extracted from the documents.\nIt dynamically builds fixed size (interval) buckets over the values.", "extDocId": "search-aggregations-bucket-histogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-histogram-aggregation", "name": "histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "HistogramAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation that enables the user to define a set of IP ranges - each representing a bucket.", "extDocId": "search-aggregations-bucket-iprange-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-iprange-aggregation", "name": "ip_range", "required": false, "type": { "kind": "instance_of", "type": { "name": "IpRangeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A bucket aggregation that groups documents based on the network or sub-network of an IP address.", "extDocId": "search-aggregations-bucket-ipprefix-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-ipprefix-aggregation", "name": "ip_prefix", "required": false, "type": { "kind": "instance_of", "type": { "name": "IpPrefixAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which loads a pre-trained model and performs inference on the collated result fields from the parent bucket aggregation.", "extDocId": "search-aggregations-pipeline-inference-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-inference-bucket-aggregation", "name": "inference", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceAggregation", "namespace": "_types.aggregations" } } }, { "name": "line", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoLineAggregation", "namespace": "_types.aggregations" } } }, { "description": "A numeric aggregation that computes the following statistics over a set of document fields: `count`, `mean`, `variance`, `skewness`, `kurtosis`, `covariance`, and `covariance`.", "extDocId": "search-aggregations-matrix-stats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-matrix-stats-aggregation", "name": "matrix_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatrixStatsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that returns the maximum value among the numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-max-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-max-aggregation", "name": "max", "required": false, "type": { "kind": "instance_of", "type": { "name": "MaxAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which identifies the bucket(s) with the maximum value of a specified metric in a sibling aggregation and outputs both the value and the key(s) of the bucket(s).", "extDocId": "search-aggregations-pipeline-max-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-max-bucket-aggregation", "name": "max_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "MaxBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value aggregation that approximates the median absolute deviation of its search results.", "extDocId": "search-aggregations-metrics-median-absolute-deviation-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-median-absolute-deviation-aggregation", "name": "median_absolute_deviation", "required": false, "type": { "kind": "instance_of", "type": { "name": "MedianAbsoluteDeviationAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that returns the minimum value among numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-min-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-min-aggregation", "name": "min", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which identifies the bucket(s) with the minimum value of a specified metric in a sibling aggregation and outputs both the value and the key(s) of the bucket(s).", "extDocId": "search-aggregations-pipeline-min-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-min-bucket-aggregation", "name": "min_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A field data based single bucket aggregation, that creates a bucket of all documents in the current document set context that are missing a field value (effectively, missing a field or having the configured NULL value set).", "extDocId": "search-aggregations-bucket-missing-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-missing-aggregation", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "MissingAggregation", "namespace": "_types.aggregations" } } }, { "name": "moving_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "MovingAverageAggregation", "namespace": "_types.aggregations" } } }, { "description": "Given an ordered series of percentiles, \"slides\" a window across those percentiles and computes cumulative percentiles.", "extDocId": "search-aggregations-pipeline-moving-percentiles-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-moving-percentiles-aggregation", "name": "moving_percentiles", "required": false, "type": { "kind": "instance_of", "type": { "name": "MovingPercentilesAggregation", "namespace": "_types.aggregations" } } }, { "description": "Given an ordered series of data, \"slides\" a window across the data and runs a custom script on each window of data.\nFor convenience, a number of common functions are predefined such as `min`, `max`, and moving averages.", "extDocId": "search-aggregations-pipeline-movfn-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-movfn-aggregation", "name": "moving_fn", "required": false, "type": { "kind": "instance_of", "type": { "name": "MovingFunctionAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation where buckets are dynamically built - one per unique set of values.", "extDocId": "search-aggregations-bucket-multi-terms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-multi-terms-aggregation", "name": "multi_terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A special single bucket aggregation that enables aggregating nested documents.", "extDocId": "search-aggregations-bucket-nested-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-nested-aggregation", "name": "nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedAggregation", "namespace": "_types.aggregations" } } }, { "description": "A parent pipeline aggregation which calculates the specific normalized/rescaled value for a specific bucket value.", "extDocId": "search-aggregations-pipeline-normalize-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-normalize-aggregation", "name": "normalize", "required": false, "type": { "kind": "instance_of", "type": { "name": "NormalizeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A special single bucket aggregation that selects parent documents that have the specified type, as defined in a `join` field.", "extDocId": "search-aggregations-bucket-parent-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-parent-aggregation", "name": "parent", "required": false, "type": { "kind": "instance_of", "type": { "name": "ParentAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-value metrics aggregation that calculates one or more percentile ranks over numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-percentile-rank-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-percentile-rank-aggregation", "name": "percentile_ranks", "required": false, "type": { "kind": "instance_of", "type": { "name": "PercentileRanksAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-value metrics aggregation that calculates one or more percentiles over numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-percentile-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-percentile-aggregation", "name": "percentiles", "required": false, "type": { "kind": "instance_of", "type": { "name": "PercentilesAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which calculates percentiles across all bucket of a specified metric in a sibling aggregation.", "extDocId": "search-aggregations-pipeline-percentiles-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-percentiles-bucket-aggregation", "name": "percentiles_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "PercentilesBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation that enables the user to define a set of ranges - each representing a bucket.", "extDocId": "search-aggregations-bucket-range-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-range-aggregation", "name": "range", "required": false, "type": { "kind": "instance_of", "type": { "name": "RangeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation which finds \"rare\" terms — terms that are at the long-tail of the distribution and are not frequent.", "extDocId": "search-aggregations-bucket-rare-terms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-rare-terms-aggregation", "name": "rare_terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "RareTermsAggregation", "namespace": "_types.aggregations" } } }, { "description": "Calculates a rate of documents or a field in each bucket.\nCan only be used inside a `date_histogram` or `composite` aggregation.", "extDocId": "search-aggregations-metrics-rate-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-rate-aggregation", "name": "rate", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateAggregation", "namespace": "_types.aggregations" } } }, { "description": "A special single bucket aggregation that enables aggregating on parent documents from nested documents.\nShould only be defined inside a `nested` aggregation.", "extDocId": "search-aggregations-bucket-reverse-nested-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-reverse-nested-aggregation", "name": "reverse_nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "ReverseNestedAggregation", "namespace": "_types.aggregations" } } }, { "availability": { "stack": { "since": "8.1.0", "stability": "experimental" } }, "description": "A single bucket aggregation that randomly includes documents in the aggregated results.\nSampling provides significant speed improvement at the cost of accuracy.", "extDocId": "search-aggregations-random-sampler-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-random-sampler-aggregation", "name": "random_sampler", "required": false, "type": { "kind": "instance_of", "type": { "name": "RandomSamplerAggregation", "namespace": "_types.aggregations" } } }, { "description": "A filtering aggregation used to limit any sub aggregations' processing to a sample of the top-scoring documents.", "extDocId": "search-aggregations-bucket-sampler-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-sampler-aggregation", "name": "sampler", "required": false, "type": { "kind": "instance_of", "type": { "name": "SamplerAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metric aggregation that uses scripts to provide a metric output.", "extDocId": "search-aggregations-metrics-scripted-metric-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-scripted-metric-aggregation", "name": "scripted_metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptedMetricAggregation", "namespace": "_types.aggregations" } } }, { "description": "An aggregation that subtracts values in a time series from themselves at different time lags or periods.", "extDocId": "search-aggregations-pipeline-serialdiff-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-serialdiff-aggregation", "name": "serial_diff", "required": false, "type": { "kind": "instance_of", "type": { "name": "SerialDifferencingAggregation", "namespace": "_types.aggregations" } } }, { "description": "Returns interesting or unusual occurrences of terms in a set.", "extDocId": "search-aggregations-bucket-significantterms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-significantterms-aggregation", "name": "significant_terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "SignificantTermsAggregation", "namespace": "_types.aggregations" } } }, { "description": "Returns interesting or unusual occurrences of free-text terms in a set.", "extDocId": "search-aggregations-bucket-significanttext-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-significanttext-aggregation", "name": "significant_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "SignificantTextAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-value metrics aggregation that computes stats over numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-stats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-stats-aggregation", "name": "stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "StatsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which calculates a variety of stats across all bucket of a specified metric in a sibling aggregation.", "extDocId": "search-aggregations-pipeline-stats-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-stats-bucket-aggregation", "name": "stats_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "StatsBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-value metrics aggregation that computes statistics over string values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-string-stats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-string-stats-aggregation", "name": "string_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "StringStatsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that sums numeric values that are extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-sum-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-sum-aggregation", "name": "sum", "required": false, "type": { "kind": "instance_of", "type": { "name": "SumAggregation", "namespace": "_types.aggregations" } } }, { "description": "A sibling pipeline aggregation which calculates the sum of a specified metric across all buckets in a sibling aggregation.", "extDocId": "search-aggregations-pipeline-sum-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-sum-bucket-aggregation", "name": "sum_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "SumBucketAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation where buckets are dynamically built - one per unique value.", "extDocId": "search-aggregations-bucket-terms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-terms-aggregation", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregation", "namespace": "_types.aggregations" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "The time series aggregation queries data created using a time series index.\nThis is typically data such as metrics or other data streams with a time component, and requires creating an index using the time series mode.", "extDocId": "search-aggregations-bucket-time-series-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-time-series-aggregation", "name": "time_series", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeSeriesAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metric aggregation that returns the top matching documents per bucket.", "extDocId": "search-aggregations-metrics-top-hits-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-top-hits-aggregation", "name": "top_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "TopHitsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metrics aggregation that performs a statistical hypothesis test in which the test statistic follows a Student’s t-distribution under the null hypothesis on numeric values extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-ttest-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-ttest-aggregation", "name": "t_test", "required": false, "type": { "kind": "instance_of", "type": { "name": "TTestAggregation", "namespace": "_types.aggregations" } } }, { "description": "A metric aggregation that selects metrics from the document with the largest or smallest sort value.", "extDocId": "search-aggregations-metrics-top-metrics", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-top-metrics", "name": "top_metrics", "required": false, "type": { "kind": "instance_of", "type": { "name": "TopMetricsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that counts the number of values that are extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-valuecount-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-valuecount-aggregation", "name": "value_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "ValueCountAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that computes the weighted average of numeric values that are extracted from the aggregated documents.", "extDocId": "search-aggregations-metrics-weight-avg-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-weight-avg-aggregation", "name": "weighted_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "WeightedAverageAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation similar to the histogram, except instead of providing an interval to use as the width of each bucket, a target number of buckets is provided.", "extDocId": "search-aggregations-bucket-variablewidthhistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-variablewidthhistogram-aggregation", "name": "variable_width_histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "VariableWidthHistogramAggregation", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/AggregationContainer.ts#L107-L533", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "name": { "name": "AggregationRange", "namespace": "_types.aggregations" }, "properties": [ { "description": "Start of the range (inclusive).", "name": "from", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "Custom key to return the range with.", "name": "key", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "End of the range (exclusive).", "name": "to", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_types/aggregations/bucket.ts#L691-L704" }, { "kind": "interface", "name": { "name": "ArrayPercentilesItem", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "value", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "value_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L162-L166" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-autodatehistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-autodatehistogram-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "DateHistogramBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "AutoDateHistogramAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "DurationLarge", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L393-L400", "variantName": "auto_date_histogram" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-autodatehistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-autodatehistogram-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "AutoDateHistogramAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The target number of buckets.", "name": "buckets", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The field on which to run the aggregation.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The date format used to format `key_as_string` in the response.\nIf no `format` is specified, the first date format specified in the field mapping is used.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The minimum rounding interval.\nThis can make the collection process more efficient, as the aggregation will not attempt to round at any interval lower than `minimum_interval`.", "name": "minimum_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumInterval", "namespace": "_types.aggregations" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Time zone specified as a ISO 8601 UTC offset.", "name": "offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Time zone ID.", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L72-L110" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "AverageAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/metric.ts#L55-L55" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-avg-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-avg-bucket-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "AverageBucketAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L78-L81" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-avg-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-avg-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "AvgAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L218-L222", "variantName": "avg" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-boxplot-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-boxplot-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "BoxPlotAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "q1", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "q2", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "q3", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "lower", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "upper", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "min_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "q1_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "q2_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "q3_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "lower_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "upper_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L806-L825", "variantName": "boxplot" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "BoxplotAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "name": "compression", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L57-L62" }, { "kind": "interface", "description": "Base type for bucket aggregations. These aggregations also accept sub-aggregations.", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/bucket.ts#L53-L58" }, { "kind": "interface", "description": "A sibling pipeline aggregation which executes a correlation function on the configured sibling multi-bucket aggregation.", "extDocId": "search-aggregations-bucket-correlation-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-correlation-aggregation", "inherits": { "type": { "name": "BucketPathAggregation", "namespace": "_types.aggregations" } }, "name": { "name": "BucketCorrelationAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The correlation function to execute.", "name": "function", "required": true, "type": { "kind": "instance_of", "type": { "name": "BucketCorrelationFunction", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L139-L146" }, { "kind": "interface", "name": { "name": "BucketCorrelationFunction", "namespace": "_types.aggregations" }, "properties": [ { "description": "The configuration to calculate a count correlation. This function is designed for determining the correlation of a term value and a given metric.", "name": "count_correlation", "required": true, "type": { "kind": "instance_of", "type": { "name": "BucketCorrelationFunctionCountCorrelation", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L148-L153" }, { "kind": "interface", "name": { "name": "BucketCorrelationFunctionCountCorrelation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The indicator with which to correlate the configured `bucket_path` values.", "name": "indicator", "required": true, "type": { "kind": "instance_of", "type": { "name": "BucketCorrelationFunctionCountCorrelationIndicator", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L155-L158" }, { "kind": "interface", "name": { "name": "BucketCorrelationFunctionCountCorrelationIndicator", "namespace": "_types.aggregations" }, "properties": [ { "description": "The total number of documents that initially created the expectations. It’s required to be greater\nthan or equal to the sum of all values in the buckets_path as this is the originating superset of data\nto which the term values are correlated.", "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "An array of numbers with which to correlate the configured `bucket_path` values.\nThe length of this value must always equal the number of buckets returned by the `bucket_path`.", "name": "expectations", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "description": "An array of fractions to use when averaging and calculating variance. This should be used if\nthe pre-calculated data and the buckets_path have known gaps. The length of fractions, if provided,\nmust equal expectations.", "name": "fractions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "_types/aggregations/pipeline.ts#L160-L178" }, { "kind": "interface", "description": "A sibling pipeline aggregation which executes a two sample Kolmogorov–Smirnov test (referred\nto as a \"K-S test\" from now on) against a provided distribution, and the distribution implied\nby the documents counts in the configured sibling aggregation. Specifically, for some metric,\nassuming that the percentile intervals of the metric are known beforehand or have been computed\nby an aggregation, then one would use range aggregation for the sibling to compute the p-value\nof the distribution difference between the metric and the restriction of that metric to a subset\nof the documents. A natural use case is if the sibling aggregation range aggregation nested in a\nterms aggregation, in which case one compares the overall distribution of metric to its restriction\nto each term.", "extDocId": "search-aggregations-bucket-count-ks-test-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-count-ks-test-aggregation", "inherits": { "type": { "name": "BucketPathAggregation", "namespace": "_types.aggregations" } }, "name": { "name": "BucketKsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "A list of string values indicating which K-S test alternative to calculate. The valid values\nare: \"greater\", \"less\", \"two_sided\". This parameter is key for determining the K-S statistic used\nwhen calculating the K-S test. Default value is all possible alternative hypotheses.", "name": "alternative", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A list of doubles indicating the distribution of the samples with which to compare to the `buckets_path` results.\nIn typical usage this is the overall proportion of documents in each bucket, which is compared with the actual\ndocument proportions in each bucket from the sibling aggregation counts. The default is to assume that overall\ndocuments are uniformly distributed on these buckets, which they would be if one used equal percentiles of a\nmetric to define the bucket end points.", "name": "fractions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "description": "Indicates the sampling methodology when calculating the K-S test. Note, this is sampling of the returned values.\nThis determines the cumulative distribution function (CDF) points used comparing the two samples. Default is\n`upper_tail`, which emphasizes the upper end of the CDF points. Valid options are: `upper_tail`, `uniform`,\nand `lower_tail`.", "name": "sampling_method", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L103-L137" }, { "kind": "interface", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "BucketMetricValueAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "keys", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L250-L253", "variantName": "bucket_metric_value" }, { "kind": "interface", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "BucketPathAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Path to the buckets that contain one set of values to correlate.", "docId": "search-aggregations-pipeline-bucket-path", "docUrl": "https://www.elastic.co/docs/reference/aggregations/pipeline#buckets-path-syntax", "name": "buckets_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "BucketsPath", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L31-L37" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-bucket-script-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-bucket-script-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "BucketScriptAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The script to run for this aggregation.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L83-L91" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-bucket-selector-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-bucket-selector-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "BucketSelectorAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The script to run for this aggregation.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L93-L101" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-bucket-sort-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-bucket-sort-aggregation", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "BucketSortAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Buckets in positions prior to `from` will be truncated.", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The policy to apply when gaps are found in the data.", "docId": "gap-policy", "docUrl": "https://www.elastic.co/docs/reference/aggregations/pipeline#gap-policy", "name": "gap_policy", "required": false, "serverDefault": "skip", "type": { "kind": "instance_of", "type": { "name": "GapPolicy", "namespace": "_types.aggregations" } } }, { "description": "The number of buckets to return.\nDefaults to all buckets of the parent aggregation.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The list of fields to sort on.", "docId": "sort-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L180-L204" }, { "kind": "type_alias", "codegenNames": [ "keyed", "array" ], "description": "Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for\nthe different buckets, the result is a dictionary.", "generics": [ { "name": "TBucket", "namespace": "_types.aggregations.Buckets" } ], "name": { "name": "Buckets", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/Aggregate.ts#L346-L355", "type": { "kind": "union_of", "items": [ { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TBucket", "namespace": "_types.aggregations.Buckets" } } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TBucket", "namespace": "_types.aggregations.Buckets" } } } ] } }, { "kind": "type_alias", "codegenNames": [ "single", "array", "dict" ], "description": "Buckets path can be expressed in different ways, and an aggregation may accept some or all of these\nforms depending on its type. Please refer to each aggregation's documentation to know what buckets\npath forms they accept.", "name": { "name": "BucketsPath", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/pipeline.ts#L53-L59", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "kind": "enum", "members": [ { "aliases": [ "1s" ], "name": "second" }, { "aliases": [ "1m" ], "name": "minute" }, { "aliases": [ "1h" ], "name": "hour" }, { "aliases": [ "1d" ], "name": "day" }, { "aliases": [ "1w" ], "name": "week" }, { "aliases": [ "1M" ], "name": "month" }, { "aliases": [ "1q" ], "name": "quarter" }, { "aliases": [ "1y" ], "name": "year" } ], "name": { "name": "CalendarInterval", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L262-L279" }, { "kind": "interface", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "CardinalityAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L140-L143", "variantName": "cardinality" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CardinalityAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "A unique count below which counts are expected to be close to accurate.\nThis allows to trade memory for accuracy.", "name": "precision_threshold", "required": false, "serverDefault": 3000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "rehash", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Mechanism by which cardinality aggregations is run.", "name": "execution_hint", "required": false, "type": { "kind": "instance_of", "type": { "name": "CardinalityExecutionMode", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/metric.ts#L87-L99" }, { "kind": "enum", "members": [ { "description": "Run the aggregation by using global ordinals of the field and resolving those values after finishing a shard.", "name": "global_ordinals" }, { "description": "Run the aggregation by using segment ordinal values and resolving those values after each segment.", "name": "segment_ordinals" }, { "description": "Run the aggregation by using field values directly.", "name": "direct" }, { "description": "Heuristic-based mode, default in Elasticsearch 8.3 and earlier.", "name": "save_memory_heuristic" }, { "description": "Heuristic-based mode, default in Elasticsearch 8.4 and later.", "name": "save_time_heuristic" } ], "name": { "name": "CardinalityExecutionMode", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/metric.ts#L64-L85" }, { "kind": "interface", "description": "A multi-bucket aggregation that groups semi-structured text into buckets. Each text\nfield is re-analyzed using a custom analyzer. The resulting tokens are then categorized\ncreating buckets of similarly formatted text values. This aggregation works best with machine\ngenerated text like system logs. Only the first 100 analyzed tokens are used to categorize the text.", "extDocId": "search-aggregations-bucket-categorize-text-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-categorize-text-aggregation", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "CategorizeTextAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The semi-structured text field to categorize.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The maximum number of unique tokens at any position up to max_matched_tokens. Must be larger than 1.\nSmaller values use less memory and create fewer categories. Larger values will use more memory and\ncreate narrower categories. Max allowed value is 100.", "name": "max_unique_tokens", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of token positions to match on before attempting to merge categories. Larger\nvalues will use more memory and create narrower categories. Max allowed value is 100.", "name": "max_matched_tokens", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum percentage of tokens that must match for text to be added to the category bucket. Must\nbe between 1 and 100. The larger the value the narrower the categories. Larger values will increase memory\nusage and create narrower categories.", "name": "similarity_threshold", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "This property expects an array of regular expressions. The expressions are used to filter out matching\nsequences from the categorization field values. You can use this functionality to fine tune the categorization\nby excluding sequences from consideration when categories are defined. For example, you can exclude SQL\nstatements that appear in your log files. This property cannot be used at the same time as categorization_analyzer.\nIf you only want to define simple regular expression filters that are applied prior to tokenization, setting\nthis property is the easiest method. If you also want to customize the tokenizer or post-tokenization filtering,\nuse the categorization_analyzer property instead and include the filters as pattern_replace character filters.", "name": "categorization_filters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The categorization analyzer specifies how the text is analyzed and tokenized before being categorized.\nThe syntax is very similar to that used to define the analyzer in the analyze API. This property\ncannot be used at the same time as `categorization_filters`.", "extDocId": "indices-analyze", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-analyze", "name": "categorization_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "CategorizeTextAnalyzer", "namespace": "_types.aggregations" } } }, { "description": "The number of categorization buckets to return from each shard before merging all the results.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of buckets to return.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum number of documents in a bucket to be returned to the results.", "name": "min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum number of documents in a bucket to be returned from the shard before merging.", "name": "shard_min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1117-L1183" }, { "kind": "type_alias", "codegenNames": [ "builtin", "custom" ], "name": { "name": "CategorizeTextAnalyzer", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L1185-L1188", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "CustomCategorizeTextAnalyzer", "namespace": "_types.aggregations" } } ] } }, { "kind": "interface", "name": { "name": "ChiSquareHeuristic", "namespace": "_types.aggregations" }, "properties": [ { "description": "Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to.", "name": "background_is_superset", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Set to `false` to filter out the terms that appear less often in the subset than in documents outside the subset.", "name": "include_negatives", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L782-L791" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-children-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-children-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "ChildrenAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L888-L892", "variantName": "children" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ChildrenAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The child type that should be selected.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L121-L126" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "CompositeBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "after_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeAggregateKey", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L698-L703", "variantName": "composite" }, { "kind": "type_alias", "name": { "name": "CompositeAggregateKey", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L128-L128", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } }, { "kind": "interface", "extDocId": "search-aggregations-bucket-composite-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "When paginating, use the `after_key` value returned in the previous response to retrieve the next page.", "name": "after", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeAggregateKey", "namespace": "_types.aggregations" } } }, { "description": "The number of composite buckets that should be returned.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The value sources used to build composite buckets.\nKeys are returned in the order of the `sources` definition.", "name": "sources", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CompositeAggregationSource", "namespace": "_types.aggregations" } } } } } ], "specLocation": "_types/aggregations/bucket.ts#L130-L149" }, { "kind": "interface", "name": { "name": "CompositeAggregationBase", "namespace": "_types.aggregations" }, "properties": [ { "description": "Either `field` or `script` must be present", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "missing_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "missing_order", "required": false, "type": { "kind": "instance_of", "type": { "name": "MissingOrder", "namespace": "_types.aggregations" } } }, { "description": "Either `field` or `script` must be present", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "value_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "ValueType", "namespace": "_types.aggregations" } } }, { "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L170-L179" }, { "kind": "interface", "name": { "name": "CompositeAggregationSource", "namespace": "_types.aggregations" }, "properties": [ { "description": "A terms aggregation.", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeTermsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A histogram aggregation.", "name": "histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeHistogramAggregation", "namespace": "_types.aggregations" } } }, { "description": "A date histogram aggregation.", "name": "date_histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeDateHistogramAggregation", "namespace": "_types.aggregations" } } }, { "description": "A geotile grid aggregation.", "name": "geotile_grid", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeGeoTileGridAggregation", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/bucket.ts#L151-L168" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "CompositeAggregateKey", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L705-L707" }, { "kind": "interface", "inherits": { "type": { "name": "CompositeAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeDateHistogramAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Either `calendar_interval` or `fixed_interval` must be present", "name": "calendar_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "DurationLarge", "namespace": "_types" } } }, { "description": "Either `calendar_interval` or `fixed_interval` must be present", "name": "fixed_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "DurationLarge", "namespace": "_types" } } }, { "name": "offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L187-L195" }, { "kind": "interface", "inherits": { "type": { "name": "CompositeAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeGeoTileGridAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "precision", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBounds", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L197-L200" }, { "kind": "interface", "inherits": { "type": { "name": "CompositeAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeHistogramAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L183-L185" }, { "kind": "interface", "inherits": { "type": { "name": "CompositeAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CompositeTermsAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/bucket.ts#L181-L181" }, { "kind": "interface", "description": "Result of the `cumulative_cardinality` aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "CumulativeCardinalityAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "value_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L856-L864", "variantName": "simple_long_value" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-cumulative-cardinality-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-cumulative-cardinality-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CumulativeCardinalityAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L206-L209" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-cumulative-sum-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-cumulative-sum-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "CumulativeSumAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L211-L214" }, { "kind": "interface", "name": { "name": "CustomCategorizeTextAnalyzer", "namespace": "_types.aggregations" }, "properties": [ { "name": "char_filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "tokenizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/aggregations/bucket.ts#L1190-L1194" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-datehistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-datehistogram-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "DateHistogramBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "DateHistogramAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L383-L386", "variantName": "date_histogram" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "DateHistogramAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Calendar-aware interval.\nCan be specified using the unit name, such as `month`, or as a single unit quantity, such as `1M`.", "name": "calendar_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "CalendarInterval", "namespace": "_types.aggregations" } } }, { "description": "Enables extending the bounds of the histogram beyond the data itself.", "name": "extended_bounds", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "FieldDateMath", "namespace": "_types.aggregations" } } ], "type": { "name": "ExtendedBounds", "namespace": "_types.aggregations" } } }, { "description": "Limits the histogram to specified bounds.", "name": "hard_bounds", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "FieldDateMath", "namespace": "_types.aggregations" } } ], "type": { "name": "ExtendedBounds", "namespace": "_types.aggregations" } } }, { "description": "The date field whose values are use to build a histogram.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Fixed intervals: a fixed number of SI units and never deviate, regardless of where they fall on the calendar.", "name": "fixed_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The date format used to format `key_as_string` in the response.\nIf no `format` is specified, the first date format specified in the field mapping is used.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "deprecation": { "description": "use `fixed_interval` or `calendar_interval`", "version": "7.2.0" }, "name": "interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Only returns buckets that have `min_doc_count` number of documents.\nBy default, all buckets between the first bucket that matches documents and the last one are returned.", "name": "min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Changes the start value of each bucket by the specified positive (`+`) or negative offset (`-`) duration.", "name": "offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The sort order of the returned buckets.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregateOrder", "namespace": "_types.aggregations" } } }, { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Time zone used for bucketing and rounding.\nDefaults to Coordinated Universal Time (UTC).", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } }, { "description": "Set to `true` to associate a unique string key with each bucket and return the ranges as a hash rather than an array.", "name": "keyed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L202-L260" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "DateHistogramBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "key", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L388-L391" }, { "kind": "interface", "description": "Result of a `date_range` aggregation. Same format as a for a `range` aggregation: `from` and `to`\nin `buckets` are milliseconds since the Epoch, represented as a floating point number.", "extDocId": "search-aggregations-bucket-daterange-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-daterange-aggregation", "inherits": { "type": { "name": "RangeAggregate", "namespace": "_types.aggregations" } }, "name": { "name": "DateRangeAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L609-L615", "variantName": "date_range" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "DateRangeAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The date field whose values are use to build ranges.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The date format used to format `from` and `to` in the response.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } }, { "description": "Array of date ranges.", "name": "ranges", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DateRangeExpression", "namespace": "_types.aggregations" } } } }, { "description": "Time zone used to convert dates from another time zone to UTC.", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } }, { "description": "Set to `true` to associate a unique string key with each bucket and returns the ranges as a hash rather than an array.", "name": "keyed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L281-L307" }, { "kind": "interface", "name": { "name": "DateRangeExpression", "namespace": "_types.aggregations" }, "properties": [ { "description": "Start of the range (inclusive).", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldDateMath", "namespace": "_types.aggregations" } } }, { "description": "Custom key to return the range with.", "name": "key", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "End of the range (exclusive).", "name": "to", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldDateMath", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/bucket.ts#L318-L331" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-derivative-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-derivative-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "DerivativeAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "normalized_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "normalized_value_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L241-L248", "variantName": "derivative" }, { "kind": "interface", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "DerivativeAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L216-L216" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-diversified-sampler-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-diversified-sampler-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "DiversifiedSamplerAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The type of value used for de-duplication.", "name": "execution_hint", "required": false, "serverDefault": "global_ordinals", "type": { "kind": "instance_of", "type": { "name": "SamplerAggregationExecutionHint", "namespace": "_types.aggregations" } } }, { "description": "Limits how many documents are permitted per choice of de-duplicating value.", "name": "max_docs_per_value", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Limits how many top-scoring documents are collected in the sample processed on each shard.", "name": "shard_size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The field used to provide values used for de-duplication.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L333-L357" }, { "kind": "interface", "description": "Result of a `terms` aggregation when the field is some kind of decimal number like a float, double, or distance.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "DoubleTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "TermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "DoubleTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L451-L456", "variantName": "dterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "TermsBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "DoubleTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L458-L461" }, { "kind": "interface", "name": { "name": "EwmaModelSettings", "namespace": "_types.aggregations" }, "properties": [ { "name": "alpha", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L293-L295" }, { "kind": "interface", "inherits": { "type": { "name": "MovingAverageAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "EwmaMovingAverageAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "model", "required": true, "type": { "kind": "literal_value", "value": "ewma" } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "EwmaModelSettings", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L278-L281" }, { "kind": "interface", "generics": [ { "name": "T", "namespace": "_types.aggregations.ExtendedBounds" } ], "name": { "name": "ExtendedBounds", "namespace": "_types.aggregations" }, "properties": [ { "description": "Maximum value for the bound.", "name": "max", "required": false, "type": { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.aggregations.ExtendedBounds" } } }, { "description": "Minimum value for the bound.", "name": "min", "required": false, "type": { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.aggregations.ExtendedBounds" } } } ], "specLocation": "_types/aggregations/bucket.ts#L508-L517" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-extendedstats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-extendedstats-aggregation", "inherits": { "type": { "name": "StatsAggregate", "namespace": "_types.aggregations" } }, "name": { "name": "ExtendedStatsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "sum_of_squares", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "variance", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "variance_population", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "variance_sampling", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "std_deviation", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "std_deviation_population", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "std_deviation_sampling", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "std_deviation_bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "StandardDeviationBounds", "namespace": "_types.aggregations" } } }, { "name": "sum_of_squares_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "variance_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "variance_population_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "variance_sampling_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "std_deviation_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "std_deviation_bounds_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "StandardDeviationBoundsAsString", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L299-L320", "variantName": "extended_stats" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ExtendedStatsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The number of standard deviations above/below the mean to display.", "name": "sigma", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L101-L106" }, { "kind": "interface", "inherits": { "type": { "name": "ExtendedStatsAggregate", "namespace": "_types.aggregations" } }, "name": { "name": "ExtendedStatsBucketAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L322-L323", "variantName": "extended_stats_bucket" }, { "kind": "interface", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ExtendedStatsBucketAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The number of standard deviations above/below the mean to display.", "name": "sigma", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L218-L223" }, { "kind": "type_alias", "codegenNames": [ "expr", "value" ], "description": "A date range limit, represented either as a DateMath expression or a number expressed\naccording to the target field's precision.", "name": { "name": "FieldDateMath", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L309-L316", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "DateMath", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } ] } }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-filter-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-filter-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "FilterAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L552-L556", "variantName": "filter" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-filters-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-filters-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "FiltersBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "FiltersAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L639-L643", "variantName": "filters" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "FiltersAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Collection of queries from which to build buckets.", "name": "filters", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } ], "type": { "name": "Buckets", "namespace": "_types.aggregations" } } }, { "description": "Set to `true` to add a bucket to the response which will contain all documents that do not match any of the given filters.", "name": "other_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The key with which the other bucket is returned.", "name": "other_bucket_key", "required": false, "serverDefault": "_other_", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "By default, the named filters aggregation returns the buckets as an object.\nSet to `false` to return the buckets as an array of objects.", "name": "keyed", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L374-L394" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "FiltersBucket", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L645-L645" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/metric.ts#L47-L49" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "FormattableMetricAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/metric.ts#L51-L53" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "FrequentItemSetsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "FrequentItemSetsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L722-L723", "variantName": "frequent_item_sets" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-frequent-item-sets-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-frequent-item-sets-aggregation", "name": { "name": "FrequentItemSetsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Fields to analyze.", "name": "fields", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FrequentItemSetsField", "namespace": "_types.aggregations" } } } }, { "description": "The minimum size of one item set.", "name": "minimum_set_size", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum support of one item set.", "name": "minimum_support", "required": false, "serverDefault": 0.1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The number of top item sets to return.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Query that filters documents from analysis.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1241-L1268" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "FrequentItemSetsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } }, { "name": "support", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L725-L728" }, { "kind": "interface", "name": { "name": "FrequentItemSetsField", "namespace": "_types.aggregations" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Values to exclude.\nCan be regular expression strings or arrays of strings of exact terms.", "name": "exclude", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsExclude", "namespace": "_types.aggregations" } } }, { "description": "Values to include.\nCan be regular expression strings or arrays of strings of exact terms.", "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsInclude", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1227-L1239" }, { "kind": "enum", "members": [ { "description": "Treats missing data as if the bucket does not exist. It will skip the bucket and\ncontinue calculating using the next available value.", "name": "skip" }, { "description": "Replace missing values with a zero (0) and pipeline aggregation computation will proceed as normal.", "name": "insert_zeros" }, { "description": "Similar to skip, except if the metric provides a non-null, non-NaN value this value is used,\notherwise the empty bucket is skipped.", "name": "keep_values" } ], "name": { "name": "GapPolicy", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/pipeline.ts#L61-L76" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-geobounds-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geobounds-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoBoundsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBounds", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L327-L333", "variantName": "geo_bounds" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-geobounds-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geobounds-aggregation", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoBoundsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Specifies whether the bounding box should be allowed to overlap the international date line.", "name": "wrap_longitude", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/metric.ts#L108-L117" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-geocentroid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geocentroid-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoCentroidAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "location", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L335-L342", "variantName": "geo_centroid" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoCentroidAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "location", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L119-L122" }, { "kind": "interface", "description": "Result of a `geo_distance` aggregation. The unit for `from` and `to` is meters by default.", "extDocId": "search-aggregations-bucket-geodistance-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geodistance-aggregation", "inherits": { "type": { "name": "RangeAggregate", "namespace": "_types.aggregations" } }, "name": { "name": "GeoDistanceAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L617-L622", "variantName": "geo_distance" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoDistanceAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The distance calculation type.", "name": "distance_type", "required": false, "serverDefault": "arc", "type": { "kind": "instance_of", "type": { "name": "GeoDistanceType", "namespace": "_types" } } }, { "description": "A field of type `geo_point` used to evaluate the distance.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The origin used to evaluate the distance.", "name": "origin", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } }, { "description": "An array of ranges used to bucket documents.", "name": "ranges", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AggregationRange", "namespace": "_types.aggregations" } } } }, { "description": "The distance unit.", "name": "unit", "required": false, "serverDefault": "m", "type": { "kind": "instance_of", "type": { "name": "DistanceUnit", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L396-L419" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "GeoHashGridBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoHashGridAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L566-L568", "variantName": "geohash_grid" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-geohashgrid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geohashgrid-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoHashGridAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The bounding box to filter the points in each bucket.", "name": "bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBounds", "namespace": "_types" } } }, { "description": "Field containing indexed `geo_point` or `geo_shape` values.\nIf the field contains an array, `geohash_grid` aggregates all array values.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The string length of the geohashes used to define cells/buckets in the results.", "name": "precision", "required": false, "serverDefault": "5", "type": { "kind": "instance_of", "type": { "name": "GeoHashPrecision", "namespace": "_types" } } }, { "description": "Allows for more accurate counting of the top cells returned in the final result the aggregation.\nDefaults to returning `max(10,(size x number-of-shards))` buckets from each shard.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of geohash buckets to return.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L421-L449" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoHashGridBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoHash", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L570-L572" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "GeoHexGridBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoHexGridAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L585-L586", "variantName": "geohex_grid" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoHexGridBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoHexCell", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L588-L590" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-geo-line", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-geo-line", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoLineAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "geometry", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLine", "namespace": "_types" } } }, { "name": "properties", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "_types/aggregations/Aggregate.ts#L902-L912", "variantName": "geo_line" }, { "kind": "interface", "name": { "name": "GeoLineAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The name of the geo_point field.", "name": "point", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLinePoint", "namespace": "_types.aggregations" } } }, { "description": "The name of the numeric field to use as the sort key for ordering the points.\nWhen the `geo_line` aggregation is nested inside a `time_series` aggregation, this field defaults to `@timestamp`, and any other value will result in error.", "name": "sort", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoLineSort", "namespace": "_types.aggregations" } } }, { "description": "When `true`, returns an additional array of the sort values in the feature properties.", "name": "include_sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The order in which the line is sorted (ascending or descending).", "name": "sort_order", "required": false, "serverDefault": "asc", "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "description": "The maximum length of the line represented in the aggregation.\nValid sizes are between 1 and 10000.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L124-L149" }, { "kind": "interface", "name": { "name": "GeoLinePoint", "namespace": "_types.aggregations" }, "properties": [ { "description": "The name of the geo_point field.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L158-L163" }, { "kind": "interface", "name": { "name": "GeoLineSort", "namespace": "_types.aggregations" }, "properties": [ { "description": "The name of the numeric field to use as the sort key for ordering the points.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L151-L156" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-geotilegrid-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-geotilegrid-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "GeoTileGridBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoTileGridAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L574-L579", "variantName": "geotile_grid" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoTileGridAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Field containing indexed `geo_point` or `geo_shape` values.\nIf the field contains an array, `geotile_grid` aggregates all array values.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Integer zoom of the key used to define cells/buckets in the results.\nValues outside of the range [0,29] will be rejected.", "name": "precision", "required": false, "serverDefault": "7", "type": { "kind": "instance_of", "type": { "name": "GeoTilePrecision", "namespace": "_types" } } }, { "description": "Allows for more accurate counting of the top cells returned in the final result the aggregation.\nDefaults to returning `max(10,(size x number-of-shards))` buckets from each shard.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of buckets to return.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A bounding box to filter the geo-points or geo-shapes in each bucket.", "name": "bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBounds", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L451-L477" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeoTileGridBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoTile", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L581-L583" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GeohexGridAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Field containing indexed `geo_point` or `geo_shape` values.\nIf the field contains an array, `geohex_grid` aggregates all array values.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Integer zoom of the key used to defined cells or buckets\nin the results. Value should be between 0-15.", "name": "precision", "required": false, "serverDefault": 6, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Bounding box used to filter the geo-points in each bucket.", "name": "bounds", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBounds", "namespace": "_types" } } }, { "description": "Maximum number of buckets to return.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of buckets returned from each shard.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L479-L504" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-global-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-global-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "GlobalAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L546-L550", "variantName": "global" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "GlobalAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/bucket.ts#L506-L506" }, { "kind": "interface", "name": { "name": "GoogleNormalizedDistanceHeuristic", "namespace": "_types.aggregations" }, "properties": [ { "description": "Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to.", "name": "background_is_superset", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L793-L798" }, { "kind": "interface", "name": { "name": "HdrMethod", "namespace": "_types.aggregations" }, "properties": [ { "description": "Specifies the resolution of values for the histogram in number of significant digits.", "name": "number_of_significant_value_digits", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L225-L230" }, { "kind": "interface", "inherits": { "type": { "name": "PercentilesAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "HdrPercentileRanksAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L171-L172", "variantName": "hdr_percentile_ranks" }, { "kind": "interface", "inherits": { "type": { "name": "PercentilesAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "HdrPercentilesAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L168-L169", "variantName": "hdr_percentiles" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-histogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-histogram-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "HistogramBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "HistogramAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L372-L376", "variantName": "histogram" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "HistogramAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Enables extending the bounds of the histogram beyond the data itself.", "name": "extended_bounds", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } ], "type": { "name": "ExtendedBounds", "namespace": "_types.aggregations" } } }, { "description": "Limits the range of buckets in the histogram.\nIt is particularly useful in the case of open data ranges that can result in a very large number of buckets.", "name": "hard_bounds", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } ], "type": { "name": "ExtendedBounds", "namespace": "_types.aggregations" } } }, { "description": "The name of the field to aggregate on.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The interval for the buckets.\nMust be a positive decimal.", "name": "interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Only returns buckets that have `min_doc_count` number of documents.\nBy default, the response will fill gaps in the histogram with empty buckets.", "name": "min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "By default, the bucket keys start with 0 and then continue in even spaced steps of `interval`.\nThe bucket boundaries can be shifted by using the `offset` option.", "name": "offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The sort order of the returned buckets.\nBy default, the returned buckets are sorted by their key ascending.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregateOrder", "namespace": "_types.aggregations" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, returns buckets as a hash instead of an array, keyed by the bucket keys.", "name": "keyed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L519-L565" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "HistogramBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L378-L381" }, { "kind": "interface", "name": { "name": "HoltLinearModelSettings", "namespace": "_types.aggregations" }, "properties": [ { "name": "alpha", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "beta", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L297-L300" }, { "kind": "interface", "inherits": { "type": { "name": "MovingAverageAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "HoltMovingAverageAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "model", "required": true, "type": { "kind": "literal_value", "value": "holt" } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "HoltLinearModelSettings", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L283-L286" }, { "kind": "interface", "name": { "name": "HoltWintersModelSettings", "namespace": "_types.aggregations" }, "properties": [ { "name": "alpha", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "beta", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "gamma", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "pad", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "period", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "HoltWintersType", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L301-L308" }, { "kind": "interface", "inherits": { "type": { "name": "MovingAverageAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "HoltWintersMovingAverageAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "model", "required": true, "type": { "kind": "literal_value", "value": "holt_winters" } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "HoltWintersModelSettings", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L288-L291" }, { "kind": "enum", "members": [ { "codegenName": "Additive", "name": "add" }, { "codegenName": "Multiplicative", "name": "mult" } ], "name": { "name": "HoltWintersType", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/pipeline.ts#L309-L312" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "user_defined_value" } ], "meta": { "description": "Additional data", "fieldname": "data" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "extDocId": "search-aggregations-pipeline-inference-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-inference-bucket-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "InferenceAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "value", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } }, { "name": "feature_importance", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InferenceFeatureImportance", "namespace": "_types.aggregations" } } } }, { "name": "top_classes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InferenceTopClassEntry", "namespace": "_types.aggregations" } } } }, { "name": "warning", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L755-L770", "variantName": "inference" }, { "kind": "interface", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "InferenceAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The ID or alias for the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Contains the inference type and its options.", "name": "inference_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfigContainer", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L225-L234" }, { "kind": "interface", "name": { "name": "InferenceClassImportance", "namespace": "_types.aggregations" }, "properties": [ { "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "importance", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L784-L787" }, { "kind": "interface", "name": { "name": "InferenceConfigContainer", "namespace": "_types.aggregations" }, "properties": [ { "description": "Regression configuration for inference.", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "RegressionInferenceOptions", "namespace": "ml._types" } } }, { "description": "Classification configuration for inference.", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClassificationInferenceOptions", "namespace": "ml._types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L236-L242", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "InferenceFeatureImportance", "namespace": "_types.aggregations" }, "properties": [ { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "importance", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "classes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InferenceClassImportance", "namespace": "_types.aggregations" } } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L778-L782" }, { "kind": "interface", "name": { "name": "InferenceTopClassEntry", "namespace": "_types.aggregations" }, "properties": [ { "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } }, { "name": "class_probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "class_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L772-L776" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-ipprefix-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-ipprefix-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "IpPrefixBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "IpPrefixAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L709-L713", "variantName": "ip_prefix" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "IpPrefixAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The IP address field to aggregation on. The field mapping type must be `ip`.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Length of the network prefix. For IPv4 addresses the accepted range is [0, 32].\nFor IPv6 addresses the accepted range is [0, 128].", "name": "prefix_length", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Defines whether the prefix applies to IPv6 addresses.", "name": "is_ipv6", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines whether the prefix length is appended to IP address keys in the response.", "name": "append_prefix_length", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines whether buckets are returned as a hash rather than an array in the response.", "name": "keyed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Minimum number of documents in a bucket for it to be included in the response.", "name": "min_doc_count", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1196-L1225" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "IpPrefixBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "is_ipv6", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "prefix_length", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "netmask", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L715-L720" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-iprange-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-iprange-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "IpRangeBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "IpRangeAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L624-L629", "variantName": "ip_range" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "IpRangeAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The date field whose values are used to build ranges.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Array of IP ranges.", "name": "ranges", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IpRangeAggregationRange", "namespace": "_types.aggregations" } } } } ], "specLocation": "_types/aggregations/bucket.ts#L567-L576" }, { "kind": "interface", "name": { "name": "IpRangeAggregationRange", "namespace": "_types.aggregations" }, "properties": [ { "description": "Start of the range.", "name": "from", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "IP range defined as a CIDR mask.", "name": "mask", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "End of the range.", "name": "to", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_types/aggregations/bucket.ts#L578-L591" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "IpRangeBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "to", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L631-L635" }, { "kind": "type_alias", "name": { "name": "KeyedPercentiles", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/Aggregate.ts#L160-L160", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } }, { "kind": "interface", "inherits": { "type": { "name": "MovingAverageAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "LinearMovingAverageAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "model", "required": true, "type": { "kind": "literal_value", "value": "linear" } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L268-L271" }, { "kind": "interface", "description": "Result of the `rare_terms` aggregation when the field is some kind of whole number like a integer, long, or a date.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "LongRareTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "LongRareTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L471-L476", "variantName": "lrareterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "LongRareTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L478-L481" }, { "kind": "interface", "description": "Result of a `terms` aggregation when the field is some kind of whole number like a integer, long, or a date.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "LongTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "TermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "LongTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L439-L444", "variantName": "lterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "TermsBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "LongTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L446-L449" }, { "kind": "interface", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "MatrixAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "An array of fields for computing the statistics.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "_types/aggregations/matrix.ts#L26-L36" }, { "kind": "interface", "extDocId": "search-aggregations-matrix-stats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-matrix-stats-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MatrixStatsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MatrixStatsFields", "namespace": "_types.aggregations" } } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L866-L873", "variantName": "matrix_stats" }, { "kind": "interface", "inherits": { "type": { "name": "MatrixAggregation", "namespace": "_types.aggregations" } }, "name": { "name": "MatrixStatsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Array value the aggregation will use for array or multi-valued fields.", "name": "mode", "required": false, "serverDefault": "avg", "type": { "kind": "instance_of", "type": { "name": "SortMode", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/matrix.ts#L38-L44" }, { "kind": "interface", "name": { "name": "MatrixStatsFields", "namespace": "_types.aggregations" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "mean", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "variance", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "skewness", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "kurtosis", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "covariance", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "name": "correlation", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L875-L884" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-max-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-max-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MaxAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L205-L209", "variantName": "max" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MaxAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/metric.ts#L165-L165" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-max-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-max-bucket-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MaxBucketAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L244-L247" }, { "kind": "interface", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MedianAbsoluteDeviationAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L196-L197", "variantName": "median_absolute_deviation" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-median-absolute-deviation-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-median-absolute-deviation-aggregation", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MedianAbsoluteDeviationAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "name": "compression", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L167-L176" }, { "kind": "interface", "name": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" }, "properties": [ { "description": "The field on which to run the aggregation.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L34-L45" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-min-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-min-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MinAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L199-L203", "variantName": "min" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MinAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/metric.ts#L178-L178" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-min-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-min-bucket-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MinBucketAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L249-L252" }, { "kind": "enum", "members": [ { "name": "second" }, { "name": "minute" }, { "name": "hour" }, { "name": "day" }, { "name": "month" }, { "name": "year" } ], "name": { "name": "MinimumInterval", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L112-L119" }, { "kind": "type_alias", "name": { "name": "Missing", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/AggregationContainer.ts#L535-L535", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ] } }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-missing-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-missing-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MissingAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L528-L532", "variantName": "missing" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MissingAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The name of the field.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/bucket.ts#L593-L599" }, { "kind": "enum", "members": [ { "name": "first" }, { "name": "last" }, { "name": "default" } ], "name": { "name": "MissingOrder", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/AggregationContainer.ts#L536-L540" }, { "kind": "type_alias", "name": { "name": "MovingAverageAggregation", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/pipeline.ts#L254-L260", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "LinearMovingAverageAggregation", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "SimpleMovingAverageAggregation", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "EwmaMovingAverageAggregation", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "HoltMovingAverageAggregation", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "HoltWintersMovingAverageAggregation", "namespace": "_types.aggregations" } } ] }, "variants": { "kind": "internal_tag", "tag": "model" } }, { "kind": "interface", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MovingAverageAggregationBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "minimize", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "predict", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "window", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L262-L266" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-movfn-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-movfn-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MovingFunctionAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The script that should be executed on each window of data.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "By default, the window consists of the last n values excluding the current bucket.\nIncreasing `shift` by 1, moves the starting window position by 1 to the right.", "name": "shift", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The size of window to \"slide\" across the histogram.", "name": "window", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L314-L332" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-moving-percentiles-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-moving-percentiles-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MovingPercentilesAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The size of window to \"slide\" across the histogram.", "name": "window", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "By default, the window consists of the last n values excluding the current bucket.\nIncreasing `shift` by 1, moves the starting window position by 1 to the right.", "name": "shift", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "keyed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L334-L349" }, { "kind": "interface", "generics": [ { "name": "TBucket", "namespace": "_types.aggregations.MultiBucketAggregateBase" } ], "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "buckets", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TBucket", "namespace": "_types.aggregations.MultiBucketAggregateBase" } } ], "type": { "name": "Buckets", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L357-L359" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } ], "meta": { "description": "Nested aggregations", "fieldname": "aggregations" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "description": "Base type for multi-bucket aggregation results that can hold sub-aggregations results.", "name": { "name": "MultiBucketBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L361-L370" }, { "kind": "interface", "name": { "name": "MultiTermLookup", "namespace": "_types.aggregations" }, "properties": [ { "description": "A fields from which to retrieve terms.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/bucket.ts#L643-L653" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-multi-terms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-multi-terms-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "MultiTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "TermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "MultiTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L501-L506", "variantName": "multi_terms" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "MultiTermsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Specifies the strategy for data collection.", "name": "collect_mode", "required": false, "serverDefault": "breadth_first", "type": { "kind": "instance_of", "type": { "name": "TermsAggregationCollectMode", "namespace": "_types.aggregations" } } }, { "description": "Specifies the sort order of the buckets.\nDefaults to sorting by descending document count.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregateOrder", "namespace": "_types.aggregations" } } }, { "description": "The minimum number of documents in a bucket for it to be returned.", "name": "min_doc_count", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The minimum number of documents in a bucket on each shard for it to be returned.", "name": "shard_min_doc_count", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of candidate terms produced by each shard.\nBy default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Calculates the doc count error on per term basis.", "name": "show_term_doc_count_error", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of term buckets should be returned out of the overall terms list.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The field from which to generate sets of terms.", "name": "terms", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MultiTermLookup", "namespace": "_types.aggregations" } } } } ], "specLocation": "_types/aggregations/bucket.ts#L601-L641" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "MultiTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } }, { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "doc_count_error_upper_bound", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L508-L512" }, { "kind": "interface", "name": { "name": "MutualInformationHeuristic", "namespace": "_types.aggregations" }, "properties": [ { "description": "Set to `false` if you defined a custom background filter that represents a different set of documents that you want to compare to.", "name": "background_is_superset", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Set to `false` to filter out the terms that appear less often in the subset than in documents outside the subset.", "name": "include_negatives", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L800-L809" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-nested-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-nested-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "NestedAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L534-L538", "variantName": "nested" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "NestedAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The path to the field of type `nested`.", "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L655-L660" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-normalize-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-normalize-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "NormalizeAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The specific method to apply.", "name": "method", "required": false, "type": { "kind": "instance_of", "type": { "name": "NormalizeMethod", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L351-L359" }, { "kind": "enum", "members": [ { "description": "This method rescales the data such that the minimum number is 0, and the maximum number is 1, with the rest normalized linearly in-between.", "name": "rescale_0_1" }, { "description": "This method rescales the data such that the minimum number is 0, and the maximum number is 100, with the rest normalized linearly in-between.", "name": "rescale_0_100" }, { "description": "This method normalizes each value so that it represents a percentage of the total sum it attributes to.", "name": "percent_of_sum" }, { "description": "This method normalizes such that each value is normalized by how much it differs from the average.", "name": "mean" }, { "codegenName": "z_score", "description": "This method normalizes such that each value represents how far it is from the mean relative to the standard deviation.", "name": "z-score" }, { "description": "This method normalizes such that each value is exponentiated and relative to the sum of the exponents of the original values.", "name": "softmax" } ], "name": { "name": "NormalizeMethod", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/pipeline.ts#L361-L387" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-parent-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-parent-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "ParentAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L894-L898", "variantName": "parent" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ParentAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The child type that should be selected.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L662-L667" }, { "kind": "interface", "name": { "name": "PercentageScoreHeuristic", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/bucket.ts#L811-L811" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-percentile-rank-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-percentile-rank-aggregation", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "PercentileRanksAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "By default, the aggregation associates a unique string key with each bucket and returns the ranges as a hash rather than an array.\nSet to `false` to disable this behavior.", "name": "keyed", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "An array of values for which to calculate the percentile ranks.", "name": "values", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "Uses the alternative High Dynamic Range Histogram algorithm to calculate percentile ranks.", "name": "hdr", "required": false, "type": { "kind": "instance_of", "type": { "name": "HdrMethod", "namespace": "_types.aggregations" } } }, { "description": "Sets parameters for the default TDigest algorithm used to calculate percentile ranks.", "name": "tdigest", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDigest", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/metric.ts#L180-L202" }, { "kind": "type_alias", "codegenNames": [ "keyed", "array" ], "name": { "name": "Percentiles", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/Aggregate.ts#L152-L153", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "KeyedPercentiles", "namespace": "_types.aggregations" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ArrayPercentilesItem", "namespace": "_types.aggregations" } } } ] } }, { "kind": "interface", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "PercentilesAggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "values", "required": true, "type": { "kind": "instance_of", "type": { "name": "Percentiles", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L148-L150" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "PercentilesAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "By default, the aggregation associates a unique string key with each bucket and returns the ranges as a hash rather than an array.\nSet to `false` to disable this behavior.", "name": "keyed", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The percentiles to calculate.", "name": "percents", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "description": "Uses the alternative High Dynamic Range Histogram algorithm to calculate percentiles.", "name": "hdr", "required": false, "type": { "kind": "instance_of", "type": { "name": "HdrMethod", "namespace": "_types.aggregations" } } }, { "description": "Sets parameters for the default TDigest algorithm used to calculate percentiles.", "name": "tdigest", "required": false, "type": { "kind": "instance_of", "type": { "name": "TDigest", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/metric.ts#L204-L223" }, { "kind": "interface", "inherits": { "type": { "name": "PercentilesAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "PercentilesBucketAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L180-L181", "variantName": "percentiles_bucket" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-percentiles-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-percentiles-bucket-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "PercentilesBucketAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The list of percentiles to calculate.", "name": "percents", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "_types/aggregations/pipeline.ts#L389-L397" }, { "kind": "interface", "inherits": { "type": { "name": "BucketPathAggregation", "namespace": "_types.aggregations" } }, "name": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" }, "properties": [ { "description": "`DecimalFormat` pattern for the output value.\nIf specified, the formatted value is returned in the aggregation’s `value_as_string` property.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Policy to apply when gaps are found in the data.", "docId": "gap-policy", "docUrl": "https://www.elastic.co/docs/reference/aggregations/pipeline#gap-policy", "name": "gap_policy", "required": false, "serverDefault": "skip", "type": { "kind": "instance_of", "type": { "name": "GapPolicy", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L39-L51" }, { "kind": "interface", "extDocId": "search-aggregations-random-sampler-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-random-sampler-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "RandomSamplerAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The probability that a document will be included in the aggregated data.\nMust be greater than 0, less than 0.5, or exactly 1.\nThe lower the probability, the fewer documents are matched.", "name": "probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The seed to generate the random sampling of documents.\nWhen a seed is provided, the random subset of documents is the same between calls.", "name": "seed", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "stack": { "since": "8.14.0" } }, "description": "When combined with seed, setting shard_seed ensures 100% consistent sampling over shards where data is exactly the same.", "name": "shard_seed", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L749-L769" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-range-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-range-aggregation", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "RangeBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "RangeAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L594-L598", "variantName": "range" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "RangeAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The date field whose values are use to build ranges.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "An array of ranges used to bucket documents.", "name": "ranges", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AggregationRange", "namespace": "_types.aggregations" } } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Set to `true` to associate a unique string key with each bucket and return the ranges as a hash rather than an array.", "name": "keyed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L669-L689" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "RangeBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "to", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "from_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "to_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The bucket key. Present if the aggregation is _not_ keyed", "name": "key", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L600-L607" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-rare-terms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-rare-terms-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "RareTermsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Terms that should be excluded from the aggregation.", "name": "exclude", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsExclude", "namespace": "_types.aggregations" } } }, { "description": "The field from which to return rare terms.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Terms that should be included in the aggregation.", "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsInclude", "namespace": "_types.aggregations" } } }, { "description": "The maximum number of documents a term should appear in.", "name": "max_doc_count", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } }, { "description": "The precision of the internal CuckooFilters.\nSmaller precision leads to better approximation, but higher memory usage.", "name": "precision", "required": false, "serverDefault": 0.001, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "value_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L706-L739" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-rate-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-rate-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "RateAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "value_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L847-L854", "variantName": "rate" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "RateAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The interval used to calculate the rate.\nBy default, the interval of the `date_histogram` is used.", "name": "unit", "required": false, "type": { "kind": "instance_of", "type": { "name": "CalendarInterval", "namespace": "_types.aggregations" } } }, { "description": "How the rate is calculated.", "name": "mode", "required": false, "serverDefault": "sum", "type": { "kind": "instance_of", "type": { "name": "RateMode", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/metric.ts#L239-L250" }, { "kind": "enum", "members": [ { "description": "Calculates the sum of all values of the field.", "name": "sum" }, { "description": "Uses the number of values of the field.", "name": "value_count" } ], "name": { "name": "RateMode", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/metric.ts#L252-L261" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "extDocId": "search-aggregations-bucket-reverse-nested-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-reverse-nested-aggregation", "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "ReverseNestedAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L540-L544", "variantName": "reverse_nested" }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ReverseNestedAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Defines the nested object field that should be joined back to.\nThe default is empty, which means that it joins back to the root/main document level.", "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L741-L747" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SamplerAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L558-L559", "variantName": "sampler" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-sampler-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-sampler-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SamplerAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Limits how many top-scoring documents are collected in the sample processed on each shard.", "name": "shard_size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L771-L780" }, { "kind": "enum", "members": [ { "description": "Hold field values directly.", "name": "map" }, { "description": "Hold ordinals of the field as determined by the Lucene index.", "name": "global_ordinals" }, { "description": "Hold hashes of the field values - with potential for hash collisions.", "name": "bytes_hash" } ], "name": { "name": "SamplerAggregationExecutionHint", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L359-L372" }, { "kind": "interface", "name": { "name": "ScriptedHeuristic", "namespace": "_types.aggregations" }, "properties": [ { "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L813-L815" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-scripted-metric-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-scripted-metric-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "ScriptedMetricAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "_types/aggregations/Aggregate.ts#L739-L745", "variantName": "scripted_metric" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ScriptedMetricAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Runs once on each shard after document collection is complete.\nAllows the aggregation to consolidate the state returned from each shard.", "name": "combine_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Runs prior to any collection of documents.\nAllows the aggregation to set up any initial state.", "name": "init_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Run once per document collected.\nIf no `combine_script` is specified, the resulting state needs to be stored in the `state` object.", "name": "map_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "A global object with script parameters for `init`, `map` and `combine` scripts.\nIt is shared between the scripts.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Runs once on the coordinating node after all shards have returned their results.\nThe script is provided with access to a variable `states`, which is an array of the result of the `combine_script` on each shard.", "name": "reduce_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L263-L289" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-serialdiff-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-serialdiff-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SerialDifferencingAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The historical bucket to subtract from the current value.\nMust be a positive, non-zero integer.", "name": "lag", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L399-L408" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "SignificantLongTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "SignificantTermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantLongTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L668-L670", "variantName": "siglterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "SignificantTermsBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantLongTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L677-L680" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "SignificantStringTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "SignificantTermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantStringTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L682-L684", "variantName": "sigsterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "SignificantTermsBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantStringTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L686-L688" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-significanttext-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-significanttext-aggregation", "generics": [ { "name": "T", "namespace": "_types.aggregations.SignificantTermsAggregateBase" } ], "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.aggregations.SignificantTermsAggregateBase" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantTermsAggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "bg_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L658-L666" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-significanttext-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-significanttext-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantTermsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index.", "name": "background_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Use Chi square, as described in \"Information Retrieval\", Manning et al., Chapter 13.5.2, as the significance score.", "name": "chi_square", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChiSquareHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Terms to exclude.", "name": "exclude", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsExclude", "namespace": "_types.aggregations" } } }, { "description": "Mechanism by which the aggregation should be executed: using field values directly or using global ordinals.", "name": "execution_hint", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregationExecutionHint", "namespace": "_types.aggregations" } } }, { "description": "The field from which to return significant terms.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Use Google normalized distance as described in \"The Google Similarity Distance\", Cilibrasi and Vitanyi, 2007, as the significance score.", "name": "gnd", "required": false, "type": { "kind": "instance_of", "type": { "name": "GoogleNormalizedDistanceHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Terms to include.", "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsInclude", "namespace": "_types.aggregations" } } }, { "description": "Use JLH score as the significance score.", "name": "jlh", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } }, { "description": "Only return terms that are found in more than `min_doc_count` hits.", "name": "min_doc_count", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Use mutual information as described in \"Information Retrieval\", Manning et al., Chapter 13.5.1, as the significance score.", "name": "mutual_information", "required": false, "type": { "kind": "instance_of", "type": { "name": "MutualInformationHeuristic", "namespace": "_types.aggregations" } } }, { "description": "A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term.", "name": "percentage", "required": false, "type": { "kind": "instance_of", "type": { "name": "PercentageScoreHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Customized score, implemented via a script.", "name": "script_heuristic", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptedHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the `min_doc_count`.\nTerms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.", "name": "shard_min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Can be used to control the volumes of candidate terms produced by each shard.\nBy default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of buckets returned out of the overall terms list.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L817-L884" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantTermsBucketBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "bg_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L672-L675" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-significanttext-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-significanttext-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SignificantTextAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index.", "name": "background_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Use Chi square, as described in \"Information Retrieval\", Manning et al., Chapter 13.5.2, as the significance score.", "name": "chi_square", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChiSquareHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Values to exclude.", "name": "exclude", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsExclude", "namespace": "_types.aggregations" } } }, { "description": "Determines whether the aggregation will use field values directly or global ordinals.", "name": "execution_hint", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregationExecutionHint", "namespace": "_types.aggregations" } } }, { "description": "The field from which to return significant text.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Whether to out duplicate text to deal with noisy data.", "name": "filter_duplicate_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Use Google normalized distance as described in \"The Google Similarity Distance\", Cilibrasi and Vitanyi, 2007, as the significance score.", "name": "gnd", "required": false, "type": { "kind": "instance_of", "type": { "name": "GoogleNormalizedDistanceHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Values to include.", "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsInclude", "namespace": "_types.aggregations" } } }, { "description": "Use JLH score as the significance score.", "name": "jlh", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } }, { "description": "Only return values that are found in more than `min_doc_count` hits.", "name": "min_doc_count", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Use mutual information as described in \"Information Retrieval\", Manning et al., Chapter 13.5.1, as the significance score.", "name": "mutual_information", "required": false, "type": { "kind": "instance_of", "type": { "name": "MutualInformationHeuristic", "namespace": "_types.aggregations" } } }, { "description": "A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term.", "name": "percentage", "required": false, "type": { "kind": "instance_of", "type": { "name": "PercentageScoreHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Customized score, implemented via a script.", "name": "script_heuristic", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptedHeuristic", "namespace": "_types.aggregations" } } }, { "description": "Regulates the certainty a shard has if the values should actually be added to the candidate list or not with respect to the min_doc_count.\nValues will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.", "name": "shard_min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of candidate terms produced by each shard.\nBy default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of buckets returned out of the overall terms list.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Overrides the JSON `_source` fields from which text will be analyzed.", "name": "source_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L886-L961" }, { "kind": "interface", "inherits": { "type": { "name": "MovingAverageAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SimpleMovingAverageAggregation", "namespace": "_types.aggregations" }, "properties": [ { "name": "model", "required": true, "type": { "kind": "literal_value", "value": "simple" } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/pipeline.ts#L273-L276" }, { "kind": "interface", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SimpleValueAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L238-L239", "variantName": "simple_value" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } ], "meta": { "description": "Nested aggregations", "fieldname": "aggregations" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "description": "Base type for single-bucket aggregation results that can hold sub-aggregations results.", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L516-L526" }, { "kind": "interface", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "description": "The metric value. A missing value generally means that there was no data to aggregate,\nunless specified otherwise.", "name": "value", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "value_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L185-L194" }, { "kind": "interface", "name": { "name": "StandardDeviationBounds", "namespace": "_types.aggregations" }, "properties": [ { "name": "upper", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "lower", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "upper_population", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "lower_population", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "upper_sampling", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "lower_sampling", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_types/aggregations/Aggregate.ts#L281-L288" }, { "kind": "interface", "name": { "name": "StandardDeviationBoundsAsString", "namespace": "_types.aggregations" }, "properties": [ { "name": "upper", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "lower", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "upper_population", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "lower_population", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "upper_sampling", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "lower_sampling", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L290-L297" }, { "kind": "interface", "description": "Statistics aggregation result. `min`, `max` and `avg` are missing if there were no values to process\n(`count` is zero).", "extDocId": "search-aggregations-metrics-stats-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-stats-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "StatsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "max", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "avg", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "sum", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "min_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "avg_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "sum_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L257-L273", "variantName": "stats" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "StatsAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/metric.ts#L291-L291" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-stats-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-stats-bucket-aggregation", "inherits": { "type": { "name": "StatsAggregate", "namespace": "_types.aggregations" } }, "name": { "name": "StatsBucketAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L275-L279", "variantName": "stats_bucket" }, { "kind": "interface", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "StatsBucketAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L410-L410" }, { "kind": "interface", "description": "Result of the `rare_terms` aggregation when the field is a string.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "StringRareTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "StringRareTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L483-L487", "variantName": "srareterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "StringRareTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L489-L491" }, { "kind": "interface", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "StringStatsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_length", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "max_length", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "avg_length", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "entropy", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "distribution", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "min_length_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_length_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "avg_length_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L793-L804", "variantName": "string_stats" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "StringStatsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Shows the probability distribution for all characters.", "name": "show_distribution", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/metric.ts#L293-L299" }, { "kind": "interface", "description": "Result of a `terms` aggregation when the field is a string.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "StringTermsBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "TermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "StringTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L424-L429", "variantName": "sterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "TermsBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "StringTermsBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L435-L437" }, { "kind": "interface", "description": "Sum aggregation result. `value` is always present and is zero if there were no values to process.", "extDocId": "search-aggregations-metrics-sum-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-sum-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "SumAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L211-L216", "variantName": "sum" }, { "kind": "interface", "inherits": { "type": { "name": "FormatMetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SumAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/metric.ts#L301-L301" }, { "kind": "interface", "extDocId": "search-aggregations-pipeline-sum-bucket-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-pipeline-sum-bucket-aggregation", "inherits": { "type": { "name": "PipelineAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "SumBucketAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/pipeline.ts#L412-L415" }, { "kind": "interface", "name": { "name": "TDigest", "namespace": "_types.aggregations" }, "properties": [ { "description": "Limits the maximum number of nodes used by the underlying TDigest algorithm to `20 * compression`, enabling control of memory usage and approximation error.", "name": "compression", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L232-L237" }, { "kind": "interface", "inherits": { "type": { "name": "PercentilesAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TDigestPercentileRanksAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L177-L178", "variantName": "tdigest_percentile_ranks" }, { "kind": "interface", "inherits": { "type": { "name": "PercentilesAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TDigestPercentilesAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L174-L175", "variantName": "tdigest_percentiles" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-ttest-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-ttest-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TTestAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "value_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L838-L845", "variantName": "t_test" }, { "kind": "interface", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "TTestAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Test population A.", "name": "a", "required": false, "type": { "kind": "instance_of", "type": { "name": "TestPopulation", "namespace": "_types.aggregations" } } }, { "description": "Test population B.", "name": "b", "required": false, "type": { "kind": "instance_of", "type": { "name": "TestPopulation", "namespace": "_types.aggregations" } } }, { "description": "The type of test.", "name": "type", "required": false, "serverDefault": "heteroscedastic", "type": { "kind": "instance_of", "type": { "name": "TTestType", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/metric.ts#L303-L317" }, { "kind": "enum", "members": [ { "description": "Performs paired t-test.", "name": "paired" }, { "description": "Performs two-sample equal variance test.", "name": "homoscedastic" }, { "description": "Performs two-sample unequal variance test.", "name": "heteroscedastic" } ], "name": { "name": "TTestType", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/metric.ts#L331-L344" }, { "kind": "interface", "generics": [ { "name": "TBucket", "namespace": "_types.aggregations.TermsAggregateBase" } ], "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "TBucket", "namespace": "_types.aggregations.TermsAggregateBase" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TermsAggregateBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "doc_count_error_upper_bound", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "sum_other_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L417-L422" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-terms-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-terms-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "TermsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Determines how child aggregations should be calculated: breadth-first or depth-first.", "name": "collect_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregationCollectMode", "namespace": "_types.aggregations" } } }, { "description": "Values to exclude.\nAccepts regular expressions and partitions.", "name": "exclude", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsExclude", "namespace": "_types.aggregations" } } }, { "description": "Determines whether the aggregation will use field values directly or global ordinals.", "name": "execution_hint", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregationExecutionHint", "namespace": "_types.aggregations" } } }, { "description": "The field from which to return terms.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Values to include.\nAccepts regular expressions and partitions.", "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsInclude", "namespace": "_types.aggregations" } } }, { "description": "Only return values that are found in more than `min_doc_count` hits.", "name": "min_doc_count", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The value to apply to documents that do not have a value.\nBy default, documents without a value are ignored.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Missing", "namespace": "_types.aggregations" } } }, { "name": "missing_order", "required": false, "type": { "kind": "instance_of", "type": { "name": "MissingOrder", "namespace": "_types.aggregations" } } }, { "name": "missing_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Coerced unmapped fields into the specified type.", "name": "value_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies the sort order of the buckets.\nDefaults to sorting by descending document count.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregateOrder", "namespace": "_types.aggregations" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the `min_doc_count`.\nTerms will only be considered if their local shard frequency within the set is higher than the `shard_min_doc_count`.", "name": "shard_min_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of candidate terms produced by each shard.\nBy default, `shard_size` will be automatically estimated based on the number of shards and the `size` parameter.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Set to `true` to return the `doc_count_error_upper_bound`, which is an upper bound to the error on the `doc_count` returned by each shard.", "name": "show_term_doc_count_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of buckets returned out of the overall terms list.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L963-L1031" }, { "kind": "enum", "members": [ { "description": "Expands all branches of the aggregation tree in one depth-first pass, before any pruning occurs.", "name": "depth_first" }, { "description": "Caches the set of documents that fall into the uppermost buckets for subsequent replay.", "name": "breadth_first" } ], "name": { "name": "TermsAggregationCollectMode", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L1056-L1065" }, { "kind": "enum", "members": [ { "name": "map" }, { "name": "global_ordinals" }, { "name": "global_ordinals_hash" }, { "name": "global_ordinals_low_cardinality" } ], "name": { "name": "TermsAggregationExecutionHint", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L1067-L1072" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "TermsBucketBase", "namespace": "_types.aggregations" }, "properties": [ { "name": "doc_count_error_upper_bound", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L431-L433" }, { "kind": "type_alias", "codegenNames": [ "regexp", "terms" ], "name": { "name": "TermsExclude", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L1077-L1078", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "kind": "type_alias", "codegenNames": [ "regexp", "terms", "partition" ], "name": { "name": "TermsInclude", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/bucket.ts#L1074-L1075", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "instance_of", "type": { "name": "TermsPartition", "namespace": "_types.aggregations" } } ] } }, { "kind": "interface", "name": { "name": "TermsPartition", "namespace": "_types.aggregations" }, "properties": [ { "description": "The number of partitions.", "name": "num_partitions", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The partition number for this request.", "name": "partition", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1080-L1089" }, { "kind": "interface", "name": { "name": "TestPopulation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The field to aggregate.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "A filter used to define a set of records to run unpaired t-test on.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/aggregations/metric.ts#L319-L329" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "TimeSeriesBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TimeSeriesAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L730-L731", "variantName": "time_series" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-time-series-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-time-series-aggregation", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "TimeSeriesAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The maximum number of results to return.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Set to `true` to associate a unique string key with each bucket and returns the ranges as a hash rather than an array.", "name": "keyed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1033-L1046" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "TimeSeriesBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "key", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L733-L735" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-top-hits-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-top-hits-aggregation", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TopHitsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "user_defined_value" } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L747-L753", "variantName": "top_hits" }, { "kind": "interface", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "TopHitsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "Fields for which to return doc values.", "name": "docvalue_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "description": "If `true`, returns detailed information about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Array of wildcard (*) patterns. The request returns values for field names\nmatching these patterns in the hits.fields property of the response.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "description": "Starting document offset.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in the search results.", "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "Highlight", "namespace": "_global.search._types" } } }, { "description": "Returns the result of one or more script evaluations for each hit.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "description": "The maximum number of top matching hits to return per bucket.", "name": "size", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Sort order of the top matching hits.\nBy default, the hits are sorted by the score of the main query.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "Selects the fields of the source that are returned.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "Returns values for the specified stored fields (fields that use the `store` mapping option).", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true`, calculates and returns document scores, even if the scores are not used for sorting.", "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns document version as part of a hit.", "name": "version", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns sequence number and primary term of the last modification of each hit.", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/metric.ts#L346-L406" }, { "kind": "interface", "name": { "name": "TopMetrics", "namespace": "_types.aggregations" }, "properties": [ { "name": "sort", "required": true, "type": { "kind": "array_of", "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } }, { "name": "metrics", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L832-L836" }, { "kind": "interface", "inherits": { "type": { "name": "AggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "TopMetricsAggregate", "namespace": "_types.aggregations" }, "properties": [ { "name": "top", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TopMetrics", "namespace": "_types.aggregations" } } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L827-L830", "variantName": "top_metrics" }, { "kind": "interface", "extDocId": "search-aggregations-metrics-top-metrics", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-top-metrics", "inherits": { "type": { "name": "MetricAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "TopMetricsAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The fields of the top document to return.", "name": "metrics", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TopMetricsValue", "namespace": "_types.aggregations" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TopMetricsValue", "namespace": "_types.aggregations" } } } ] } }, { "description": "The number of top documents from which to return metrics.", "name": "size", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The sort order of the documents.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L408-L425" }, { "kind": "interface", "name": { "name": "TopMetricsValue", "namespace": "_types.aggregations" }, "properties": [ { "description": "A field to return as a metric.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L427-L432" }, { "kind": "interface", "description": "Result of a `rare_terms` aggregation when the field is unmapped. `buckets` is always empty.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "Void", "namespace": "_spec_utils" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "UnmappedRareTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L493-L499", "variantName": "umrareterms" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "SingleBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "UnmappedSamplerAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L561-L562", "variantName": "unmapped_sampler" }, { "kind": "interface", "description": "Result of the `significant_terms` aggregation on an unmapped field. `buckets` is always empty.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "Void", "namespace": "_spec_utils" } } ], "type": { "name": "SignificantTermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "UnmappedSignificantTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L690-L696", "variantName": "umsigterms" }, { "kind": "interface", "description": "Result of a `terms` aggregation when the field is unmapped. `buckets` is always empty.", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "Void", "namespace": "_spec_utils" } } ], "type": { "name": "TermsAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "UnmappedTermsAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L463-L469", "variantName": "umterms" }, { "kind": "interface", "description": "Value count aggregation result. `value` is always present.", "extDocId": "search-aggregations-metrics-valuecount-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-valuecount-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "ValueCountAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L231-L236", "variantName": "value_count" }, { "kind": "interface", "inherits": { "type": { "name": "FormattableMetricAggregation", "namespace": "_types.aggregations" } }, "name": { "name": "ValueCountAggregation", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/metric.ts#L434-L434" }, { "kind": "enum", "members": [ { "name": "string" }, { "name": "long" }, { "name": "double" }, { "name": "number" }, { "name": "date" }, { "name": "date_nanos" }, { "name": "ip" }, { "name": "numeric" }, { "name": "geo_point" }, { "name": "boolean" } ], "name": { "name": "ValueType", "namespace": "_types.aggregations" }, "specLocation": "_types/aggregations/metric.ts#L436-L447" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "VariableWidthHistogramBucket", "namespace": "_types.aggregations" } } ], "type": { "name": "MultiBucketAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "VariableWidthHistogramAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L402-L404", "variantName": "variable_width_histogram" }, { "kind": "interface", "extDocId": "search-aggregations-bucket-variablewidthhistogram-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-variablewidthhistogram-aggregation", "name": { "name": "VariableWidthHistogramAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "The name of the field.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The target number of buckets.", "name": "buckets", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of buckets that the coordinating node will request from each shard.\nDefaults to `buckets * 50`.", "name": "shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run.\nDefaults to `min(10 * shard_size, 50000)`.", "name": "initial_buffer", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/bucket.ts#L1091-L1115" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "inherits": { "type": { "name": "MultiBucketBase", "namespace": "_types.aggregations" } }, "name": { "name": "VariableWidthHistogramBucket", "namespace": "_types.aggregations" }, "properties": [ { "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "key", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "min_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "key_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_as_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/aggregations/Aggregate.ts#L406-L413" }, { "kind": "interface", "inherits": { "type": { "name": "Aggregation", "namespace": "_types.aggregations" } }, "name": { "name": "WeightedAverageAggregation", "namespace": "_types.aggregations" }, "properties": [ { "description": "A numeric response formatter.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Configuration for the field that provides the values.", "name": "value", "required": false, "type": { "kind": "instance_of", "type": { "name": "WeightedAverageValue", "namespace": "_types.aggregations" } } }, { "name": "value_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "ValueType", "namespace": "_types.aggregations" } } }, { "description": "Configuration for the field or script that provides the weights.", "name": "weight", "required": false, "type": { "kind": "instance_of", "type": { "name": "WeightedAverageValue", "namespace": "_types.aggregations" } } } ], "specLocation": "_types/aggregations/metric.ts#L449-L463" }, { "kind": "interface", "name": { "name": "WeightedAverageValue", "namespace": "_types.aggregations" }, "properties": [ { "description": "The field from which to extract the values or weights.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "A value or weight to use if the field is missing.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/aggregations/metric.ts#L465-L475" }, { "kind": "interface", "description": "Weighted average aggregation result. `value` is missing if the weight was set to zero.", "extDocId": "search-aggregations-metrics-weight-avg-aggregation", "extDocUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-weight-avg-aggregation", "inherits": { "type": { "name": "SingleMetricAggregateBase", "namespace": "_types.aggregations" } }, "name": { "name": "WeightedAvgAggregate", "namespace": "_types.aggregations" }, "properties": [], "specLocation": "_types/aggregations/Aggregate.ts#L224-L229", "variantName": "weighted_avg" }, { "kind": "type_alias", "name": { "name": "Analyzer", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/analyzers.ts#L427-L480", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CustomAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "FingerprintAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KeywordAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "NoriAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PatternAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SimpleAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "StandardAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "StopAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "WhitespaceAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KuromojiAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SnowballAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ArabicAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ArmenianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "BasqueAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "BengaliAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "BrazilianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "BulgarianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "CatalanAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ChineseAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "CjkAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "CzechAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "DanishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "DutchAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "EnglishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "EstonianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "FinnishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "FrenchAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "GalicianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "GermanAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "GreekAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "HindiAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "HungarianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IndonesianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IrishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ItalianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LatvianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LithuanianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "NorwegianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PersianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PortugueseAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "RomanianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "RussianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SerbianAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SoraniAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SpanishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SwedishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "TurkishAnalyzer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ThaiAnalyzer", "namespace": "_types.analysis" } } ] }, "variants": { "kind": "internal_tag", "defaultTag": "custom", "nonExhaustive": true, "tag": "type" } }, { "kind": "interface", "name": { "name": "ArabicAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "arabic" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L72-L77" }, { "kind": "interface", "name": { "name": "ArmenianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "armenian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L79-L84" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "AsciiFoldingTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "asciifolding" } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L169-L172" }, { "kind": "interface", "name": { "name": "BasqueAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "basque" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L86-L91" }, { "kind": "interface", "name": { "name": "BengaliAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "bengali" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L93-L98" }, { "kind": "interface", "name": { "name": "BrazilianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "brazilian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L100-L104" }, { "kind": "interface", "name": { "name": "BulgarianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "bulgarian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L106-L111" }, { "kind": "interface", "name": { "name": "CatalanAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "catalan" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L113-L118" }, { "kind": "type_alias", "codegenNames": [ "name", "definition" ], "extDocId": "analysis-charfilters", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/character-filter-reference", "name": { "name": "CharFilter", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/char_filters.ts#L28-L33", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "CharFilterDefinition", "namespace": "_types.analysis" } } ] } }, { "kind": "interface", "name": { "name": "CharFilterBase", "namespace": "_types.analysis" }, "properties": [ { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "_types/analysis/char_filters.ts#L24-L26" }, { "kind": "type_alias", "name": { "name": "CharFilterDefinition", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/char_filters.ts#L35-L44", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "HtmlStripCharFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "MappingCharFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PatternReplaceCharFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuNormalizationCharFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KuromojiIterationMarkCharFilter", "namespace": "_types.analysis" } } ] }, "variants": { "kind": "internal_tag", "nonExhaustive": true, "tag": "type" } }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "CharGroupTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "char_group" } }, { "name": "tokenize_on_chars", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "max_token_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L31-L38" }, { "kind": "interface", "name": { "name": "ChineseAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "chinese" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L120-L124" }, { "kind": "interface", "name": { "name": "CjkAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "cjk" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L126-L130" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "ClassicTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "classic" } }, { "name": "max_token_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L40-L46" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "CommonGramsTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "common_grams" } }, { "name": "common_words", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "common_words_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ignore_case", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "query_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L174-L180" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "CompoundWordTokenFilterBase", "namespace": "_types.analysis" }, "properties": [ { "name": "hyphenation_patterns_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_subword_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_subword_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_word_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "only_longest_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "word_list", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "word_list_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L43-L51" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "ConditionTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "condition" } }, { "name": "filter", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/analysis/token_filters.ts#L182-L186" }, { "kind": "interface", "name": { "name": "CustomAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "custom" } }, { "name": "char_filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "position_increment_gap", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "position_offset_gap", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "tokenizer", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L28-L35" }, { "kind": "interface", "name": { "name": "CustomNormalizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "custom" } }, { "name": "char_filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/normalizers.ts#L30-L34" }, { "kind": "interface", "name": { "name": "CzechAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "czech" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L132-L137" }, { "kind": "interface", "name": { "name": "DanishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "danish" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L139-L143" }, { "kind": "enum", "members": [ { "name": "int" }, { "name": "float" }, { "name": "identity" } ], "name": { "name": "DelimitedPayloadEncoding", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/token_filters.ts#L61-L65" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "DelimitedPayloadTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "delimited_payload" } }, { "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "DelimitedPayloadEncoding", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/token_filters.ts#L67-L71" }, { "kind": "interface", "inherits": { "type": { "name": "CompoundWordTokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "DictionaryDecompounderTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "dictionary_decompounder" } } ], "specLocation": "_types/analysis/token_filters.ts#L53-L55" }, { "kind": "interface", "name": { "name": "DutchAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "dutch" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L145-L150" }, { "kind": "enum", "members": [ { "name": "front" }, { "name": "back" } ], "name": { "name": "EdgeNGramSide", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/token_filters.ts#L73-L76" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "EdgeNGramTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "edge_ngram" } }, { "name": "max_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "side", "required": false, "type": { "kind": "instance_of", "type": { "name": "EdgeNGramSide", "namespace": "_types.analysis" } } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L78-L84" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "EdgeNGramTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "edge_ngram" } }, { "name": "custom_token_chars", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "token_chars", "required": false, "serverDefault": [], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TokenChar", "namespace": "_types.analysis" } } } } ], "specLocation": "_types/analysis/tokenizers.ts#L48-L57" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "ElisionTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "elision" } }, { "name": "articles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "articles_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "articles_case", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L188-L193" }, { "kind": "interface", "name": { "name": "EnglishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "english" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L152-L157" }, { "kind": "interface", "name": { "name": "EstonianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "estonian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L159-L163" }, { "kind": "interface", "name": { "name": "FingerprintAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "fingerprint" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "The maximum token size to emit. Tokens larger than this size will be discarded.\nDefaults to `255`", "name": "max_output_size", "required": false, "serverDefault": 255, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The character to use to concatenate the terms.\nDefaults to a space.", "name": "separator", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A pre-defined stop words list like `_english_` or an array containing a list of stop words.\nDefaults to `_none_`.", "name": "stopwords", "required": false, "serverDefault": "_none_", "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "description": "The path to a file containing stop words.", "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L37-L64" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "FingerprintTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "fingerprint" } }, { "name": "max_output_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "separator", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L195-L199" }, { "kind": "interface", "name": { "name": "FinnishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "finnish" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L165-L170" }, { "kind": "interface", "name": { "name": "FrenchAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "french" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L172-L177" }, { "kind": "interface", "name": { "name": "GalicianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "galician" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L179-L184" }, { "kind": "interface", "name": { "name": "GermanAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "german" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L186-L191" }, { "kind": "interface", "name": { "name": "GreekAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "greek" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L193-L197" }, { "kind": "interface", "name": { "name": "HindiAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "hindi" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L199-L204" }, { "kind": "interface", "inherits": { "type": { "name": "CharFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "HtmlStripCharFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "html_strip" } }, { "name": "escaped_tags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/char_filters.ts#L46-L49" }, { "kind": "interface", "name": { "name": "HungarianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "hungarian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L206-L211" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "HunspellTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "hunspell" } }, { "name": "dedup", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "dictionary", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "locale", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "longest_only", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L201-L207" }, { "kind": "interface", "inherits": { "type": { "name": "CompoundWordTokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "HyphenationDecompounderTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "hyphenation_decompounder" } } ], "specLocation": "_types/analysis/token_filters.ts#L57-L59" }, { "kind": "interface", "name": { "name": "IcuAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_analyzer" } }, { "name": "method", "required": true, "type": { "kind": "instance_of", "type": { "name": "IcuNormalizationType", "namespace": "_types.analysis" } } }, { "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "IcuNormalizationMode", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L67-L71" }, { "kind": "enum", "members": [ { "name": "shifted" }, { "name": "non-ignorable" } ], "name": { "name": "IcuCollationAlternate", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L89-L92" }, { "kind": "enum", "members": [ { "name": "lower" }, { "name": "upper" } ], "name": { "name": "IcuCollationCaseFirst", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L94-L97" }, { "kind": "enum", "members": [ { "name": "no" }, { "name": "identical" } ], "name": { "name": "IcuCollationDecomposition", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L99-L102" }, { "kind": "enum", "members": [ { "name": "primary" }, { "name": "secondary" }, { "name": "tertiary" }, { "name": "quaternary" }, { "name": "identical" } ], "name": { "name": "IcuCollationStrength", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L104-L110" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "IcuCollationTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_collation" } }, { "name": "alternate", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationAlternate", "namespace": "_types.analysis" } } }, { "name": "case_first", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationCaseFirst", "namespace": "_types.analysis" } } }, { "name": "case_level", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "country", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "decomposition", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationDecomposition", "namespace": "_types.analysis" } } }, { "name": "hiragana_quaternary_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "numeric", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "rules", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "strength", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationStrength", "namespace": "_types.analysis" } } }, { "name": "variable_top", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "variant", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L51-L65" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "IcuFoldingTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_folding" } }, { "name": "unicode_set_filter", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L46-L49" }, { "kind": "interface", "inherits": { "type": { "name": "CharFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "IcuNormalizationCharFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_normalizer" } }, { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuNormalizationMode", "namespace": "_types.analysis" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuNormalizationType", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L40-L44" }, { "kind": "enum", "members": [ { "name": "decompose" }, { "name": "compose" } ], "name": { "name": "IcuNormalizationMode", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L78-L81" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "IcuNormalizationTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_normalizer" } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IcuNormalizationType", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L35-L38" }, { "kind": "enum", "members": [ { "name": "nfc" }, { "name": "nfkc" }, { "name": "nfkc_cf" } ], "name": { "name": "IcuNormalizationType", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L83-L87" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "IcuTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_tokenizer" } }, { "name": "rule_files", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L30-L33" }, { "kind": "enum", "members": [ { "name": "forward" }, { "name": "reverse" } ], "name": { "name": "IcuTransformDirection", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/icu-plugin.ts#L73-L76" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "IcuTransformTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_transform" } }, { "name": "dir", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuTransformDirection", "namespace": "_types.analysis" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/icu-plugin.ts#L24-L28" }, { "kind": "interface", "name": { "name": "IndonesianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "indonesian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L213-L218" }, { "kind": "interface", "name": { "name": "IrishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "irish" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L220-L225" }, { "kind": "interface", "name": { "name": "ItalianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "italian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L227-L232" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KStemTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kstem" } } ], "specLocation": "_types/analysis/token_filters.ts#L240-L242" }, { "kind": "enum", "members": [ { "name": "include" }, { "name": "exclude" } ], "name": { "name": "KeepTypesMode", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/token_filters.ts#L214-L217" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KeepTypesTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "keep_types" } }, { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "KeepTypesMode", "namespace": "_types.analysis" } } }, { "name": "types", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/token_filters.ts#L219-L223" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KeepWordsTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "keep" } }, { "name": "keep_words", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "keep_words_case", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "keep_words_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L225-L230" }, { "kind": "interface", "name": { "name": "KeywordAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "keyword" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "_types/analysis/analyzers.ts#L66-L70" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KeywordMarkerTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "keyword_marker" } }, { "name": "ignore_case", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "keywords", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "keywords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "keywords_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L232-L238" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "KeywordTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "keyword" } }, { "name": "buffer_size", "required": false, "serverDefault": 256, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L68-L74" }, { "kind": "interface", "name": { "name": "KuromojiAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kuromoji" } }, { "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "KuromojiTokenizationMode", "namespace": "_types.analysis" } } }, { "name": "user_dictionary", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/kuromoji-plugin.ts#L25-L29" }, { "kind": "interface", "inherits": { "type": { "name": "CharFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KuromojiIterationMarkCharFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kuromoji_iteration_mark" } }, { "name": "normalize_kana", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "normalize_kanji", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/kuromoji-plugin.ts#L31-L35" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KuromojiPartOfSpeechTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kuromoji_part_of_speech" } }, { "name": "stoptags", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/kuromoji-plugin.ts#L37-L40" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KuromojiReadingFormTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kuromoji_readingform" } }, { "name": "use_romaji", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/kuromoji-plugin.ts#L42-L45" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "KuromojiStemmerTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kuromoji_stemmer" } }, { "name": "minimum_length", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/kuromoji-plugin.ts#L47-L50" }, { "kind": "enum", "members": [ { "name": "normal" }, { "name": "search" }, { "name": "extended" } ], "name": { "name": "KuromojiTokenizationMode", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/kuromoji-plugin.ts#L52-L56" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "KuromojiTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "kuromoji_tokenizer" } }, { "name": "discard_punctuation", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "KuromojiTokenizationMode", "namespace": "_types.analysis" } } }, { "name": "nbest_cost", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "nbest_examples", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "user_dictionary", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "user_dictionary_rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "discard_compound_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/kuromoji-plugin.ts#L58-L67" }, { "kind": "interface", "name": { "name": "LatvianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "latvian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L234-L239" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "LengthTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "length" } }, { "name": "max", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/token_filters.ts#L244-L248" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "LetterTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "letter" } } ], "specLocation": "_types/analysis/tokenizers.ts#L76-L78" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "LimitTokenCountTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "limit" } }, { "name": "consume_all_tokens", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "max_token_count", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L250-L254" }, { "kind": "interface", "name": { "name": "LithuanianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "lithuanian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L241-L246" }, { "kind": "interface", "name": { "name": "LowercaseNormalizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "lowercase" } } ], "specLocation": "_types/analysis/normalizers.ts#L26-L28" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "LowercaseTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "lowercase" } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L256-L259" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "LowercaseTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "lowercase" } } ], "specLocation": "_types/analysis/tokenizers.ts#L80-L82" }, { "kind": "interface", "inherits": { "type": { "name": "CharFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "MappingCharFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "mapping" } }, { "name": "mappings", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "mappings_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/char_filters.ts#L51-L55" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "MultiplexerTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "multiplexer" } }, { "name": "filters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L261-L265" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "NGramTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "ngram" } }, { "name": "max_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L267-L272" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "NGramTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "ngram" } }, { "name": "custom_token_chars", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_gram", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "token_chars", "required": false, "serverDefault": [], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TokenChar", "namespace": "_types.analysis" } } } } ], "specLocation": "_types/analysis/tokenizers.ts#L84-L93" }, { "kind": "interface", "name": { "name": "NoriAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "nori" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "decompound_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "NoriDecompoundMode", "namespace": "_types.analysis" } } }, { "name": "stoptags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "user_dictionary", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L323-L330" }, { "kind": "enum", "members": [ { "name": "discard" }, { "name": "none" }, { "name": "mixed" } ], "name": { "name": "NoriDecompoundMode", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/nori-plugin.ts#L22-L26" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "NoriPartOfSpeechTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "nori_part_of_speech" } }, { "name": "stoptags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/token_filters.ts#L274-L277" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "NoriTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "nori_tokenizer" } }, { "name": "decompound_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "NoriDecompoundMode", "namespace": "_types.analysis" } } }, { "name": "discard_punctuation", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "user_dictionary", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "user_dictionary_rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/nori-plugin.ts#L28-L34" }, { "kind": "type_alias", "docId": "analysis-normalizers", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/normalizers", "name": { "name": "Normalizer", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/normalizers.ts#L20-L24", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "LowercaseNormalizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "CustomNormalizer", "namespace": "_types.analysis" } } ] }, "variants": { "kind": "internal_tag", "defaultTag": "custom", "tag": "type" } }, { "kind": "interface", "name": { "name": "NorwegianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "norwegian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L248-L253" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "PathHierarchyTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "path_hierarchy" } }, { "name": "buffer_size", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "replacement", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reverse", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "skip", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L95-L102" }, { "kind": "interface", "name": { "name": "PatternAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "pattern" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "Java regular expression flags. Flags should be pipe-separated, eg \"CASE_INSENSITIVE|COMMENTS\".", "name": "flags", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Should terms be lowercased or not.\nDefaults to `true`.", "name": "lowercase", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A Java regular expression.\nDefaults to `\\W+`.", "name": "pattern", "required": false, "serverDefault": "\\W+", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A pre-defined stop words list like `_english_` or an array containing a list of stop words.\nDefaults to `_none_`.", "name": "stopwords", "required": false, "serverDefault": "_none_", "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "description": "The path to a file containing stop words.", "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L332-L365" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "PatternCaptureTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "pattern_capture" } }, { "name": "patterns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "_types/analysis/token_filters.ts#L279-L283" }, { "kind": "interface", "inherits": { "type": { "name": "CharFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "PatternReplaceCharFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "pattern_replace" } }, { "name": "flags", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "replacement", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/char_filters.ts#L57-L62" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "PatternReplaceTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "pattern_replace" } }, { "name": "all", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "flags", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "replacement", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L285-L291" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "PatternTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "pattern" } }, { "name": "flags", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "group", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L104-L109" }, { "kind": "interface", "name": { "name": "PersianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "persian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L255-L259" }, { "kind": "enum", "members": [ { "name": "metaphone" }, { "name": "double_metaphone" }, { "name": "soundex" }, { "name": "refined_soundex" }, { "name": "caverphone1" }, { "name": "caverphone2" }, { "name": "cologne" }, { "name": "nysiis" }, { "name": "koelnerphonetik" }, { "name": "haasephonetik" }, { "name": "beider_morse" }, { "name": "daitch_mokotoff" } ], "name": { "name": "PhoneticEncoder", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/phonetic-plugin.ts#L23-L36" }, { "kind": "enum", "members": [ { "name": "any" }, { "name": "common" }, { "name": "cyrillic" }, { "name": "english" }, { "name": "french" }, { "name": "german" }, { "name": "hebrew" }, { "name": "hungarian" }, { "name": "polish" }, { "name": "romanian" }, { "name": "russian" }, { "name": "spanish" } ], "name": { "name": "PhoneticLanguage", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/phonetic-plugin.ts#L38-L51" }, { "kind": "enum", "members": [ { "name": "generic" }, { "name": "ashkenazi" }, { "name": "sephardic" } ], "name": { "name": "PhoneticNameType", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/phonetic-plugin.ts#L53-L57" }, { "kind": "enum", "members": [ { "name": "approx" }, { "name": "exact" } ], "name": { "name": "PhoneticRuleType", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/phonetic-plugin.ts#L59-L62" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "PhoneticTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "phonetic" } }, { "name": "encoder", "required": true, "type": { "kind": "instance_of", "type": { "name": "PhoneticEncoder", "namespace": "_types.analysis" } } }, { "name": "languageset", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "PhoneticLanguage", "namespace": "_types.analysis" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PhoneticLanguage", "namespace": "_types.analysis" } } } ] } }, { "name": "max_code_len", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "name_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "PhoneticNameType", "namespace": "_types.analysis" } } }, { "name": "replace", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "rule_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "PhoneticRuleType", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/phonetic-plugin.ts#L64-L72" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "PorterStemTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "porter_stem" } } ], "specLocation": "_types/analysis/token_filters.ts#L293-L295" }, { "kind": "interface", "name": { "name": "PortugueseAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "portuguese" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L261-L266" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "PredicateTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "predicate_token_filter" } }, { "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/analysis/token_filters.ts#L297-L300" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "RemoveDuplicatesTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "remove_duplicates" } } ], "specLocation": "_types/analysis/token_filters.ts#L302-L304" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "ReverseTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "reverse" } } ], "specLocation": "_types/analysis/token_filters.ts#L306-L308" }, { "kind": "interface", "name": { "name": "RomanianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "romanian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L268-L273" }, { "kind": "interface", "name": { "name": "RussianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "russian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L275-L280" }, { "kind": "interface", "name": { "name": "SerbianAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "serbian" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L282-L287" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "ShingleTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "shingle" } }, { "name": "filler_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_shingle_size", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "min_shingle_size", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "output_unigrams", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "output_unigrams_if_no_shingles", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "token_separator", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L86-L94" }, { "kind": "interface", "name": { "name": "SimpleAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "simple" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "_types/analysis/analyzers.ts#L367-L371" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "SimplePatternSplitTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "simple_pattern_split" } }, { "name": "pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L116-L119" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "SimplePatternTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "simple_pattern" } }, { "name": "pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L111-L114" }, { "kind": "interface", "name": { "name": "SnowballAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "snowball" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "language", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnowballLanguage", "namespace": "_types.analysis" } } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/analyzers.ts#L374-L380" }, { "kind": "enum", "members": [ { "name": "Armenian" }, { "name": "Basque" }, { "name": "Catalan" }, { "name": "Danish" }, { "name": "Dutch" }, { "name": "English" }, { "name": "Finnish" }, { "name": "French" }, { "name": "German" }, { "name": "German2" }, { "name": "Hungarian" }, { "name": "Italian" }, { "name": "Kp" }, { "name": "Lovins" }, { "name": "Norwegian" }, { "name": "Porter" }, { "name": "Portuguese" }, { "name": "Romanian" }, { "name": "Russian" }, { "name": "Spanish" }, { "name": "Swedish" }, { "name": "Turkish" } ], "name": { "name": "SnowballLanguage", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/languages.ts#L20-L43" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "SnowballTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "snowball" } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "SnowballLanguage", "namespace": "_types.analysis" } } } ], "specLocation": "_types/analysis/token_filters.ts#L310-L313" }, { "kind": "interface", "name": { "name": "SoraniAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "sorani" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L289-L294" }, { "kind": "interface", "name": { "name": "SpanishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "spanish" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L296-L301" }, { "kind": "interface", "name": { "name": "StandardAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "standard" } }, { "description": "The maximum token length. If a token is seen that exceeds this length then it is split at `max_token_length` intervals.\nDefaults to `255`.", "name": "max_token_length", "required": false, "serverDefault": 255, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A pre-defined stop words list like `_english_` or an array containing a list of stop words.\nDefaults to `_none_`.", "name": "stopwords", "required": false, "serverDefault": "_none_", "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "description": "The path to a file containing stop words.", "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L382-L402" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "StandardTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "standard" } }, { "name": "max_token_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L121-L124" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "StemmerOverrideTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "stemmer_override" } }, { "name": "rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "rules_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L315-L319" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "StemmerTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "stemmer" } }, { "aliases": [ "name" ], "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L321-L325" }, { "kind": "interface", "name": { "name": "StopAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "stop" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "A pre-defined stop words list like `_english_` or an array containing a list of stop words.\nDefaults to `_none_`.", "name": "stopwords", "required": false, "serverDefault": "_none_", "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "description": "The path to a file containing stop words.", "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L404-L419" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "StopTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "stop" } }, { "name": "ignore_case", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "remove_trailing", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L96-L102" }, { "kind": "type_alias", "description": "Language value, such as _arabic_ or _thai_. Defaults to _english_.\nEach language value corresponds to a predefined list of stop words in Lucene. See Stop words by language for supported language values and their stop words.\nAlso accepts an array of stop words.", "name": { "name": "StopWords", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/StopWords.ts#L20-L26", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "kind": "interface", "name": { "name": "SwedishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "swedish" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L303-L308" }, { "kind": "enum", "members": [ { "name": "solr" }, { "name": "wordnet" } ], "name": { "name": "SynonymFormat", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/token_filters.ts#L104-L107" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "SynonymGraphTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "synonym_graph" } }, { "name": "expand", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "SynonymFormat", "namespace": "_types.analysis" } } }, { "name": "lenient", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "synonyms", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "synonyms_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "synonyms_set", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tokenizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "updateable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L109-L119" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "SynonymTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "synonym" } }, { "name": "expand", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "SynonymFormat", "namespace": "_types.analysis" } } }, { "name": "lenient", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "synonyms", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "synonyms_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "synonyms_set", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tokenizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "updateable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L121-L131" }, { "kind": "interface", "name": { "name": "ThaiAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "thai" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/analyzers.ts#L317-L321" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "ThaiTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "thai" } } ], "specLocation": "_types/analysis/tokenizers.ts#L126-L128" }, { "kind": "enum", "members": [ { "name": "letter" }, { "name": "digit" }, { "name": "whitespace" }, { "name": "punctuation" }, { "name": "symbol" }, { "name": "custom" } ], "name": { "name": "TokenChar", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/tokenizers.ts#L59-L66" }, { "kind": "type_alias", "codegenNames": [ "name", "definition" ], "extDocId": "analysis-tokenfilters", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/token-filter-reference", "name": { "name": "TokenFilter", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/token_filters.ts#L345-L350", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "TokenFilterDefinition", "namespace": "_types.analysis" } } ] } }, { "kind": "interface", "name": { "name": "TokenFilterBase", "namespace": "_types.analysis" }, "properties": [ { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "_types/analysis/token_filters.ts#L39-L41" }, { "kind": "type_alias", "name": { "name": "TokenFilterDefinition", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/token_filters.ts#L352-L404", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "AsciiFoldingTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "CommonGramsTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ConditionTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "DelimitedPayloadTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "EdgeNGramTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ElisionTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "FingerprintTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "HunspellTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "HyphenationDecompounderTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KeepTypesTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KeepWordsTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KeywordMarkerTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KStemTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LengthTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LimitTokenCountTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LowercaseTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "MultiplexerTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "NGramTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "NoriPartOfSpeechTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PatternCaptureTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PatternReplaceTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PorterStemTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PredicateTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "RemoveDuplicatesTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ReverseTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ShingleTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SnowballTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "StemmerOverrideTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "StemmerTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "StopTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SynonymGraphTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SynonymTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "TrimTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "TruncateTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "UniqueTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "UppercaseTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "WordDelimiterGraphTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "WordDelimiterTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KuromojiStemmerTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KuromojiReadingFormTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KuromojiPartOfSpeechTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuCollationTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuFoldingTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuNormalizationTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuTransformTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PhoneticTokenFilter", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "DictionaryDecompounderTokenFilter", "namespace": "_types.analysis" } } ] }, "variants": { "kind": "internal_tag", "nonExhaustive": true, "tag": "type" } }, { "kind": "type_alias", "codegenNames": [ "name", "definition" ], "extDocId": "analysis-tokenizers", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/tokenizer-reference", "name": { "name": "Tokenizer", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/tokenizers.ts#L140-L145", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "TokenizerDefinition", "namespace": "_types.analysis" } } ] } }, { "kind": "interface", "name": { "name": "TokenizerBase", "namespace": "_types.analysis" }, "properties": [ { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L27-L29" }, { "kind": "type_alias", "name": { "name": "TokenizerDefinition", "namespace": "_types.analysis" }, "specLocation": "_types/analysis/tokenizers.ts#L147-L170", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CharGroupTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ClassicTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "EdgeNGramTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KeywordTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LetterTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "LowercaseTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "NGramTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PathHierarchyTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "PatternTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SimplePatternTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "SimplePatternSplitTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "StandardTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "ThaiTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "UaxEmailUrlTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "WhitespaceTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "IcuTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "KuromojiTokenizer", "namespace": "_types.analysis" } }, { "kind": "instance_of", "type": { "name": "NoriTokenizer", "namespace": "_types.analysis" } } ] }, "variants": { "kind": "internal_tag", "nonExhaustive": true, "tag": "type" } }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "TrimTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "trim" } } ], "specLocation": "_types/analysis/token_filters.ts#L327-L329" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "TruncateTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "truncate" } }, { "name": "length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/token_filters.ts#L331-L334" }, { "kind": "interface", "name": { "name": "TurkishAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "turkish" } }, { "name": "stopwords", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "name": "stopwords_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stem_exclusion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "_types/analysis/analyzers.ts#L310-L315" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "UaxEmailUrlTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "uax_url_email" } }, { "name": "max_token_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L130-L133" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "UniqueTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "unique" } }, { "name": "only_on_same_position", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L336-L339" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "UppercaseTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "uppercase" } } ], "specLocation": "_types/analysis/token_filters.ts#L341-L343" }, { "kind": "interface", "name": { "name": "WhitespaceAnalyzer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "whitespace" } }, { "deprecation": { "description": "", "version": "7.14.0" }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "_types/analysis/analyzers.ts#L421-L425" }, { "kind": "interface", "inherits": { "type": { "name": "TokenizerBase", "namespace": "_types.analysis" } }, "name": { "name": "WhitespaceTokenizer", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "whitespace" } }, { "name": "max_token_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/analysis/tokenizers.ts#L135-L138" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "WordDelimiterGraphTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "word_delimiter_graph" } }, { "name": "adjust_offsets", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "catenate_all", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "catenate_numbers", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "catenate_words", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "generate_number_parts", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "generate_word_parts", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_keywords", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "protected_words", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "protected_words_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "split_on_case_change", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "split_on_numerics", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "stem_english_possessive", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type_table", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "type_table_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L150-L167" }, { "kind": "interface", "inherits": { "type": { "name": "TokenFilterBase", "namespace": "_types.analysis" } }, "name": { "name": "WordDelimiterTokenFilter", "namespace": "_types.analysis" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "word_delimiter" } }, { "name": "catenate_all", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "catenate_numbers", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "catenate_words", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "generate_number_parts", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "generate_word_parts", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "preserve_original", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "protected_words", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "protected_words_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "split_on_case_change", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "split_on_numerics", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "stem_english_possessive", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type_table", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "type_table_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/analysis/token_filters.ts#L133-L148" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "AggregateMetricDoubleProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "aggregate_metric_double" } }, { "name": "default_metric", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "metrics", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "time_series_metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeSeriesMetricType", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/complex.ts#L59-L64" }, { "kind": "interface", "name": { "name": "AllField", "namespace": "_types.mapping" }, "properties": [ { "name": "analyzer", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "omit_norms", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "search_analyzer", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "similarity", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "store", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "store_term_vector_offsets", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "store_term_vector_payloads", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "store_term_vector_positions", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "store_term_vectors", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/meta-fields.ts#L29-L40" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "BinaryProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "binary" } } ], "specLocation": "_types/mapping/core.ts#L55-L57" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "BooleanProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "fielddata", "required": false, "type": { "kind": "instance_of", "type": { "name": "NumericFielddata", "namespace": "indices._types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.", "name": "time_series_dimension", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "boolean" } } ], "specLocation": "_types/mapping/core.ts#L59-L74" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "ByteNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "byte" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "byte", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L186-L189" }, { "kind": "interface", "attachedBehaviors": [ "OverloadOf" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } ], "type": { "name": "OverloadOf", "namespace": "_spec_utils" } } ], "name": { "name": "ChunkingSettings", "namespace": "_types.mapping" }, "properties": [ { "description": "The chunking strategy: `sentence` or `word`.", "name": "strategy", "required": true, "serverDefault": "sentence", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum size of a chunk in words.\nThis value cannot be higher than `300` or lower than `20` (for `sentence` strategy) or `10` (for `word` strategy).", "name": "max_chunk_size", "required": true, "serverDefault": 250, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of overlapping words for chunks.\nIt is applicable only to a `word` chunking strategy.\nThis value cannot be higher than half the `max_chunk_size` value.", "name": "overlap", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of overlapping sentences for chunks.\nIt is applicable only for a `sentence` chunking strategy.\nIt can be either `1` or `0`.", "name": "sentence_overlap", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/mapping/ChunkingSettings.ts#L24-L32" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "CompletionProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "contexts", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SuggestContext", "namespace": "_types.mapping" } } } }, { "name": "max_input_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "preserve_position_increments", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "preserve_separators", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "search_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "completion" } } ], "specLocation": "_types/mapping/specialized.ts#L33-L41" }, { "kind": "interface", "name": { "name": "CompositeSubField", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "RuntimeFieldType", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/RuntimeFields.ts#L52-L54" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "ConstantKeywordProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "value", "required": false, "type": { "kind": "user_defined_value" } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "constant_keyword" } } ], "specLocation": "_types/mapping/specialized.ts#L50-L53" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "CorePropertyBase", "namespace": "_types.mapping" }, "properties": [ { "name": "copy_to", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "store", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/core.ts#L46-L49" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "CountedKeywordProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "counted_keyword" } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/specialized.ts#L55-L62" }, { "kind": "interface", "name": { "name": "DataStreamTimestamp", "namespace": "_types.mapping" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/TypeMapping.ts#L59-L61" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DateNanosProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "precision_step", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "date_nanos" } } ], "specLocation": "_types/mapping/core.ts#L90-L100" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DateProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "fielddata", "required": false, "type": { "kind": "instance_of", "type": { "name": "NumericFielddata", "namespace": "indices._types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "precision_step", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "locale", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "date" } } ], "specLocation": "_types/mapping/core.ts#L76-L88" }, { "kind": "interface", "inherits": { "type": { "name": "RangePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DateRangeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "date_range" } } ], "specLocation": "_types/mapping/range.ts#L29-L32" }, { "kind": "enum", "members": [ { "description": "Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support\nbit vectors.\n\nNOTE: when using `bit`, the number of dimensions must be a multiple of `8` and must represent the number of bits.", "name": "bit" }, { "description": "Indexes a 1-byte integer value per dimension.", "name": "byte" }, { "description": "Indexes a 4-byte floating-point value per dimension.", "name": "float" } ], "name": { "name": "DenseVectorElementType", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/DenseVectorProperty.ts#L64-L80" }, { "kind": "interface", "name": { "name": "DenseVectorIndexOptions", "namespace": "_types.mapping" }, "properties": [ { "description": "The confidence interval to use when quantizing the vectors. Can be any value between and including `0.90` and\n`1.0` or exactly `0`. When the value is `0`, this indicates that dynamic quantiles should be calculated for\noptimized quantization. When between `0.90` and `1.0`, this value restricts the values used when calculating\nthe quantization thresholds.\n\nFor example, a value of `0.95` will only use the middle `95%` of the values when calculating the quantization\nthresholds (e.g. the highest and lowest `2.5%` of values will be ignored).\n\nDefaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4` for dynamic quantile calculation.\n\nOnly applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat` index types.", "name": "confidence_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "The number of candidates to track while assembling the list of nearest neighbors for each new node.\n\nOnly applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.", "name": "ef_construction", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of neighbors each node will be connected to in the HNSW graph.\n\nOnly applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.", "name": "m", "required": false, "serverDefault": 16, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The type of kNN algorithm to use.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "DenseVectorIndexOptionsType", "namespace": "_types.mapping" } } }, { "description": "The rescore vector options. This is only applicable to `bbq_hnsw`, `int4_hnsw`, `int8_hnsw`, `bbq_flat`, `int4_flat`, and `int8_flat` index types.", "name": "rescore_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "DenseVectorIndexOptionsRescoreVector", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/DenseVectorProperty.ts#L129-L166" }, { "kind": "interface", "name": { "name": "DenseVectorIndexOptionsRescoreVector", "namespace": "_types.mapping" }, "properties": [ { "description": "The oversampling factor to use when searching for the nearest neighbor. This is only applicable to the quantized formats: `bbq_*`, `int4_*`, and `int8_*`.\nWhen provided, `oversample * k` vectors will be gathered and then their scores will be re-computed with the original vectors.\n\nvalid values are between `1.0` and `10.0` (inclusive), or `0` exactly to disable oversampling.", "name": "oversample", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/mapping/DenseVectorProperty.ts#L215-L223" }, { "kind": "enum", "members": [ { "description": "This utilizes a brute-force search algorithm in addition to automatically quantizing to binary vectors.\nOnly supports `element_type` of `float`.", "name": "bbq_flat" }, { "description": "This utilizes the HNSW algorithm in addition to automatic binary quantization for scalable approximate kNN\nsearch with `element_type` of `float`.\n\nThis can reduce the memory footprint by nearly 32x at the cost of some accuracy.", "name": "bbq_hnsw" }, { "description": "This utilizes a brute-force search algorithm for exact kNN search. This supports all `element_type` values.", "name": "flat" }, { "description": "This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all `element_type` values.", "name": "hnsw" }, { "description": "This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization.\nOnly supports `element_type` of `float`.", "name": "int4_flat" }, { "description": "This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN\nsearch with `element_type` of `float`.\n\nThis can reduce the memory footprint by 8x at the cost of some accuracy.", "name": "int4_hnsw" }, { "description": "This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports\n`element_type` of `float`.", "name": "int8_flat" }, { "description": "The default index type for `float` vectors. This utilizes the HNSW algorithm in addition to automatically scalar\nquantization for scalable approximate kNN search with `element_type` of `float`.\n\nThis can reduce the memory footprint by 4x at the cost of some accuracy.", "name": "int8_hnsw" } ], "name": { "name": "DenseVectorIndexOptionsType", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/DenseVectorProperty.ts#L168-L213" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DenseVectorProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "dense_vector" } }, { "description": "Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified, it will be set to the length of\nthe first vector added to the field.", "name": "dims", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The data type used to encode vectors. The supported data types are `float` (default), `byte`, and `bit`.", "name": "element_type", "required": false, "serverDefault": "float", "type": { "kind": "instance_of", "type": { "name": "DenseVectorElementType", "namespace": "_types.mapping" } } }, { "description": "If `true`, you can search this field using the kNN search API.", "name": "index", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters\nthat influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the\nexpense of slower indexing speed.\n\nThis parameter can only be specified when `index` is `true`.", "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "DenseVectorIndexOptions", "namespace": "_types.mapping" } } }, { "description": "The vector similarity metric to use in kNN search.\n\nDocuments are ranked by their vector field's similarity to the query vector. The `_score` of each document will\nbe derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds\nto a higher ranking.\n\nDefaults to `l2_norm` when `element_type` is `bit` otherwise defaults to `cosine`.\n\n`bit` vectors only support `l2_norm` as their similarity metric.\n\nThis parameter can only be specified when `index` is `true`.", "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "DenseVectorSimilarity", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/DenseVectorProperty.ts#L23-L62" }, { "kind": "enum", "members": [ { "description": "Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with `cosine`\nsimilarity to unit length. This allows to internally use `dot_product` for computing similarity, which is more\nefficient. Original un-normalized vectors can be still accessed through scripts.\n\nThe document `_score` is computed as `(1 + cosine(query, vector)) / 2`.\n\nThe `cosine` similarity does not allow vectors with zero magnitude, since cosine is not defined in this case.", "name": "cosine" }, { "description": "Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity.\nThe constraints and computed score are defined by `element_type`.\n\nWhen `element_type` is `float`, all vectors must be unit length, including both document and query vectors.\n\nThe document `_score` is computed as `(1 + dot_product(query, vector)) / 2`.\n\nWhen `element_type` is `byte`, all vectors must have the same length including both document and query vectors or\nresults will be inaccurate.\n\nThe document `_score` is computed as `0.5 + (dot_product(query, vector) / (32768 * dims))` where `dims` is the\nnumber of dimensions per vector.", "name": "dot_product" }, { "description": "Computes similarity based on the `L2` distance (also known as Euclidean distance) between the vectors.\n\nThe document `_score` is computed as `1 / (1 + l2_norm(query, vector)^2)`.\n\nFor `bit` vectors, instead of using `l2_norm`, the `hamming` distance between the vectors is used.\n\nThe `_score` transformation is `(numBits - hamming(a, b)) / numBits`.", "name": "l2_norm" }, { "description": "Computes the maximum inner product of two vectors. This is similar to `dot_product`, but doesn't require vectors\nto be normalized. This means that each vector’s magnitude can significantly effect the score.\n\nThe document `_score` is adjusted to prevent negative values. For `max_inner_product` values `< 0`, the `_score`\nis `1 / (1 + -1 * max_inner_product(query, vector))`. For non-negative `max_inner_product` results the `_score`\nis calculated `max_inner_product(query, vector) + 1`.", "name": "max_inner_product" } ], "name": { "name": "DenseVectorSimilarity", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/DenseVectorProperty.ts#L82-L127" }, { "kind": "interface", "inherits": { "type": { "name": "CorePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" }, "properties": [ { "name": "doc_values", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/core.ts#L51-L53" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DoubleNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "double" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L166-L169" }, { "kind": "interface", "inherits": { "type": { "name": "RangePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DoubleRangeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "double_range" } } ], "specLocation": "_types/mapping/range.ts#L34-L36" }, { "kind": "enum", "esQuirk": "This is a boolean that evolved into an enum. Boolean values should be accepted on reading, and\ntrue and false must be serialized as JSON booleans, or it may break Kibana (see elasticsearch-java#139)", "members": [ { "name": "strict" }, { "name": "runtime" }, { "name": "true" }, { "name": "false" } ], "name": { "name": "DynamicMapping", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/dynamic-template.ts#L50-L59" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "DynamicProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "{dynamic_type}" } }, { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } }, { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "coerce", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "time_series_metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeSeriesMetricType", "namespace": "_types.mapping" } } }, { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "eager_global_ordinals", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOptions", "namespace": "_types.mapping" } } }, { "name": "index_phrases", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_prefixes", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TextIndexPrefixes", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "norms", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "position_increment_gap", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "search_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "search_quote_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "term_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermVectorOption", "namespace": "_types.mapping" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "precision_step", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "locale", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/core.ts#L335-L366" }, { "kind": "interface", "name": { "name": "DynamicTemplate", "namespace": "_types.mapping" }, "properties": [ { "name": "mapping", "required": false, "type": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } }, { "name": "runtime", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeField", "namespace": "_types.mapping" } } }, { "containerProperty": true, "name": "match", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "containerProperty": true, "name": "path_match", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "containerProperty": true, "name": "unmatch", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "containerProperty": true, "name": "path_unmatch", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "containerProperty": true, "name": "match_mapping_type", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "containerProperty": true, "name": "unmatch_mapping_type", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "containerProperty": true, "name": "match_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatchType", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/dynamic-template.ts#L23-L43", "variants": { "kind": "container" } }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "FieldAliasProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "alias" } } ], "specLocation": "_types/mapping/specialized.ts#L64-L67" }, { "kind": "interface", "name": { "name": "FieldMapping", "namespace": "_types.mapping" }, "properties": [ { "name": "full_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "mapping", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } } } ], "specLocation": "_types/mapping/meta-fields.ts#L24-L27" }, { "kind": "interface", "name": { "name": "FieldNamesField", "namespace": "_types.mapping" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/meta-fields.ts#L42-L44" }, { "kind": "enum", "members": [ { "name": "none" }, { "name": "geo_point" }, { "name": "geo_shape" }, { "name": "ip" }, { "name": "binary" }, { "name": "keyword" }, { "name": "text" }, { "name": "search_as_you_type" }, { "name": "date" }, { "name": "date_nanos" }, { "name": "boolean" }, { "name": "completion" }, { "name": "nested" }, { "name": "object" }, { "name": "passthrough" }, { "name": "version" }, { "name": "murmur3" }, { "name": "token_count" }, { "name": "percolator" }, { "name": "integer" }, { "name": "long" }, { "name": "short" }, { "name": "byte" }, { "name": "float" }, { "name": "half_float" }, { "name": "scaled_float" }, { "name": "double" }, { "name": "integer_range" }, { "name": "float_range" }, { "name": "long_range" }, { "name": "double_range" }, { "name": "date_range" }, { "name": "ip_range" }, { "name": "alias" }, { "name": "join" }, { "name": "rank_feature" }, { "name": "rank_features" }, { "name": "flattened" }, { "name": "shape" }, { "name": "histogram" }, { "name": "constant_keyword" }, { "name": "counted_keyword" }, { "name": "aggregate_metric_double" }, { "name": "dense_vector" }, { "name": "semantic_text" }, { "name": "sparse_vector" }, { "name": "match_only_text" }, { "name": "icu_collation_keyword" } ], "name": { "name": "FieldType", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/Property.ts#L191-L240" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "FlattenedProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "depth_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "doc_values", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "eager_global_ordinals", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOptions", "namespace": "_types.mapping" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "split_queries_on_whitespace", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "flattened" } } ], "specLocation": "_types/mapping/complex.ts#L26-L37" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "FloatNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "float" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L156-L159" }, { "kind": "interface", "inherits": { "type": { "name": "RangePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "FloatRangeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "float_range" } } ], "specLocation": "_types/mapping/range.ts#L38-L40" }, { "kind": "enum", "members": [ { "aliases": [ "RIGHT", "counterclockwise", "ccw" ], "name": "right" }, { "aliases": [ "LEFT", "clockwise", "cw" ], "name": "left" } ], "name": { "name": "GeoOrientation", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/geo.ts#L34-L39" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "GeoPointProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_z_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "geo_point" } } ], "specLocation": "_types/mapping/geo.ts#L24-L32" }, { "kind": "interface", "description": "The `geo_shape` data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles\nand polygons.", "docId": "geo-shape", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/geo-shape", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "GeoShapeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "coerce", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_z_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "orientation", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoOrientation", "namespace": "_types.mapping" } } }, { "name": "strategy", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoStrategy", "namespace": "_types.mapping" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "geo_shape" } } ], "specLocation": "_types/mapping/geo.ts#L41-L55" }, { "kind": "enum", "members": [ { "name": "recursive" }, { "name": "term" } ], "name": { "name": "GeoStrategy", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/geo.ts#L57-L60" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "HalfFloatNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "half_float" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L161-L164" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "HistogramProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "histogram" } } ], "specLocation": "_types/mapping/specialized.ts#L69-L72" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "IcuCollationProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "icu_collation_keyword" } }, { "name": "norms", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOptions", "namespace": "_types.mapping" } } }, { "description": "Should the field be searchable?", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing.", "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "rules", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "country", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "variant", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "strength", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationStrength", "namespace": "_types.analysis" } } }, { "name": "decomposition", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationDecomposition", "namespace": "_types.analysis" } } }, { "name": "alternate", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationAlternate", "namespace": "_types.analysis" } } }, { "name": "case_level", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "case_first", "required": false, "type": { "kind": "instance_of", "type": { "name": "IcuCollationCaseFirst", "namespace": "_types.analysis" } } }, { "name": "numeric", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "variable_top", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "hiragana_quaternary_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/specialized.ts#L103-L127" }, { "kind": "interface", "name": { "name": "IndexField", "namespace": "_types.mapping" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/meta-fields.ts#L46-L48" }, { "kind": "enum", "members": [ { "name": "docs" }, { "name": "freqs" }, { "name": "positions" }, { "name": "offsets" } ], "name": { "name": "IndexOptions", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/core.ts#L291-L296" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "IntegerNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "integer" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L171-L174" }, { "kind": "interface", "inherits": { "type": { "name": "RangePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "IntegerRangeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "integer_range" } } ], "specLocation": "_types/mapping/range.ts#L42-L44" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "IpProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.", "name": "time_series_dimension", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "ip" } } ], "specLocation": "_types/mapping/specialized.ts#L74-L88" }, { "kind": "interface", "inherits": { "type": { "name": "RangePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "IpRangeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "ip_range" } } ], "specLocation": "_types/mapping/range.ts#L46-L48" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "JoinProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "relations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } } ] } } }, { "name": "eager_global_ordinals", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "join" } } ], "specLocation": "_types/mapping/core.ts#L102-L106" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "KeywordProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "eager_global_ordinals", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOptions", "namespace": "_types.mapping" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "normalizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "norms", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "similarity", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "split_queries_on_whitespace", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.", "name": "time_series_dimension", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "keyword" } } ], "specLocation": "_types/mapping/core.ts#L108-L127" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "LongNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "long" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L176-L179" }, { "kind": "interface", "inherits": { "type": { "name": "RangePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "LongRangeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "long_range" } } ], "specLocation": "_types/mapping/range.ts#L50-L52" }, { "kind": "interface", "description": "A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field\neffectively stores data the same way as a text field that only indexes documents (index_options: docs) and\ndisables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries\nthat need positions such as the match_phrase query perform slower as they need to look at the _source document\nto verify whether a phrase matches. All queries return constant scores that are equal to 1.0.", "name": { "name": "MatchOnlyTextProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "match_only_text" } }, { "description": "Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one\nfield for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.", "docId": "multi-fields", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/multi-fields", "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "PropertyName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } } }, { "description": "Metadata about the field.", "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "meta", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Allows you to copy the values of multiple fields into a group\nfield, which can then be queried as a single field.", "name": "copy_to", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L264-L289" }, { "kind": "enum", "members": [ { "name": "simple" }, { "name": "regex" } ], "name": { "name": "MatchType", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/dynamic-template.ts#L45-L48" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "Murmur3HashProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "murmur3" } } ], "specLocation": "_types/mapping/specialized.ts#L90-L92" }, { "kind": "interface", "inherits": { "type": { "name": "CorePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "NestedProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "include_in_parent", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "include_in_root", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "nested" } } ], "specLocation": "_types/mapping/complex.ts#L39-L44" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "NumberPropertyBase", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "coerce", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "on_script_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "OnScriptError", "namespace": "_types.mapping" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.", "name": "time_series_metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeSeriesMetricType", "namespace": "_types.mapping" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "stability": "experimental" } }, "description": "For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.", "name": "time_series_dimension", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/core.ts#L129-L149" }, { "kind": "interface", "inherits": { "type": { "name": "CorePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "ObjectProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "subobjects", "required": false, "type": { "kind": "instance_of", "type": { "name": "Subobjects", "namespace": "_types.mapping" } } }, { "name": "type", "required": false, "type": { "kind": "literal_value", "value": "object" } } ], "specLocation": "_types/mapping/complex.ts#L46-L50" }, { "kind": "enum", "members": [ { "name": "fail" }, { "name": "continue" } ], "name": { "name": "OnScriptError", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/core.ts#L151-L154" }, { "kind": "interface", "inherits": { "type": { "name": "CorePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "PassthroughObjectProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": false, "type": { "kind": "literal_value", "value": "passthrough" } }, { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "time_series_dimension", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/complex.ts#L52-L57" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "PercolatorProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "percolator" } } ], "specLocation": "_types/mapping/core.ts#L202-L204" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "PointProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_z_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "point" } } ], "specLocation": "_types/mapping/geo.ts#L67-L72" }, { "kind": "type_alias", "name": { "name": "Property", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/Property.ts#L119-L189", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "BinaryProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "BooleanProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DynamicProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "JoinProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "KeywordProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "MatchOnlyTextProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "PercolatorProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "RankFeatureProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "RankFeaturesProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "SearchAsYouTypeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "TextProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "VersionProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "WildcardProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DateNanosProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DateProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "AggregateMetricDoubleProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DenseVectorProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "FlattenedProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "NestedProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "ObjectProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "PassthroughObjectProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "SemanticTextProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "SparseVectorProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "CompletionProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "ConstantKeywordProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "CountedKeywordProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "FieldAliasProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "HistogramProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "IpProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "Murmur3HashProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "TokenCountProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "GeoPointProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "GeoShapeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "PointProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "ShapeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "ByteNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DoubleNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "FloatNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "HalfFloatNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "IntegerNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "LongNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "ScaledFloatNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "ShortNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "UnsignedLongNumberProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DateRangeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "DoubleRangeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "FloatRangeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "IntegerRangeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "IpRangeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "LongRangeProperty", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "IcuCollationProperty", "namespace": "_types.mapping" } } ] }, "variants": { "kind": "internal_tag", "defaultTag": "object", "nonExhaustive": true, "tag": "type" } }, { "kind": "interface", "name": { "name": "PropertyBase", "namespace": "_types.mapping" }, "properties": [ { "description": "Metadata about the field.", "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "meta", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "properties", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "PropertyName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } } }, { "name": "ignore_above", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "dynamic", "required": false, "type": { "kind": "instance_of", "type": { "name": "DynamicMapping", "namespace": "_types.mapping" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "PropertyName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } } }, { "name": "synthetic_source_keep", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyntheticSourceKeepEnum", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/Property.ts#L86-L97" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "RangePropertyBase", "namespace": "_types.mapping" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "coerce", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/range.ts#L23-L27" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "RankFeatureProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "positive_score_impact", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "rank_feature" } } ], "specLocation": "_types/mapping/core.ts#L206-L209" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "RankFeaturesProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "positive_score_impact", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "rank_features" } } ], "specLocation": "_types/mapping/core.ts#L211-L214" }, { "kind": "interface", "name": { "name": "RoutingField", "namespace": "_types.mapping" }, "properties": [ { "name": "required", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/meta-fields.ts#L50-L52" }, { "kind": "interface", "name": { "name": "RuntimeField", "namespace": "_types.mapping" }, "properties": [ { "description": "For type `composite`", "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CompositeSubField", "namespace": "_types.mapping" } } } }, { "description": "For type `lookup`", "name": "fetch_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RuntimeFieldFetchFields", "namespace": "_types.mapping" } } } }, { "description": "A custom format for `date` type runtime fields.", "docId": "mapping-date-format", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-date-format", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "For type `lookup`", "name": "input_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "For type `lookup`", "name": "target_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "For type `lookup`", "name": "target_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Painless script executed at query time.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Field type, which can be: `boolean`, `composite`, `date`, `double`, `geo_point`, `ip`,`keyword`, `long`, or `lookup`.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "RuntimeFieldType", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/RuntimeFields.ts#L26-L50" }, { "kind": "interface", "name": { "name": "RuntimeFieldFetchFields", "namespace": "_types.mapping" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "field", "specLocation": "_types/mapping/RuntimeFields.ts#L56-L60" }, { "kind": "enum", "members": [ { "name": "boolean" }, { "name": "composite" }, { "name": "date" }, { "name": "double" }, { "name": "geo_point" }, { "name": "geo_shape" }, { "name": "ip" }, { "name": "keyword" }, { "name": "long" }, { "name": "lookup" } ], "name": { "name": "RuntimeFieldType", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/RuntimeFields.ts#L62-L73" }, { "kind": "type_alias", "name": { "name": "RuntimeFields", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/RuntimeFields.ts#L24-L24", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RuntimeField", "namespace": "_types.mapping" } } } }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "ScaledFloatNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "scaled_float" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "scaling_factor", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L196-L200" }, { "kind": "interface", "inherits": { "type": { "name": "CorePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "SearchAsYouTypeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOptions", "namespace": "_types.mapping" } } }, { "name": "max_shingle_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "norms", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "search_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "search_quote_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "similarity", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "term_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermVectorOption", "namespace": "_types.mapping" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "search_as_you_type" } } ], "specLocation": "_types/mapping/core.ts#L245-L256" }, { "kind": "interface", "name": { "name": "SemanticTextProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "semantic_text" } }, { "name": "meta", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Inference endpoint that will be used to generate embeddings for the field.\nThis parameter cannot be updated. Use the Create inference API to create the endpoint.\nIf `search_inference_id` is specified, the inference endpoint will only be used at index time.", "name": "inference_id", "required": false, "serverDefault": ".elser-2-elasticsearch", "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Inference endpoint that will be used to generate embeddings at query time.\nYou can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.\nIf not specified, the inference endpoint defined by inference_id will be used at both index and query time.", "name": "search_inference_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Settings for chunking text into smaller passages. If specified, these will override the\nchunking settings sent in the inference endpoint associated with inference_id. If chunking settings are updated,\nthey will not be applied to existing documents until they are reindexed.", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChunkingSettings", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/core.ts#L220-L243" }, { "kind": "interface", "description": "The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as\nrectangles and polygons.", "docId": "shape", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/shape", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "ShapeProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "coerce", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_z_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "orientation", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoOrientation", "namespace": "_types.mapping" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "shape" } } ], "specLocation": "_types/mapping/geo.ts#L74-L86" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "ShortNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "short" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "short", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L181-L184" }, { "kind": "interface", "name": { "name": "SizeField", "namespace": "_types.mapping" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/meta-fields.ts#L54-L56" }, { "kind": "interface", "name": { "name": "SourceField", "namespace": "_types.mapping" }, "properties": [ { "name": "compress", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "compress_threshold", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "excludes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "includes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceFieldMode", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/meta-fields.ts#L58-L65" }, { "kind": "enum", "members": [ { "name": "disabled" }, { "name": "stored" }, { "description": "Instead of storing source documents on disk exactly as you send them,\n Elasticsearch can reconstruct source content on the fly upon retrieval.", "name": "synthetic" } ], "name": { "name": "SourceFieldMode", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/meta-fields.ts#L67-L75" }, { "kind": "interface", "inherits": { "type": { "name": "PropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "SparseVectorProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "sparse_vector" } } ], "specLocation": "_types/mapping/core.ts#L216-L218" }, { "kind": "enum", "esQuirk": "This enum is a boolean that evolved into a tri-state enum. True and False have\nto be (de)serialized as JSON booleans.", "members": [ { "name": "true" }, { "name": "false" }, { "availability": { "stack": { "featureFlag": "sub_objects_auto", "since": "8.16.0", "visibility": "feature_flag" } }, "name": "auto" } ], "name": { "name": "Subobjects", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/TypeMapping.ts#L63-L74" }, { "kind": "interface", "name": { "name": "SuggestContext", "namespace": "_types.mapping" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "precision", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "_types/mapping/specialized.ts#L43-L48" }, { "kind": "enum", "members": [ { "description": "Synthetic source diverges from the original source (default)", "name": "none" }, { "description": "Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.\nThe synthetic source fragment for such arrays is not guaranteed to match the original source exactly,\ne.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].\nThe exact format may change in the future, in an effort to reduce the storage overhead of this option.", "name": "arrays" }, { "description": "The source for both singleton instances and arrays of the corresponding field or object gets recorded.\nWhen applied to objects, the source of all sub-objects and sub-fields gets captured.\nFurthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.", "name": "all" } ], "name": { "name": "SyntheticSourceKeepEnum", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/Property.ts#L99-L117" }, { "kind": "enum", "members": [ { "name": "no" }, { "name": "yes" }, { "name": "with_offsets" }, { "name": "with_positions" }, { "name": "with_positions_offsets" }, { "name": "with_positions_offsets_payloads" }, { "name": "with_positions_payloads" } ], "name": { "name": "TermVectorOption", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/TermVectorOption.ts#L20-L28" }, { "kind": "interface", "name": { "name": "TextIndexPrefixes", "namespace": "_types.mapping" }, "properties": [ { "name": "max_chars", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_chars", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L298-L301" }, { "kind": "interface", "inherits": { "type": { "name": "CorePropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "TextProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "eager_global_ordinals", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fielddata", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fielddata_frequency_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "FielddataFrequencyFilter", "namespace": "indices._types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexOptions", "namespace": "_types.mapping" } } }, { "name": "index_phrases", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_prefixes", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TextIndexPrefixes", "namespace": "_types.mapping" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "norms", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "position_increment_gap", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "search_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "search_quote_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "similarity", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "term_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermVectorOption", "namespace": "_types.mapping" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "text" } } ], "specLocation": "_types/mapping/core.ts#L303-L320" }, { "kind": "enum", "members": [ { "name": "gauge" }, { "name": "counter" }, { "name": "summary" }, { "name": "histogram" }, { "name": "position" } ], "name": { "name": "TimeSeriesMetricType", "namespace": "_types.mapping" }, "specLocation": "_types/mapping/TimeSeriesMetricType.ts#L20-L26" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "TokenCountProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "enable_position_increments", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "token_count" } } ], "specLocation": "_types/mapping/specialized.ts#L94-L101" }, { "kind": "interface", "name": { "name": "TypeMapping", "namespace": "_types.mapping" }, "properties": [ { "name": "all_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "AllField", "namespace": "_types.mapping" } } }, { "name": "date_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "dynamic", "required": false, "type": { "kind": "instance_of", "type": { "name": "DynamicMapping", "namespace": "_types.mapping" } } }, { "name": "dynamic_date_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "dynamic_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "DynamicTemplate", "namespace": "_types.mapping" } } } } }, { "name": "_field_names", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldNamesField", "namespace": "_types.mapping" } } }, { "name": "index_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexField", "namespace": "_types.mapping" } } }, { "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "numeric_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "properties", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "PropertyName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } } }, { "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoutingField", "namespace": "_types.mapping" } } }, { "name": "_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "SizeField", "namespace": "_types.mapping" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceField", "namespace": "_types.mapping" } } }, { "name": "runtime", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RuntimeField", "namespace": "_types.mapping" } } } }, { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "subobjects", "required": false, "type": { "kind": "instance_of", "type": { "name": "Subobjects", "namespace": "_types.mapping" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "_data_stream_timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamTimestamp", "namespace": "_types.mapping" } } } ], "specLocation": "_types/mapping/TypeMapping.ts#L34-L57" }, { "kind": "interface", "inherits": { "type": { "name": "NumberPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "UnsignedLongNumberProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "unsigned_long" } }, { "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "ulong", "namespace": "_types" } } } ], "specLocation": "_types/mapping/core.ts#L191-L194" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "VersionProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "version" } } ], "specLocation": "_types/mapping/core.ts#L322-L324" }, { "kind": "interface", "inherits": { "type": { "name": "DocValuesPropertyBase", "namespace": "_types.mapping" } }, "name": { "name": "WildcardProperty", "namespace": "_types.mapping" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "wildcard" } }, { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "name": "null_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/mapping/core.ts#L326-L333" }, { "kind": "interface", "extDocId": "query-dsl-bool-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-bool-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "BoolQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The clause (query) must appear in matching documents.\nHowever, unlike `must`, the score of the query will be ignored.", "name": "filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "description": "Specifies the number or percentage of `should` clauses returned documents must match.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "The clause (query) must appear in matching documents and will contribute to the score.", "name": "must", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "description": "The clause (query) must not appear in the matching documents.\nBecause scoring is ignored, a score of `0` is returned for all documents.", "name": "must_not", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "description": "The clause (query) should appear in the matching document.", "name": "should", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } } ], "specLocation": "_types/query_dsl/compound.ts#L29-L56" }, { "kind": "interface", "extDocId": "query-dsl-boosting-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-boosting-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "BoostingQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the `negative` query.", "name": "negative_boost", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Query used to decrease the relevance score of matching documents.", "name": "negative", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Any returned documents must match this query.", "name": "positive", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/compound.ts#L58-L74" }, { "kind": "enum", "members": [ { "name": "none" }, { "name": "avg" }, { "name": "sum" }, { "name": "max" }, { "name": "min" } ], "name": { "name": "ChildScoreMode", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/joining.ts#L25-L39" }, { "kind": "enum", "members": [ { "name": "or" }, { "name": "and" } ], "name": { "name": "CombinedFieldsOperator", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/abstractions.ts#L519-L522" }, { "kind": "interface", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "CombinedFieldsQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "List of fields to search. Field wildcard patterns are allowed. Only `text` fields are supported, and they must all have the same search `analyzer`.", "name": "fields", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "Text to search for in the provided `fields`.\nThe `combined_fields` query analyzes the provided text before performing a search.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If true, match phrase queries are automatically created for multi-term synonyms.", "name": "auto_generate_synonyms_phrase_query", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Boolean logic used to interpret text in the query value.", "name": "operator", "required": false, "serverDefault": "or", "type": { "kind": "instance_of", "type": { "name": "CombinedFieldsOperator", "namespace": "_types.query_dsl" } } }, { "description": "Minimum number of clauses that must match for a document to be returned.", "extDocId": "query-dsl-minimum-should-match", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a `stop` filter.", "name": "zero_terms_query", "required": false, "serverDefault": "none", "type": { "kind": "instance_of", "type": { "name": "CombinedFieldsZeroTerms", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/abstractions.ts#L472-L506" }, { "kind": "enum", "members": [ { "description": "No documents are returned if the analyzer removes all tokens.", "name": "none" }, { "description": "Returns all documents, similar to a `match_all` query.", "name": "all" } ], "name": { "name": "CombinedFieldsZeroTerms", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/abstractions.ts#L524-L533" }, { "kind": "interface", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "CommonTermsQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cutoff_frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "high_freq_operator", "required": false, "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "name": "low_freq_operator", "required": false, "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "query", "specLocation": "_types/query_dsl/fulltext.ts#L34-L44" }, { "kind": "interface", "extDocId": "query-dsl-constant-score-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-constant-score-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "ConstantScoreQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Filter query you wish to run. Any returned documents must match this query.\nFilter queries do not calculate relevance scores.\nTo speed up performance, Elasticsearch automatically caches frequently used filter queries.", "name": "filter", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/compound.ts#L76-L86" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "DateMath", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } ], "type": { "name": "DecayFunctionBase", "namespace": "_types.query_dsl" } }, "name": { "name": "DateDecayFunction", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/compound.ts#L209-L209" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "DateMath", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } ], "type": { "name": "DistanceFeatureQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "DateDistanceFeatureQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/specialized.ts#L71-L74" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "DateMath", "namespace": "_types" } } ], "type": { "name": "RangeQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "DateRangeQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Date format used to convert `date` values in the query.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateFormat", "namespace": "_types" } } }, { "description": "Coordinated Universal Time (UTC) offset or IANA time zone used to convert `date` values in the query to UTC.", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/term.ts#L161-L170" }, { "kind": "type_alias", "codegenNames": [ "untyped", "date", "numeric", "geo" ], "name": { "name": "DecayFunction", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/compound.ts#L215-L224", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "UntypedDecayFunction", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "DateDecayFunction", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "NumericDecayFunction", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "GeoDecayFunction", "namespace": "_types.query_dsl" } } ] }, "variants": { "kind": "untagged", "untypedVariant": { "name": "UntypedDecayFunction", "namespace": "_types.query_dsl" } } }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TOrigin", "namespace": "_types.query_dsl.DecayFunctionBase" } }, { "kind": "instance_of", "type": { "name": "TScale", "namespace": "_types.query_dsl.DecayFunctionBase" } } ], "type": { "name": "DecayPlacement", "namespace": "_types.query_dsl" } } ], "meta": { "key": "field", "value": "placement" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "generics": [ { "name": "TOrigin", "namespace": "_types.query_dsl.DecayFunctionBase" }, { "name": "TScale", "namespace": "_types.query_dsl.DecayFunctionBase" } ], "name": { "name": "DecayFunctionBase", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Determines how the distance is calculated when a field used for computing the decay contains multiple values.", "name": "multi_value_mode", "required": false, "serverDefault": "min", "type": { "kind": "instance_of", "type": { "name": "MultiValueMode", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/compound.ts#L191-L202" }, { "kind": "interface", "generics": [ { "name": "TOrigin", "namespace": "_types.query_dsl.DecayPlacement" }, { "name": "TScale", "namespace": "_types.query_dsl.DecayPlacement" } ], "name": { "name": "DecayPlacement", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Defines how documents are scored at the distance given at scale.", "name": "decay", "required": false, "serverDefault": 0.5, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If defined, the decay function will only compute the decay function for documents with a distance greater than the defined `offset`.", "name": "offset", "required": false, "serverDefault": "0", "type": { "kind": "instance_of", "type": { "name": "TScale", "namespace": "_types.query_dsl.DecayPlacement" } } }, { "description": "Defines the distance from origin + offset at which the computed score will equal `decay` parameter.", "name": "scale", "required": false, "type": { "kind": "instance_of", "type": { "name": "TScale", "namespace": "_types.query_dsl.DecayPlacement" } } }, { "description": "The point of origin used for calculating distance. Must be given as a number for numeric field, date for date fields and geo point for geo fields.", "name": "origin", "required": false, "type": { "kind": "instance_of", "type": { "name": "TOrigin", "namespace": "_types.query_dsl.DecayPlacement" } } } ], "specLocation": "_types/query_dsl/compound.ts#L170-L189" }, { "kind": "interface", "extDocId": "query-dsl-dis-max-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-dis-max-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "DisMaxQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "One or more query clauses.\nReturned documents must match one or more of these queries.\nIf a document matches multiple queries, Elasticsearch uses the highest relevance score.", "name": "queries", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } }, { "description": "Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses.", "name": "tie_breaker", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/compound.ts#L88-L103" }, { "kind": "type_alias", "codegenNames": [ "untyped", "geo", "date" ], "extDocId": "query-dsl-distance-feature-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-distance-feature-query", "name": { "name": "DistanceFeatureQuery", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/specialized.ts#L76-L85", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "UntypedDistanceFeatureQuery", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "GeoDistanceFeatureQuery", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "DateDistanceFeatureQuery", "namespace": "_types.query_dsl" } } ] }, "variants": { "kind": "untagged", "untypedVariant": { "name": "UntypedDistanceFeatureQuery", "namespace": "_types.query_dsl" } } }, { "kind": "interface", "generics": [ { "name": "TOrigin", "namespace": "_types.query_dsl.DistanceFeatureQueryBase" }, { "name": "TDistance", "namespace": "_types.query_dsl.DistanceFeatureQueryBase" } ], "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "DistanceFeatureQueryBase", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Date or point of origin used to calculate distances.\nIf the `field` value is a `date` or `date_nanos` field, the `origin` value must be a date.\nDate Math, such as `now-1h`, is supported.\nIf the field value is a `geo_point` field, the `origin` value must be a geopoint.", "name": "origin", "required": true, "type": { "kind": "instance_of", "type": { "name": "TOrigin", "namespace": "_types.query_dsl.DistanceFeatureQueryBase" } } }, { "description": "Distance from the `origin` at which relevance scores receive half of the `boost` value.\nIf the `field` value is a `date` or `date_nanos` field, the `pivot` value must be a time unit, such as `1h` or `10d`. If the `field` value is a `geo_point` field, the `pivot` value must be a distance unit, such as `1km` or `12m`.", "name": "pivot", "required": true, "type": { "kind": "instance_of", "type": { "name": "TDistance", "namespace": "_types.query_dsl.DistanceFeatureQueryBase" } } }, { "description": "Name of the field used to calculate distances. This field must meet the following criteria:\nbe a `date`, `date_nanos` or `geo_point` field;\nhave an `index` mapping parameter value of `true`, which is the default;\nhave an `doc_values` mapping parameter value of `true`, which is the default.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L39-L59" }, { "kind": "interface", "extDocId": "query-dsl-exists-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-exists-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "ExistsQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Name of the field you wish to search.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/term.ts#L38-L46" }, { "kind": "interface", "description": "A reference to a field with formatting instructions on how to return the value", "name": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" }, "properties": [ { "description": "A wildcard pattern. The request returns values for field names matching this pattern.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The format in which the values are returned.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "include_unmapped", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "shortcutProperty": "field", "specLocation": "_types/query_dsl/abstractions.ts#L535-L549" }, { "kind": "interface", "name": { "name": "FieldLookup", "namespace": "_types.query_dsl" }, "properties": [ { "description": "`id` of the document.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Index from which to retrieve the document.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Name of the field.", "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Custom routing value.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/abstractions.ts#L436-L453" }, { "kind": "enum", "members": [ { "description": "Do not apply any multiplier to the field value.", "name": "none" }, { "description": "Take the common logarithm of the field value.\nBecause this function will return a negative value and cause an error if used on values between 0 and 1, it is recommended to use `log1p` instead.", "name": "log" }, { "description": "Add 1 to the field value and take the common logarithm.", "name": "log1p" }, { "description": "Add 2 to the field value and take the common logarithm.", "name": "log2p" }, { "description": "Take the natural logarithm of the field value.\nBecause this function will return a negative value and cause an error if used on values between 0 and 1, it is recommended to use `ln1p` instead.", "name": "ln" }, { "description": "Add 1 to the field value and take the natural logarithm.", "name": "ln1p" }, { "description": "Add 2 to the field value and take the natural logarithm.", "name": "ln2p" }, { "description": "Square the field value (multiply it by itself).", "name": "square" }, { "description": "Take the square root of the field value.", "name": "sqrt" }, { "description": "Reciprocate the field value, same as `1/x` where `x` is the field’s value.", "name": "reciprocal" } ], "name": { "name": "FieldValueFactorModifier", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/compound.ts#L323-L366" }, { "kind": "interface", "name": { "name": "FieldValueFactorScoreFunction", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Field to be extracted from the document.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Optional factor to multiply the field value with.", "name": "factor", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Value used if the document doesn’t have that field.\nThe modifier and factor are still applied to it as though it were read from the document.", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Modifier to apply to the field value.", "name": "modifier", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldValueFactorModifier", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/compound.ts#L149-L168" }, { "kind": "enum", "members": [ { "description": "Query score and function score are multiplied", "name": "multiply" }, { "description": "Only the function score is used.\nThe query score is ignored.", "name": "replace" }, { "description": "Query score and function score are added", "name": "sum" }, { "description": "Query score and function score are averaged", "name": "avg" }, { "description": "Max of query score and function score", "name": "max" }, { "description": "Min of query score and function score", "name": "min" } ], "name": { "name": "FunctionBoostMode", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/compound.ts#L295-L321" }, { "kind": "interface", "esQuirk": "this container is valid without a variant. Despite being documented as a function, 'weight'\nis actually a container property that can be combined with a function. Comment in the ES code\n(SearchModule#registerScoreFunctions) says: Weight doesn't have its own parser, so every function\nsupports it out of the box. Can be a single function too when not associated to any other function,\nwhich is why it needs to be registered manually here.", "name": { "name": "FunctionScoreContainer", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Function that scores a document with a exponential decay, depending on the distance of a numeric field value of the document from an origin.", "name": "exp", "required": false, "type": { "kind": "instance_of", "type": { "name": "DecayFunction", "namespace": "_types.query_dsl" } } }, { "description": "Function that scores a document with a normal decay, depending on the distance of a numeric field value of the document from an origin.", "name": "gauss", "required": false, "type": { "kind": "instance_of", "type": { "name": "DecayFunction", "namespace": "_types.query_dsl" } } }, { "description": "Function that scores a document with a linear decay, depending on the distance of a numeric field value of the document from an origin.", "name": "linear", "required": false, "type": { "kind": "instance_of", "type": { "name": "DecayFunction", "namespace": "_types.query_dsl" } } }, { "description": "Function allows you to use a field from a document to influence the score.\nIt’s similar to using the script_score function, however, it avoids the overhead of scripting.", "name": "field_value_factor", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldValueFactorScoreFunction", "namespace": "_types.query_dsl" } } }, { "description": "Generates scores that are uniformly distributed from 0 up to but not including 1.\nIn case you want scores to be reproducible, it is possible to provide a `seed` and `field`.", "name": "random_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "RandomScoreFunction", "namespace": "_types.query_dsl" } } }, { "description": "Enables you to wrap another query and customize the scoring of it optionally with a computation derived from other numeric field values in the doc using a script expression.", "name": "script_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptScoreFunction", "namespace": "_types.query_dsl" } } }, { "containerProperty": true, "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "containerProperty": true, "name": "weight", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/compound.ts#L226-L266", "variants": { "kind": "container" } }, { "kind": "enum", "members": [ { "description": "Scores are multiplied.", "name": "multiply" }, { "description": "Scores are summed.", "name": "sum" }, { "description": "Scores are averaged.", "name": "avg" }, { "description": "The first function that has a matching filter is applied.", "name": "first" }, { "description": "Maximum score is used.", "name": "max" }, { "description": "Minimum score is used.", "name": "min" } ], "name": { "name": "FunctionScoreMode", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/compound.ts#L268-L293" }, { "kind": "interface", "extDocId": "query-dsl-function-score-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-function-score-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "FunctionScoreQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Defines how he newly computed score is combined with the score of the query", "name": "boost_mode", "required": false, "serverDefault": "multiply", "type": { "kind": "instance_of", "type": { "name": "FunctionBoostMode", "namespace": "_types.query_dsl" } } }, { "description": "One or more functions that compute a new score for each document returned by the query.", "name": "functions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FunctionScoreContainer", "namespace": "_types.query_dsl" } } } }, { "description": "Restricts the new score to not exceed the provided limit.", "name": "max_boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Excludes documents that do not meet the provided score threshold.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "A query that determines the documents for which a new score is computed.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Specifies how the computed scores are combined", "name": "score_mode", "required": false, "serverDefault": "multiply", "type": { "kind": "instance_of", "type": { "name": "FunctionScoreMode", "namespace": "_types.query_dsl" } } } ], "shortcutProperty": "functions", "specLocation": "_types/query_dsl/compound.ts#L105-L135" }, { "kind": "interface", "extDocId": "query-dsl-fuzzy-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-fuzzy-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "FuzzyQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Maximum number of variations created.", "name": "max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of beginning characters left unchanged when creating expansions.", "name": "prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of beginning characters left unchanged when creating expansions.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "rewrite", "required": false, "serverDefault": "constant_score", "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "Indicates whether edits include transpositions of two adjacent characters (for example `ab` to `ba`).", "name": "transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum edit distance allowed for matching.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzziness", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Term you wish to find in the provided field.", "name": "value", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ] } } ], "shortcutProperty": "value", "specLocation": "_types/query_dsl/term.ts#L48-L86" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "GeoBounds", "namespace": "_types" } } ], "meta": { "key": "field", "value": "bounding_box" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "extDocId": "query-dsl-geo-bounding-box-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-bounding-box-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoBoundingBoxQuery", "namespace": "_types.query_dsl" }, "properties": [ { "deprecation": { "description": "", "version": "7.14.0" }, "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoExecution", "namespace": "_types.query_dsl" } } }, { "description": "Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or longitude.\nSet to `COERCE` to also try to infer correct latitude or longitude.", "name": "validation_method", "required": false, "serverDefault": "'strict'", "type": { "kind": "instance_of", "type": { "name": "GeoValidationMethod", "namespace": "_types.query_dsl" } } }, { "description": "Set to `true` to ignore an unmapped field and not match any documents for this query.\nSet to `false` to throw an exception if the field is not mapped.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/geo.ts#L35-L57" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "Distance", "namespace": "_types" } } ], "type": { "name": "DecayFunctionBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoDecayFunction", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/compound.ts#L210-L213" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "Distance", "namespace": "_types" } } ], "type": { "name": "DistanceFeatureQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoDistanceFeatureQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/specialized.ts#L66-L69" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } ], "meta": { "key": "field", "value": "location" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "extDocId": "query-dsl-geo-distance-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-distance-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoDistanceQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The radius of the circle centred on the specified location.\nPoints which fall into this circle are considered to be matches.", "docId": "distance-units", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#distance-units", "name": "distance", "required": true, "type": { "kind": "instance_of", "type": { "name": "Distance", "namespace": "_types" } } }, { "description": "How to compute the distance.\nSet to `plane` for a faster calculation that's inaccurate on long distances and close to the poles.", "name": "distance_type", "required": false, "serverDefault": "'arc'", "type": { "kind": "instance_of", "type": { "name": "GeoDistanceType", "namespace": "_types" } } }, { "description": "Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or longitude.\nSet to `COERCE` to also try to infer correct latitude or longitude.", "name": "validation_method", "required": false, "serverDefault": "'strict'", "type": { "kind": "instance_of", "type": { "name": "GeoValidationMethod", "namespace": "_types.query_dsl" } } }, { "description": "Set to `true` to ignore an unmapped field and not match any documents for this query.\nSet to `false` to throw an exception if the field is not mapped.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/geo.ts#L64-L96" }, { "kind": "enum", "members": [ { "name": "memory" }, { "name": "indexed" } ], "name": { "name": "GeoExecution", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/geo.ts#L59-L62" }, { "kind": "interface", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoGridQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "geogrid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoTile", "namespace": "_types" } } }, { "name": "geohash", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoHash", "namespace": "_types" } } }, { "name": "geohex", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoHexCell", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/geo.ts#L98-L103", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "GeoPolygonPoints", "namespace": "_types.query_dsl" }, "properties": [ { "name": "points", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GeoLocation", "namespace": "_types" } } } } ], "specLocation": "_types/query_dsl/geo.ts#L105-L107" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "GeoPolygonPoints", "namespace": "_types.query_dsl" } } ], "meta": { "key": "field", "value": "polygon" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "deprecation": { "description": "Use geo-shape instead.", "version": "7.12.0" }, "extDocId": "query-dsl-geo-polygon-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-polygon-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoPolygonQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "validation_method", "required": false, "serverDefault": "'strict'", "type": { "kind": "instance_of", "type": { "name": "GeoValidationMethod", "namespace": "_types.query_dsl" } } }, { "name": "ignore_unmapped", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/geo.ts#L109-L121" }, { "kind": "interface", "name": { "name": "GeoShapeFieldQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "shape", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoShape", "namespace": "_types" } } }, { "description": "Query using an indexed shape retrieved from the the specified document and path.", "name": "indexed_shape", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldLookup", "namespace": "_types.query_dsl" } } }, { "description": "Spatial relation operator used to search a geo field.", "name": "relation", "required": false, "serverDefault": "intersects", "type": { "kind": "instance_of", "type": { "name": "GeoShapeRelation", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/geo.ts#L128-L139" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "GeoShapeFieldQuery", "namespace": "_types.query_dsl" } } ], "meta": { "key": "field", "value": "shape" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "extDocId": "query-dsl-geo-shape-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-shape-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "GeoShapeQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Set to `true` to ignore an unmapped field and not match any documents for this query.\nSet to `false` to throw an exception if the field is not mapped.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/geo.ts#L141-L157" }, { "kind": "enum", "members": [ { "description": "Accept geo points with invalid latitude or longitude and additionally try and infer correct coordinates.", "name": "coerce" }, { "description": "Accept geo points with invalid latitude or longitude.", "name": "ignore_malformed" }, { "name": "strict" } ], "name": { "name": "GeoValidationMethod", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/geo.ts#L173-L183" }, { "kind": "interface", "extDocId": "query-dsl-has-child-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-has-child-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "HasChildQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Indicates whether to ignore an unmapped `type` and not return any documents instead of an error.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If defined, each search hit will contain inner hits.", "docId": "inner-hits", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-inner-hits", "name": "inner_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "InnerHits", "namespace": "_global.search._types" } } }, { "description": "Maximum number of child documents that match the query allowed for a returned parent document.\nIf the parent document exceeds this limit, it is excluded from the search results.", "name": "max_children", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum number of child documents that match the query required to match the query for a returned parent document.\nIf the parent document does not meet this limit, it is excluded from the search results.", "name": "min_children", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Query you wish to run on child documents of the `type` field.\nIf a child document matches the search, the query returns the parent document.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Indicates how scores for matching child documents affect the root parent document’s relevance score.", "name": "score_mode", "required": false, "serverDefault": "'none'", "type": { "kind": "instance_of", "type": { "name": "ChildScoreMode", "namespace": "_types.query_dsl" } } }, { "description": "Name of the child relationship mapped for the `join` field.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/joining.ts#L41-L79" }, { "kind": "interface", "extDocId": "query-dsl-has-parent-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-has-parent-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "HasParentQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Indicates whether to ignore an unmapped `parent_type` and not return any documents instead of an error.\nYou can use this parameter to query multiple indices that may not contain the `parent_type`.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If defined, each search hit will contain inner hits.", "docId": "inner-hits", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-inner-hits", "name": "inner_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "InnerHits", "namespace": "_global.search._types" } } }, { "description": "Name of the parent relationship mapped for the `join` field.", "name": "parent_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } }, { "description": "Query you wish to run on parent documents of the `parent_type` field.\nIf a parent document matches the search, the query returns its child documents.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Indicates whether the relevance score of a matching parent document is aggregated into its child documents.", "name": "score", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/joining.ts#L81-L110" }, { "kind": "interface", "extDocId": "query-dsl-ids-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-ids-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "IdsQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "An array of document IDs.", "name": "values", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/term.ts#L88-L96" }, { "kind": "interface", "name": { "name": "IntervalsAllOf", "namespace": "_types.query_dsl" }, "properties": [ { "description": "An array of rules to combine. All rules must produce a match in a document for the overall source to match.", "name": "intervals", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } } }, { "description": "Maximum number of positions between the matching terms.\nIntervals produced by the rules further apart than this are not considered matches.", "name": "max_gaps", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, intervals produced by the rules should appear in the order in which they are specified.", "name": "ordered", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Rule used to filter returned intervals.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsFilter", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L50-L70" }, { "kind": "interface", "name": { "name": "IntervalsAnyOf", "namespace": "_types.query_dsl" }, "properties": [ { "description": "An array of rules to match.", "name": "intervals", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } } }, { "description": "Rule used to filter returned intervals.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsFilter", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L72-L81" }, { "kind": "interface", "name": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Returns matches that span a combination of other rules.", "name": "all_of", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsAllOf", "namespace": "_types.query_dsl" } } }, { "description": "Returns intervals produced by any of its sub-rules.", "name": "any_of", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsAnyOf", "namespace": "_types.query_dsl" } } }, { "description": "Matches analyzed text.", "name": "fuzzy", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsFuzzy", "namespace": "_types.query_dsl" } } }, { "description": "Matches analyzed text.", "name": "match", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsMatch", "namespace": "_types.query_dsl" } } }, { "description": "Matches terms that start with a specified set of characters.", "name": "prefix", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsPrefix", "namespace": "_types.query_dsl" } } }, { "description": "Matches terms using a wildcard pattern.", "name": "wildcard", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsWildcard", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L83-L110", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "IntervalsFilter", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Query used to return intervals that follow an interval from the `filter` rule.", "name": "after", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals that occur before an interval from the `filter` rule.", "name": "before", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals contained by an interval from the `filter` rule.", "name": "contained_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals that contain an interval from the `filter` rule.", "name": "containing", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals that are **not** contained by an interval from the `filter` rule.", "name": "not_contained_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals that do **not** contain an interval from the `filter` rule.", "name": "not_containing", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals that do **not** overlap with an interval from the `filter` rule.", "name": "not_overlapping", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Query used to return intervals that overlap with an interval from the `filter` rule.", "name": "overlapping", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsContainer", "namespace": "_types.query_dsl" } } }, { "description": "Script used to return matching documents.\nThis script must return a boolean value: `true` or `false`.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L112-L152", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "IntervalsFuzzy", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to normalize the term.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum edit distance allowed for matching.", "name": "fuzziness", "required": false, "serverDefault": "auto", "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Number of beginning characters left unchanged when creating expansions.", "name": "prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The term to match.", "name": "term", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates whether edits include transpositions of two adjacent characters (for example, `ab` to `ba`).", "name": "transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If specified, match intervals from this field rather than the top-level field.\nThe `term` is normalized using the search analyzer from this field, unless `analyzer` is specified separately.", "name": "use_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L154-L184" }, { "kind": "interface", "name": { "name": "IntervalsMatch", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to analyze terms in the query.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum number of positions between the matching terms.\nTerms further apart than this are not considered matches.", "name": "max_gaps", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, matching terms must appear in their specified order.", "name": "ordered", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Text you wish to find in the provided field.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If specified, match intervals from this field rather than the top-level field.\nThe `term` is normalized using the search analyzer from this field, unless `analyzer` is specified separately.", "name": "use_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "An optional interval filter.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsFilter", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L186-L216" }, { "kind": "interface", "name": { "name": "IntervalsPrefix", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to analyze the `prefix`.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Beginning characters of terms you wish to find in the top-level field.", "name": "prefix", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If specified, match intervals from this field rather than the top-level field.\nThe `prefix` is normalized using the search analyzer from this field, unless `analyzer` is specified separately.", "name": "use_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L218-L233" }, { "kind": "interface", "extDocId": "query-dsl-intervals-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-intervals-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "IntervalsQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Returns matches that span a combination of other rules.", "name": "all_of", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsAllOf", "namespace": "_types.query_dsl" } } }, { "description": "Returns intervals produced by any of its sub-rules.", "name": "any_of", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsAnyOf", "namespace": "_types.query_dsl" } } }, { "description": "Matches terms that are similar to the provided term, within an edit distance defined by `fuzziness`.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzzy", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsFuzzy", "namespace": "_types.query_dsl" } } }, { "description": "Matches analyzed text.", "name": "match", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsMatch", "namespace": "_types.query_dsl" } } }, { "description": "Matches terms that start with a specified set of characters.", "name": "prefix", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsPrefix", "namespace": "_types.query_dsl" } } }, { "description": "Matches terms using a wildcard pattern.", "name": "wildcard", "required": false, "type": { "kind": "instance_of", "type": { "name": "IntervalsWildcard", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L235-L266", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "IntervalsWildcard", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to analyze the `pattern`.\nDefaults to the top-level field's analyzer.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Wildcard pattern used to find matching terms.", "name": "pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If specified, match intervals from this field rather than the top-level field.\nThe `pattern` is normalized using the search analyzer from this field, unless `analyzer` is specified separately.", "name": "use_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L268-L283" }, { "kind": "type_alias", "codegenNames": [ "text", "document" ], "description": "Text that we want similar documents for or a lookup to a document's field for the text.", "docId": "document-input-parameters", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-mlt-query#_document_input_parameters", "name": { "name": "Like", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/specialized.ts#L198-L203", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "LikeDocument", "namespace": "_types.query_dsl" } } ] } }, { "kind": "interface", "name": { "name": "LikeDocument", "namespace": "_types.query_dsl" }, "properties": [ { "description": "A document not present in the index.", "name": "doc", "required": false, "type": { "kind": "user_defined_value" } }, { "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "ID of a document.", "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Index of a document.", "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Overrides the default analyzer.", "name": "per_field_analyzer", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "version_type", "required": false, "serverDefault": "'internal'", "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L174-L196" }, { "kind": "interface", "extDocId": "query-dsl-match-all-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MatchAllQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/MatchAllQuery.ts#L22-L25" }, { "kind": "interface", "extDocId": "query-dsl-match-bool-prefix-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-bool-prefix-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MatchBoolPrefixQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to convert the text in the query value into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum edit distance allowed for matching.\nCan be applied to the term subqueries constructed for all terms but the final term.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzziness", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Method used to rewrite the query.\nCan be applied to the term subqueries constructed for all terms but the final term.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "fuzzy_rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "If `true`, edits for fuzzy matching include transpositions of two adjacent characters (for example, `ab` to `ba`).\nCan be applied to the term subqueries constructed for all terms but the final term.", "name": "fuzzy_transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of terms to which the query will expand.\nCan be applied to the term subqueries constructed for all terms but the final term.", "name": "max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum number of clauses that must match for a document to be returned.\nApplied to the constructed bool query.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Boolean logic used to interpret text in the query value.\nApplied to the constructed bool query.", "name": "operator", "required": false, "serverDefault": "'or'", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "Number of beginning characters left unchanged for fuzzy matching.\nCan be applied to the term subqueries constructed for all terms but the final term.", "name": "prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Terms you wish to find in the provided field.\nThe last term is used in a prefix query.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "query", "specLocation": "_types/query_dsl/fulltext.ts#L355-L412" }, { "kind": "interface", "extDocId": "query-dsl-match-none-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query#query-dsl-match-none-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MatchNoneQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/MatchNoneQuery.ts#L22-L25" }, { "kind": "interface", "extDocId": "query-dsl-match-query-phrase-prefix", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase-prefix", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MatchPhrasePrefixQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to convert text in the query value into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum number of terms to which the last provided term of the query value will expand.", "name": "max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Text you wish to find in the provided field.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum number of positions allowed between matching tokens.", "name": "slop", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a `stop` filter.", "name": "zero_terms_query", "required": false, "serverDefault": "none", "type": { "kind": "instance_of", "type": { "name": "ZeroTermsQuery", "namespace": "_types.query_dsl" } } } ], "shortcutProperty": "query", "specLocation": "_types/query_dsl/fulltext.ts#L440-L469" }, { "kind": "interface", "extDocId": "query-dsl-match-query-phrase", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MatchPhraseQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to convert the text in the query value into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Query terms that are analyzed and turned into a phrase query.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum number of positions allowed between matching tokens.", "name": "slop", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter.", "name": "zero_terms_query", "required": false, "serverDefault": "'none'", "type": { "kind": "instance_of", "type": { "name": "ZeroTermsQuery", "namespace": "_types.query_dsl" } } } ], "shortcutProperty": "query", "specLocation": "_types/query_dsl/fulltext.ts#L414-L438" }, { "kind": "interface", "extDocId": "query-dsl-match-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MatchQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to convert the text in the query value into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, match phrase queries are automatically created for multi-term synonyms.", "name": "auto_generate_synonyms_phrase_query", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "deprecation": { "description": "", "version": "7.3.0" }, "name": "cutoff_frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Maximum edit distance allowed for matching.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzziness", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "fuzzy_rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "If `true`, edits for fuzzy matching include transpositions of two adjacent characters (for example, `ab` to `ba`).", "name": "fuzzy_transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based errors, such as providing a text query value for a numeric field, are ignored.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of terms to which the query will expand.", "name": "max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum number of clauses that must match for a document to be returned.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Boolean logic used to interpret text in the query value.", "name": "operator", "required": false, "serverDefault": "'or'", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "Number of beginning characters left unchanged for fuzzy matching.", "name": "prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Text, number, boolean value or date you wish to find in the provided field.", "name": "query", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ] } }, { "description": "Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter.", "name": "zero_terms_query", "required": false, "serverDefault": "'none'", "type": { "kind": "instance_of", "type": { "name": "ZeroTermsQuery", "namespace": "_types.query_dsl" } } } ], "shortcutProperty": "query", "specLocation": "_types/query_dsl/fulltext.ts#L285-L353" }, { "kind": "interface", "extDocId": "query-dsl-mlt-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-mlt-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MoreLikeThisQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The analyzer that is used to analyze the free form text.\nDefaults to the analyzer associated with the first field in fields.", "extDocId": "analysis", "extDocUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Each term in the formed query could be further boosted by their tf-idf score.\nThis sets the boost factor to use when using this feature.\nDefaults to deactivated (0).", "name": "boost_terms", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (`text` or `keyword`).", "name": "fail_on_unsupported_field", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A list of fields to fetch and analyze the text from.\nDefaults to the `index.query.default_field` index setting, which has a default value of `*`.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "Specifies whether the input documents should also be included in the search results returned.", "name": "include", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies free form text and/or a single or multiple documents for which you want to find similar documents.", "name": "like", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Like", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Like", "namespace": "_types.query_dsl" } } } ] } }, { "description": "The maximum document frequency above which the terms are ignored from the input document.", "name": "max_doc_freq", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of query terms that can be selected.", "name": "max_query_terms", "required": false, "serverDefault": 25, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum word length above which the terms are ignored.\nDefaults to unbounded (`0`).", "name": "max_word_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum document frequency below which the terms are ignored from the input document.", "name": "min_doc_freq", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "After the disjunctive query has been formed, this parameter controls the number of terms that must match.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "The minimum term frequency below which the terms are ignored from the input document.", "name": "min_term_freq", "required": false, "serverDefault": 2, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum word length below which the terms are ignored.", "name": "min_word_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "An array of stop words.\nAny word in this set is ignored.", "name": "stop_words", "required": false, "type": { "kind": "instance_of", "type": { "name": "StopWords", "namespace": "_types.analysis" } } }, { "description": "Used in combination with `like` to exclude documents that match a set of terms.", "name": "unlike", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Like", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Like", "namespace": "_types.query_dsl" } } } ] } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "version_type", "required": false, "serverDefault": "'internal'", "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L87-L172" }, { "kind": "interface", "extDocId": "query-dsl-multi-match-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-match-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "MultiMatchQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to convert the text in the query value into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, match phrase queries are automatically created for multi-term synonyms.", "name": "auto_generate_synonyms_phrase_query", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "deprecation": { "description": "", "version": "7.3.0" }, "name": "cutoff_frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The fields to be queried.\nDefaults to the `index.query.default_field` index settings, which in turn defaults to `*`.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Maximum edit distance allowed for matching.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzziness", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "fuzzy_rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "If `true`, edits for fuzzy matching include transpositions of two adjacent characters (for example, `ab` to `ba`).\nCan be applied to the term subqueries constructed for all terms but the final term.", "name": "fuzzy_transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based errors, such as providing a text query value for a numeric field, are ignored.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of terms to which the query will expand.", "name": "max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum number of clauses that must match for a document to be returned.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Boolean logic used to interpret text in the query value.", "name": "operator", "required": false, "serverDefault": "'or'", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "Number of beginning characters left unchanged for fuzzy matching.", "name": "prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Text, number, boolean value or date you wish to find in the provided field.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum number of positions allowed between matching tokens.", "name": "slop", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Determines how scores for each per-term blended query and scores across groups are combined.", "name": "tie_breaker", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "How `the` multi_match query is executed internally.", "name": "type", "required": false, "serverDefault": "'best_fields'", "type": { "kind": "instance_of", "type": { "name": "TextQueryType", "namespace": "_types.query_dsl" } } }, { "description": "Indicates whether no documents are returned if the `analyzer` removes all tokens, such as when using a `stop` filter.", "name": "zero_terms_query", "required": false, "serverDefault": "'none'", "type": { "kind": "instance_of", "type": { "name": "ZeroTermsQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L471-L557" }, { "kind": "enum", "members": [ { "description": "Distance is the minimum distance.", "name": "min" }, { "description": "Distance is the maximum distance.", "name": "max" }, { "description": "Distance is the average distance.", "name": "avg" }, { "description": "Distance is the sum of all distances.", "name": "sum" } ], "name": { "name": "MultiValueMode", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/compound.ts#L368-L385" }, { "kind": "interface", "extDocId": "query-dsl-nested-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-nested-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "NestedQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Indicates whether to ignore an unmapped path and not return any documents instead of an error.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If defined, each search hit will contain inner hits.", "docId": "inner-hits", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/retrieve-inner-hits", "name": "inner_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "InnerHits", "namespace": "_global.search._types" } } }, { "description": "Path to the nested object you wish to search.", "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Query you wish to run on nested objects in the path.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "How scores for matching child objects affect the root parent document’s relevance score.", "name": "score_mode", "required": false, "serverDefault": "'avg'", "type": { "kind": "instance_of", "type": { "name": "ChildScoreMode", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/joining.ts#L112-L139" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } ], "type": { "name": "RangeQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "NumberRangeQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/term.ts#L172-L172" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } ], "type": { "name": "DecayFunctionBase", "namespace": "_types.query_dsl" } }, "name": { "name": "NumericDecayFunction", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/compound.ts#L208-L208" }, { "kind": "enum", "members": [ { "aliases": [ "AND" ], "name": "and" }, { "aliases": [ "OR" ], "name": "or" } ], "name": { "name": "Operator", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/Operator.ts#L22-L27" }, { "kind": "interface", "extDocId": "query-dsl-parent-id-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-parent-id-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "ParentIdQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "ID of the parent document.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Indicates whether to ignore an unmapped `type` and not return any documents instead of an error.", "name": "ignore_unmapped", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Name of the child relationship mapped for the `join` field.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/joining.ts#L141-L158" }, { "kind": "interface", "extDocId": "query-dsl-percolate-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-percolate-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "PercolateQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The source of the document being percolated.", "name": "document", "required": false, "type": { "kind": "user_defined_value" } }, { "description": "An array of sources of the documents being percolated.", "name": "documents", "required": false, "type": { "kind": "array_of", "value": { "kind": "user_defined_value" } } }, { "description": "Field that holds the indexed queries. The field must use the `percolator` mapping type.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The ID of a stored document to percolate.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The index of a stored document to percolate.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The suffix used for the `_percolator_document_slot` field when multiple `percolate` queries are specified.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Preference used to fetch document to percolate.", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Routing used to fetch document to percolate.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "The expected version of a stored document to percolate.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L205-L245" }, { "kind": "interface", "name": { "name": "PinnedDoc", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The unique document ID.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The index that contains the document.", "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L269-L278" }, { "kind": "interface", "extDocId": "query-dsl-pinned-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-pinned-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "PinnedQuery", "namespace": "_types.query_dsl" }, "properties": [ { "containerProperty": true, "description": "Any choice of query used to rank documents which will be ranked below the \"pinned\" documents.", "name": "organic", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Document IDs listed in the order they are to appear in results.\nRequired if `docs` is not specified.", "name": "ids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "description": "Documents listed in the order they are to appear in results.\nRequired if `ids` is not specified.", "name": "docs", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PinnedDoc", "namespace": "_types.query_dsl" } } } } ], "specLocation": "_types/query_dsl/specialized.ts#L247-L267", "variants": { "kind": "container" } }, { "kind": "interface", "extDocId": "query-dsl-prefix-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-prefix-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "PrefixQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "Beginning characters of terms you wish to find in the provided field.", "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.10.0" } }, "description": "Allows ASCII case insensitive matching of the value with the indexed field values when set to `true`.\nDefault is `false` which means the case sensitivity of matching depends on the underlying field’s mapping.", "name": "case_insensitive", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "shortcutProperty": "value", "specLocation": "_types/query_dsl/term.ts#L98-L120" }, { "kind": "interface", "name": { "name": "QueryBase", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Floating point number used to decrease or increase the relevance scores of the query.\nBoost values are relative to the default value of 1.0.\nA boost value between 0 and 1.0 decreases the relevance score.\nA value greater than 1.0 increases the relevance score.", "name": "boost", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "codegenName": "query_name", "name": "_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/abstractions.ts#L459-L470" }, { "kind": "interface", "description": "An Elasticsearch Query DSL (Domain Specific Language) object that defines a query.", "extDocId": "query-dsl", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": { "name": "QueryContainer", "namespace": "_types.query_dsl" }, "properties": [ { "description": "matches documents matching boolean combinations of other queries.", "extDocId": "query-dsl-bool-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-bool-query", "name": "bool", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoolQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents matching a `positive` query while reducing the relevance score of documents that also match a `negative` query.", "extDocId": "query-dsl-boosting-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-boosting-query", "name": "boosting", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoostingQuery", "namespace": "_types.query_dsl" } } }, { "deprecation": { "description": "", "version": "7.3.0" }, "name": "common", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "CommonTermsQuery", "namespace": "_types.query_dsl" } } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "description": "The `combined_fields` query supports searching multiple text fields as if their contents had been indexed into one combined field.", "extDocId": "query-dsl-combined-fields-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-combined-fields-query", "name": "combined_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "CombinedFieldsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Wraps a filter query and returns every matching document with a relevance score equal to the `boost` parameter value.", "extDocId": "query-dsl-constant-score-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-constant-score-query", "name": "constant_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConstantScoreQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents matching one or more wrapped queries, called query clauses or clauses.\nIf a returned document matches multiple query clauses, the `dis_max` query assigns the document the highest relevance score from any matching clause, plus a tie breaking increment for any additional matching subqueries.", "extDocId": "query-dsl-dis-max-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-dis-max-query", "name": "dis_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "DisMaxQuery", "namespace": "_types.query_dsl" } } }, { "description": "Boosts the relevance score of documents closer to a provided origin date or point.\nFor example, you can use this query to give more weight to documents closer to a certain date or location.", "extDocId": "query-dsl-distance-feature-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-distance-feature-query", "name": "distance_feature", "required": false, "type": { "kind": "instance_of", "type": { "name": "DistanceFeatureQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain an indexed value for a field.", "extDocId": "query-dsl-exists-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-exists-query", "name": "exists", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExistsQuery", "namespace": "_types.query_dsl" } } }, { "description": "The `function_score` enables you to modify the score of documents that are retrieved by a query.", "extDocId": "query-dsl-function-score-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-function-score-query", "name": "function_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "FunctionScoreQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance.", "extDocId": "query-dsl-fuzzy-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-fuzzy-query", "name": "fuzzy", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "FuzzyQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Matches geo_point and geo_shape values that intersect a bounding box.", "extDocId": "query-dsl-geo-bounding-box-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-bounding-box-query", "name": "geo_bounding_box", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoBoundingBoxQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches `geo_point` and `geo_shape` values within a given distance of a geopoint.", "extDocId": "query-dsl-geo-distance-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-distance-query", "name": "geo_distance", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoDistanceQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches `geo_point` and `geo_shape` values that intersect a grid cell from a GeoGrid aggregation.", "name": "geo_grid", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "GeoGridQuery", "namespace": "_types.query_dsl" } } } }, { "deprecation": { "description": "Use geo-shape instead.", "version": "7.12.0" }, "name": "geo_polygon", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoPolygonQuery", "namespace": "_types.query_dsl" } } }, { "description": "Filter documents indexed using either the `geo_shape` or the `geo_point` type.", "extDocId": "query-dsl-geo-shape-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-geo-shape-query", "name": "geo_shape", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoShapeQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns parent documents whose joined child documents match a provided query.", "extDocId": "query-dsl-has-child-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-has-child-query", "name": "has_child", "required": false, "type": { "kind": "instance_of", "type": { "name": "HasChildQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns child documents whose joined parent document matches a provided query.", "extDocId": "query-dsl-has-parent-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-has-parent-query", "name": "has_parent", "required": false, "type": { "kind": "instance_of", "type": { "name": "HasParentQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents based on their IDs.\nThis query uses document IDs stored in the `_id` field.", "extDocId": "query-dsl-ids-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-ids-query", "name": "ids", "required": false, "type": { "kind": "instance_of", "type": { "name": "IdsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents based on the order and proximity of matching terms.", "extDocId": "query-dsl-intervals-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-intervals-query", "name": "intervals", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "IntervalsQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Finds the k nearest vectors to a query vector, as measured by a similarity\nmetric. knn query finds nearest vectors through approximate search on indexed\ndense_vectors.", "extDocId": "query-dsl-knn-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-knn-query", "name": "knn", "required": false, "type": { "kind": "instance_of", "type": { "name": "KnnQuery", "namespace": "_types" } } }, { "description": "Returns documents that match a provided text, number, date or boolean value.\nThe provided text is analyzed before matching.", "extDocId": "query-dsl-match-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query", "name": "match", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Matches all documents, giving them all a `_score` of 1.0.", "extDocId": "query-dsl-match-all-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query", "name": "match_all", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatchAllQuery", "namespace": "_types.query_dsl" } } }, { "description": "Analyzes its input and constructs a `bool` query from the terms.\nEach term except the last is used in a `term` query.\nThe last term is used in a prefix query.", "extDocId": "query-dsl-match-bool-prefix-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-bool-prefix-query", "name": "match_bool_prefix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchBoolPrefixQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Matches no documents.", "extDocId": "query-dsl-match-none-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query#query-dsl-match-none-query", "name": "match_none", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatchNoneQuery", "namespace": "_types.query_dsl" } } }, { "description": "Analyzes the text and creates a phrase query out of the analyzed text.", "extDocId": "query-dsl-match-query-phrase", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase", "name": "match_phrase", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchPhraseQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents that contain the words of a provided text, in the same order as provided.\nThe last term of the provided text is treated as a prefix, matching any words that begin with that term.", "extDocId": "query-dsl-match-query-phrase-prefix", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query-phrase-prefix", "name": "match_phrase_prefix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchPhrasePrefixQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents that are \"like\" a given set of documents.", "extDocId": "query-dsl-mlt-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-mlt-query", "name": "more_like_this", "required": false, "type": { "kind": "instance_of", "type": { "name": "MoreLikeThisQuery", "namespace": "_types.query_dsl" } } }, { "description": "Enables you to search for a provided text, number, date or boolean value across multiple fields.\nThe provided text is analyzed before matching.", "extDocId": "query-dsl-multi-match-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-match-query", "name": "multi_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiMatchQuery", "namespace": "_types.query_dsl" } } }, { "description": "Wraps another query to search nested fields.\nIf an object matches the search, the nested query returns the root parent document.", "extDocId": "query-dsl-nested-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-nested-query", "name": "nested", "required": false, "type": { "kind": "instance_of", "type": { "name": "NestedQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns child documents joined to a specific parent document.", "extDocId": "query-dsl-parent-id-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-parent-id-query", "name": "parent_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ParentIdQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches queries stored in an index.", "extDocId": "query-dsl-percolate-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-percolate-query", "name": "percolate", "required": false, "type": { "kind": "instance_of", "type": { "name": "PercolateQuery", "namespace": "_types.query_dsl" } } }, { "description": "Promotes selected documents to rank higher than those matching a given query.", "extDocId": "query-dsl-pinned-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-pinned-query", "name": "pinned", "required": false, "type": { "kind": "instance_of", "type": { "name": "PinnedQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain a specific prefix in a provided field.", "extDocId": "query-dsl-prefix-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-prefix-query", "name": "prefix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "PrefixQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents based on a provided query string, using a parser with a strict syntax.", "extDocId": "query-dsl-query-string-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-query-string-query", "name": "query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryStringQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain terms within a provided range.", "extDocId": "query-dsl-range-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query", "name": "range", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "RangeQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Boosts the relevance score of documents based on the numeric value of a `rank_feature` or `rank_features` field.", "extDocId": "query-dsl-rank-feature-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-rank-feature-query", "name": "rank_feature", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankFeatureQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain terms matching a regular expression.", "extDocId": "query-dsl-regexp-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-regexp-query", "name": "regexp", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "RegexpQuery", "namespace": "_types.query_dsl" } } } }, { "name": "rule", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuleQuery", "namespace": "_types.query_dsl" } } }, { "description": "Filters documents based on a provided script.\nThe script query is typically used in a filter context.", "extDocId": "query-dsl-script-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-script-query", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptQuery", "namespace": "_types.query_dsl" } } }, { "description": "Uses a script to provide a custom score for returned documents.", "extDocId": "query-dsl-script-score-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-script-score-query", "name": "script_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptScoreQuery", "namespace": "_types.query_dsl" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.15.0" } }, "description": "A semantic query to semantic_text field types", "name": "semantic", "required": false, "type": { "kind": "instance_of", "type": { "name": "SemanticQuery", "namespace": "_types.query_dsl" } } }, { "description": "Queries documents that contain fields indexed using the `shape` type.", "extDocId": "query-dsl-shape-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-shape-query", "name": "shape", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShapeQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents based on a provided query string, using a parser with a limited but fault-tolerant syntax.", "extDocId": "query-dsl-simple-query-string-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query", "name": "simple_query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "SimpleQueryStringQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns matches which enclose another span query.", "extDocId": "query-dsl-span-containing-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-containing-query", "name": "span_containing", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanContainingQuery", "namespace": "_types.query_dsl" } } }, { "description": "Wrapper to allow span queries to participate in composite single-field span queries by _lying_ about their search field.", "extDocId": "query-dsl-span-field-masking-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-field-masking-query", "name": "span_field_masking", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanFieldMaskingQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches spans near the beginning of a field.", "extDocId": "query-dsl-span-first-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-first-query", "name": "span_first", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanFirstQuery", "namespace": "_types.query_dsl" } } }, { "description": "Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`, `prefix`, `range`, or `regexp` query) as a `span` query, so it can be nested.", "extDocId": "query-dsl-span-multi-term-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-multi-term-query", "name": "span_multi", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanMultiTermQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches spans which are near one another.\nYou can specify `slop`, the maximum number of intervening unmatched positions, as well as whether matches are required to be in-order.", "extDocId": "query-dsl-span-near-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-near-query", "name": "span_near", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanNearQuery", "namespace": "_types.query_dsl" } } }, { "description": "Removes matches which overlap with another span query or which are within x tokens before (controlled by the parameter `pre`) or y tokens after (controlled by the parameter `post`) another span query.", "extDocId": "query-dsl-span-not-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-not-query", "name": "span_not", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanNotQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches the union of its span clauses.", "extDocId": "query-dsl-span-or-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-query", "name": "span_or", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanOrQuery", "namespace": "_types.query_dsl" } } }, { "description": "Matches spans containing a term.", "extDocId": "query-dsl-span-term-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-term-query", "name": "span_term", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "SpanTermQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns matches which are enclosed inside another span query.", "extDocId": "query-dsl-span-within-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-within-query", "name": "span_within", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanWithinQuery", "namespace": "_types.query_dsl" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.15.0" } }, "description": "Using input query vectors or a natural language processing model to convert a query into a list of token-weight pairs, queries against a sparse vector field.", "extDocId": "query-dsl-sparse-vector-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-sparse-vector-query", "name": "sparse_vector", "required": false, "type": { "kind": "instance_of", "type": { "name": "SparseVectorQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain an exact term in a provided field.\nTo return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.", "extDocId": "query-dsl-term-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-term-query", "name": "term", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "TermQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents that contain one or more exact terms in a provided field.\nTo return a document, one or more terms must exactly match a field value, including whitespace and capitalization.", "extDocId": "query-dsl-terms-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-query", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain a minimum number of exact terms in a provided field.\nTo return a document, a required number of terms must exactly match the field values, including whitespace and capitalization.", "extDocId": "query-dsl-terms-set-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-set-query", "name": "terms_set", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "TermsSetQuery", "namespace": "_types.query_dsl" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.8.0" } }, "deprecation": { "description": "", "version": "8.15.0" }, "description": "Uses a natural language processing model to convert the query text into a list of token-weight pairs which are then used in a query against a sparse vector or rank features field.", "extDocId": "query-dsl-text-expansion-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query", "name": "text_expansion", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "TextExpansionQuery", "namespace": "_types.query_dsl" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.13.0" } }, "deprecation": { "description": "", "version": "8.15.0" }, "description": "Supports returning text_expansion query results by sending in precomputed tokens with the query.", "extDocId": "query-dsl-weighted-tokens-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-weighted-tokens-query", "name": "weighted_tokens", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "WeightedTokensQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents that contain terms matching a wildcard pattern.", "extDocId": "query-dsl-wildcard-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wildcard-query", "name": "wildcard", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "WildcardQuery", "namespace": "_types.query_dsl" } } } }, { "description": "A query that accepts any other query as base64 encoded string.", "extDocId": "query-dsl-wrapper-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wrapper-query", "name": "wrapper", "required": false, "type": { "kind": "instance_of", "type": { "name": "WrapperQuery", "namespace": "_types.query_dsl" } } }, { "deprecation": { "description": "https://www.elastic.co/guide/en/elasticsearch/reference/7.x/removal-of-types.html", "version": "7.0.0" }, "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/abstractions.ts#L103-L434", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "extDocId": "query-dsl-query-string-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-query-string-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "QueryStringQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "If `true`, the wildcard characters `*` and `?` are allowed as the first character of the query string.", "name": "allow_leading_wildcard", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Analyzer used to convert text in the query string into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the query attempts to analyze wildcard terms in the query string.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, match phrase queries are automatically created for multi-term synonyms.", "name": "auto_generate_synonyms_phrase_query", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Default field to search if no field is provided in the query string.\nSupports wildcards (`*`).\nDefaults to the `index.query.default_field` index setting, which has a default value of `*`.", "name": "default_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Default boolean logic used to interpret text in the query string if no operators are specified.", "name": "default_operator", "required": false, "serverDefault": "'or'", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "If `true`, enable position increments in queries constructed from a `query_string` search.", "name": "enable_position_increments", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "escape", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Array of fields to search. Supports wildcards (`*`).", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "Maximum edit distance allowed for fuzzy matching.", "docId": "fuzziness", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/common-options#fuzziness", "name": "fuzziness", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fuzziness", "namespace": "_types" } } }, { "description": "Maximum number of terms to which the query expands for fuzzy matching.", "name": "fuzzy_max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of beginning characters left unchanged for fuzzy matching.", "name": "fuzzy_prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "fuzzy_rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "If `true`, edits for fuzzy matching include transpositions of two adjacent characters (for example, `ab` to `ba`).", "name": "fuzzy_transpositions", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based errors, such as providing a text value for a numeric field, are ignored.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of automaton states required for the query.", "name": "max_determinized_states", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum number of clauses that must match for a document to be returned.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Maximum number of positions allowed between matching tokens for phrases.", "name": "phrase_slop", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Query string you wish to parse and use for search.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Analyzer used to convert quoted text in the query string into tokens.\nFor quoted text, this parameter overrides the analyzer specified in the `analyzer` parameter.", "name": "quote_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Suffix appended to quoted text in the query string.\nYou can use this suffix to use a different analysis method for exact matches.", "name": "quote_field_suffix", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "How to combine the queries generated from the individual search terms in the resulting `dis_max` query.", "name": "tie_breaker", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC.", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } }, { "description": "Determines how the query matches and scores documents.", "name": "type", "required": false, "serverDefault": "'best_fields'", "type": { "kind": "instance_of", "type": { "name": "TextQueryType", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L598-L721" }, { "kind": "interface", "name": { "name": "RandomScoreFunction", "namespace": "_types.query_dsl" }, "properties": [ { "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "seed", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "_types/query_dsl/compound.ts#L144-L147" }, { "kind": "type_alias", "codegenNames": [ "untyped", "date", "number", "term" ], "extDocId": "query-dsl-range-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query", "name": { "name": "RangeQuery", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/term.ts#L176-L186", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "UntypedRangeQuery", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "DateRangeQuery", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "NumberRangeQuery", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "TermRangeQuery", "namespace": "_types.query_dsl" } } ] }, "variants": { "kind": "untagged", "untypedVariant": { "name": "UntypedRangeQuery", "namespace": "_types.query_dsl" } } }, { "kind": "interface", "generics": [ { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } ], "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "RangeQueryBase", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Indicates how the range query matches values for `range` fields.", "name": "relation", "required": false, "serverDefault": "intersects", "type": { "kind": "instance_of", "type": { "name": "RangeRelation", "namespace": "_types.query_dsl" } } }, { "description": "Greater than.", "name": "gt", "required": false, "type": { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } } }, { "description": "Greater than or equal to.", "name": "gte", "required": false, "type": { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } } }, { "description": "Less than.", "name": "lt", "required": false, "type": { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } } }, { "description": "Less than or equal to.", "name": "lte", "required": false, "type": { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } } }, { "deprecation": { "description": "Use gte or gt instead", "version": "8.16.0" }, "name": "from", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "deprecation": { "description": "Use lte or lt instead", "version": "8.16.0" }, "name": "to", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "T", "namespace": "_types.query_dsl.RangeQueryBase" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "_types/query_dsl/term.ts#L122-L148" }, { "kind": "enum", "members": [ { "description": "Matches documents with a range field value entirely within the query’s range.", "name": "within" }, { "description": "Matches documents with a range field value that entirely contains the query’s range.", "name": "contains" }, { "description": "Matches documents with a range field value that intersects the query’s range.", "name": "intersects" } ], "name": { "name": "RangeRelation", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/term.ts#L188-L201" }, { "kind": "interface", "name": { "name": "RankFeatureFunction", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/specialized.ts#L280-L280" }, { "kind": "interface", "inherits": { "type": { "name": "RankFeatureFunction", "namespace": "_types.query_dsl" } }, "name": { "name": "RankFeatureFunctionLinear", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/specialized.ts#L282-L282" }, { "kind": "interface", "inherits": { "type": { "name": "RankFeatureFunction", "namespace": "_types.query_dsl" } }, "name": { "name": "RankFeatureFunctionLogarithm", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Configurable scaling factor.", "name": "scaling_factor", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L284-L289" }, { "kind": "interface", "inherits": { "type": { "name": "RankFeatureFunction", "namespace": "_types.query_dsl" } }, "name": { "name": "RankFeatureFunctionSaturation", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Configurable pivot value so that the result will be less than 0.5.", "name": "pivot", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L291-L296" }, { "kind": "interface", "inherits": { "type": { "name": "RankFeatureFunction", "namespace": "_types.query_dsl" } }, "name": { "name": "RankFeatureFunctionSigmoid", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Configurable pivot value so that the result will be less than 0.5.", "name": "pivot", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Configurable Exponent.", "name": "exponent", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L298-L307" }, { "kind": "interface", "extDocId": "query-dsl-rank-feature-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-rank-feature-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "RankFeatureQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "`rank_feature` or `rank_features` field used to boost relevance scores.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Saturation function used to boost relevance scores based on the value of the rank feature `field`.", "name": "saturation", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankFeatureFunctionSaturation", "namespace": "_types.query_dsl" } } }, { "description": "Logarithmic function used to boost relevance scores based on the value of the rank feature `field`.", "name": "log", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankFeatureFunctionLogarithm", "namespace": "_types.query_dsl" } } }, { "description": "Linear function used to boost relevance scores based on the value of the rank feature `field`.", "name": "linear", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankFeatureFunctionLinear", "namespace": "_types.query_dsl" } } }, { "description": "Sigmoid function used to boost relevance scores based on the value of the rank feature `field`.", "name": "sigmoid", "required": false, "type": { "kind": "instance_of", "type": { "name": "RankFeatureFunctionSigmoid", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L309-L335" }, { "kind": "interface", "extDocId": "query-dsl-regexp-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-regexp-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "RegexpQuery", "namespace": "_types.query_dsl" }, "properties": [ { "availability": { "serverless": {}, "stack": { "since": "7.10.0" } }, "description": "Allows case insensitive matching of the regular expression value with the indexed field values when set to `true`.\nWhen `false`, case sensitivity of matching depends on the underlying field’s mapping.", "name": "case_insensitive", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Enables optional operators for the regular expression.", "docId": "regexp-syntax", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/regexp-syntax", "name": "flags", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Maximum number of automaton states required for the query.", "name": "max_determinized_states", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "Regular expression for terms you wish to find in the provided field.", "docId": "regexp-syntax", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/regexp-syntax", "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "value", "specLocation": "_types/query_dsl/term.ts#L203-L236" }, { "kind": "interface", "extDocId": "query-dsl-rule-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-rule-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "RuleQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "organic", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "ruleset_ids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "name": "match_criteria", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "_types/query_dsl/specialized.ts#L398-L405" }, { "kind": "interface", "extDocId": "query-dsl-script-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-script-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "ScriptQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Contains a script to run as a query.\nThis script must return a boolean value, `true` or `false`.", "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L337-L346" }, { "kind": "interface", "name": { "name": "ScriptScoreFunction", "namespace": "_types.query_dsl" }, "properties": [ { "description": "A script that computes a score.", "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/compound.ts#L137-L142" }, { "kind": "interface", "extDocId": "query-dsl-script-score-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-script-score-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "ScriptScoreQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Documents with a score lower than this floating point number are excluded from the search results.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Query used to return documents.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Script used to compute the score of documents returned by the query.\nImportant: final relevance scores from the `script_score` query cannot be negative.", "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L348-L365" }, { "kind": "interface", "extDocId": "query-dsl-semantic-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-semantic-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SemanticQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The field to query, which must be a semantic_text field type", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The query text", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/SemanticQuery.ts#L22-L30" }, { "kind": "interface", "name": { "name": "ShapeFieldQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Queries using a pre-indexed shape.", "name": "indexed_shape", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldLookup", "namespace": "_types.query_dsl" } } }, { "description": "Spatial relation between the query shape and the document shape.", "name": "relation", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoShapeRelation", "namespace": "_types" } } }, { "description": "Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) format.", "name": "shape", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoShape", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L383-L396" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "ShapeFieldQuery", "namespace": "_types.query_dsl" } } ], "meta": { "key": "field", "value": "shape" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "extDocId": "query-dsl-shape-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-shape-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "ShapeQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "When set to `true` the query ignores an unmapped field and will not match any documents.", "name": "ignore_unmapped", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/specialized.ts#L367-L381" }, { "kind": "enum", "members": [ { "description": "Disables all operators.", "name": "NONE" }, { "description": "Enables the `+` AND operator.", "name": "AND" }, { "description": "Enables the `-` NOT operator.", "name": "NOT" }, { "description": "Enables the `\\|` OR operator.", "name": "OR" }, { "description": "Enables the `*` prefix operator.", "name": "PREFIX" }, { "description": "Enables the `\"` quotes operator used to search for phrases.", "name": "PHRASE" }, { "description": "Enables the `(` and `)` operators to control operator precedence.", "name": "PRECEDENCE" }, { "description": "Enables `\\` as an escape character.", "name": "ESCAPE" }, { "description": "Enables whitespace as split characters.", "name": "WHITESPACE" }, { "description": "Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching.", "name": "FUZZY" }, { "description": "Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens.\nSynonymous to `SLOP`.", "name": "NEAR" }, { "description": "Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens.\nSynonymous to `NEAR`.", "name": "SLOP" }, { "description": "Enables all optional operators.", "name": "ALL" } ], "name": { "name": "SimpleQueryStringFlag", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/fulltext.ts#L729-L784" }, { "kind": "type_alias", "description": "Query flags can be either a single flag or a combination of flags, e.g. `OR|AND|PREFIX`", "docId": "supported-flags", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query#supported-flags", "name": { "name": "SimpleQueryStringFlags", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/fulltext.ts#L723-L727", "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "SimpleQueryStringFlag", "namespace": "_types.query_dsl" } } ], "type": { "name": "PipeSeparatedFlags", "namespace": "_spec_utils" } } }, { "kind": "interface", "extDocId": "query-dsl-simple-query-string-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SimpleQueryStringQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Analyzer used to convert text in the query string into tokens.", "docId": "analysis", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the query attempts to analyze wildcard terms in the query string.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the parser creates a match_phrase query for each multi-position token.", "name": "auto_generate_synonyms_phrase_query", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Default boolean logic used to interpret text in the query string if no operators are specified.", "name": "default_operator", "required": false, "serverDefault": "'or'", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "Array of fields you wish to search.\nAccepts wildcard expressions.\nYou also can boost relevance scores for matches to particular fields using a caret (`^`) notation.\nDefaults to the `index.query.default_field index` setting, which has a default value of `*`.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "List of enabled operators for the simple query string syntax.", "name": "flags", "required": false, "serverDefault": "ALL", "type": { "kind": "instance_of", "type": { "name": "SimpleQueryStringFlags", "namespace": "_types.query_dsl" } } }, { "description": "Maximum number of terms to which the query expands for fuzzy matching.", "name": "fuzzy_max_expansions", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of beginning characters left unchanged for fuzzy matching.", "name": "fuzzy_prefix_length", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, edits for fuzzy matching include transpositions of two adjacent characters (for example, `ab` to `ba`).", "name": "fuzzy_transpositions", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based errors, such as providing a text value for a numeric field, are ignored.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Minimum number of clauses that must match for a document to be returned.", "docId": "query-dsl-minimum-should-match", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-minimum-should-match", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Query string in the simple query string syntax you wish to parse and use for search.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Suffix appended to quoted text in the query string.", "name": "quote_field_suffix", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/fulltext.ts#L786-L854" }, { "kind": "interface", "extDocId": "query-dsl-span-containing-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-containing-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanContainingQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Can be any span query.\nMatching spans from `big` that contain matches from `little` are returned.", "name": "big", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } }, { "description": "Can be any span query.\nMatching spans from `big` that contain matches from `little` are returned.", "name": "little", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/span.ts#L25-L39" }, { "kind": "interface", "extDocId": "query-dsl-span-field-masking-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-field-masking-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanFieldMaskingQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/span.ts#L41-L47" }, { "kind": "interface", "extDocId": "query-dsl-span-first-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-first-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanFirstQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Controls the maximum end position permitted in a match.", "name": "end", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Can be any other span type query.", "name": "match", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/span.ts#L49-L61" }, { "kind": "type_alias", "description": "Can only be used as a clause in a span_near query.", "name": { "name": "SpanGapQuery", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/span.ts#L63-L65", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "kind": "interface", "extDocId": "query-dsl-span-multi-term-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-multi-term-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanMultiTermQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Should be a multi term query (one of `wildcard`, `fuzzy`, `prefix`, `range`, or `regexp` query).", "name": "match", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/span.ts#L67-L75" }, { "kind": "interface", "extDocId": "query-dsl-span-near-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-near-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanNearQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Array of one or more other span type queries.", "name": "clauses", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Controls whether matches are required to be in-order.", "name": "in_order", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls the maximum number of intervening unmatched positions permitted.", "name": "slop", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/span.ts#L77-L93" }, { "kind": "interface", "extDocId": "query-dsl-span-not-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-not-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanNotQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The number of tokens from within the include span that can’t have overlap with the exclude span.\nEquivalent to setting both `pre` and `post`.", "name": "dist", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Span query whose matches must not overlap those returned.", "name": "exclude", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } }, { "description": "Span query whose matches are filtered.", "name": "include", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } }, { "description": "The number of tokens after the include span that can’t have overlap with the exclude span.", "name": "post", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of tokens before the include span that can’t have overlap with the exclude span.", "name": "pre", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/span.ts#L95-L122" }, { "kind": "interface", "extDocId": "query-dsl-span-or-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanOrQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Array of one or more other span type queries.", "name": "clauses", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } } } ], "specLocation": "_types/query_dsl/span.ts#L124-L132" }, { "kind": "interface", "name": { "name": "SpanQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Accepts a list of span queries, but only returns those spans which also match a second span query.", "name": "span_containing", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanContainingQuery", "namespace": "_types.query_dsl" } } }, { "description": "Allows queries like `span_near` or `span_or` across different fields.", "name": "span_field_masking", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanFieldMaskingQuery", "namespace": "_types.query_dsl" } } }, { "description": "Accepts another span query whose matches must appear within the first N positions of the field.", "name": "span_first", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanFirstQuery", "namespace": "_types.query_dsl" } } }, { "name": "span_gap", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanGapQuery", "namespace": "_types.query_dsl" } } }, { "description": "Wraps a `term`, `range`, `prefix`, `wildcard`, `regexp`, or `fuzzy` query.", "name": "span_multi", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanMultiTermQuery", "namespace": "_types.query_dsl" } } }, { "description": "Accepts multiple span queries whose matches must be within the specified distance of each other, and possibly in the same order.", "name": "span_near", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanNearQuery", "namespace": "_types.query_dsl" } } }, { "description": "Wraps another span query, and excludes any documents which match that query.", "name": "span_not", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanNotQuery", "namespace": "_types.query_dsl" } } }, { "description": "Combines multiple span queries and returns documents which match any of the specified queries.", "name": "span_or", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanOrQuery", "namespace": "_types.query_dsl" } } }, { "description": "The equivalent of the `term` query but for use with other span queries.", "name": "span_term", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "SpanTermQuery", "namespace": "_types.query_dsl" } } } }, { "description": "The result from a single span query is returned as long is its span falls within the spans returned by a list of other span queries.", "name": "span_within", "required": false, "type": { "kind": "instance_of", "type": { "name": "SpanWithinQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/span.ts#L159-L201", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "extDocId": "query-dsl-span-term-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-term-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanTermQuery", "namespace": "_types.query_dsl" }, "properties": [ { "aliases": [ "term" ], "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } ], "shortcutProperty": "value", "specLocation": "_types/query_dsl/span.ts#L134-L141" }, { "kind": "interface", "extDocId": "query-dsl-span-within-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-span-within-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SpanWithinQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Can be any span query.\nMatching spans from `little` that are enclosed within `big` are returned.", "name": "big", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } }, { "description": "Can be any span query.\nMatching spans from `little` that are enclosed within `big` are returned.", "name": "little", "required": true, "type": { "kind": "instance_of", "type": { "name": "SpanQuery", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/span.ts#L143-L157" }, { "kind": "interface", "extDocId": "query-dsl-sparse-vector-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-sparse-vector-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "SparseVectorQuery", "namespace": "_types.query_dsl" }, "properties": [ { "containerProperty": true, "description": "The name of the field that contains the token-weight pairs to be searched against.\nThis field must be a mapped sparse_vector field.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Dictionary of precomputed sparse vectors and their associated weights.\nOnly one of inference_id or query_vector may be supplied in a request.", "name": "query_vector", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } }, { "description": "The inference ID to use to convert the query text into token-weight pairs.\nIt must be the same inference ID that was used to create the tokens from the input text.\nOnly one of inference_id and query_vector is allowed.\nIf inference_id is specified, query must also be specified.\nOnly one of inference_id or query_vector may be supplied in a request.", "name": "inference_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "containerProperty": true, "description": "The query text you want to use for search.\nIf inference_id is specified, query must also be specified.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.15.0", "stability": "experimental" } }, "containerProperty": true, "description": "Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.\nIf prune is true but the pruning_config is not specified, pruning will occur but default values will be used.\nDefault: false", "name": "prune", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.15.0", "stability": "experimental" } }, "containerProperty": true, "description": "Optional pruning configuration.\nIf enabled, this will omit non-significant tokens from the query in order to improve query performance.\nThis is only used if prune is set to true.\nIf prune is set to true but pruning_config is not specified, default values will be used.", "name": "pruning_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenPruningConfig", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/SparseVectorQuery.ts#L26-L80", "variants": { "kind": "container" } }, { "kind": "interface", "extDocId": "query-dsl-term-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-term-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "TermQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Term you wish to find in the provided field.", "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.10.0" } }, "description": "Allows ASCII case insensitive matching of the value with the indexed field values when set to `true`.\nWhen `false`, the case sensitivity of matching depends on the underlying field’s mapping.", "name": "case_insensitive", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "shortcutProperty": "value", "specLocation": "_types/query_dsl/term.ts#L238-L255" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ], "type": { "name": "RangeQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "TermRangeQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/term.ts#L174-L174" }, { "kind": "interface", "name": { "name": "TermsLookup", "namespace": "_types.query_dsl" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/term.ts#L270-L275" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "TermsQueryField", "namespace": "_types.query_dsl" } } ], "meta": { "key": "field", "value": "terms" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "extDocId": "query-dsl-terms-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "TermsQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/term.ts#L257-L263" }, { "kind": "type_alias", "codegenNames": [ "value", "lookup" ], "name": { "name": "TermsQueryField", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/term.ts#L265-L268", "type": { "kind": "union_of", "items": [ { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } }, { "kind": "instance_of", "type": { "name": "TermsLookup", "namespace": "_types.query_dsl" } } ] } }, { "kind": "interface", "extDocId": "query-dsl-terms-set-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-set-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "TermsSetQuery", "namespace": "_types.query_dsl" }, "properties": [ { "availability": { "serverless": {}, "stack": { "since": "8.10.0" } }, "description": "Specification describing number of matching terms required to return a document.", "name": "minimum_should_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "MinimumShouldMatch", "namespace": "_types" } } }, { "description": "Numeric field containing the number of matching terms required to return a document.", "name": "minimum_should_match_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Custom script containing the number of matching terms required to return a document.", "name": "minimum_should_match_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Array of terms you wish to find in the provided field.", "name": "terms", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } } ], "specLocation": "_types/query_dsl/term.ts#L277-L299" }, { "kind": "interface", "extDocId": "query-dsl-text-expansion-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-text-expansion-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "TextExpansionQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The text expansion NLP model to use", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The query text", "name": "model_text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "experimental" }, "stack": { "since": "8.13.0", "stability": "experimental" } }, "description": "Token pruning configurations", "name": "pruning_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenPruningConfig", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/TextExpansionQuery.ts#L23-L36" }, { "kind": "enum", "members": [ { "description": "Finds documents that match any field, but uses the `_score` from the best field.", "name": "best_fields" }, { "description": "Finds documents that match any field and combines the `_score` from each field.", "name": "most_fields" }, { "description": "Treats fields with the same analyzer as though they were one big field.\nLooks for each word in any field.", "name": "cross_fields" }, { "description": "Runs a `match_phrase` query on each field and uses the `_score` from the best field.", "name": "phrase" }, { "description": "Runs a `match_phrase_prefix` query on each field and uses the `_score` from the best field.", "name": "phrase_prefix" }, { "description": "Creates a `match_bool_prefix` query on each field and combines the `_score` from each field.", "name": "bool_prefix" } ], "name": { "name": "TextQueryType", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/fulltext.ts#L559-L585" }, { "kind": "interface", "name": { "name": "TokenPruningConfig", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.", "name": "tokens_freq_ratio_threshold", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Tokens whose weight is less than this threshold are considered nonsignificant and pruned.", "name": "tokens_weight_threshold", "required": false, "serverDefault": 0.4, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Whether to only score pruned tokens, vs only scoring kept tokens.", "name": "only_score_pruned_tokens", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/TokenPruningConfig.ts#L22-L35" }, { "kind": "interface", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "TypeQuery", "namespace": "_types.query_dsl" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/term.ts#L301-L303" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "inherits": { "generics": [ { "kind": "user_defined_value" }, { "kind": "user_defined_value" } ], "type": { "name": "DecayFunctionBase", "namespace": "_types.query_dsl" } }, "name": { "name": "UntypedDecayFunction", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/compound.ts#L204-L207" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "user_defined_value" }, { "kind": "user_defined_value" } ], "type": { "name": "DistanceFeatureQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "UntypedDistanceFeatureQuery", "namespace": "_types.query_dsl" }, "properties": [], "specLocation": "_types/query_dsl/specialized.ts#L61-L64" }, { "kind": "interface", "inherits": { "generics": [ { "kind": "user_defined_value" } ], "type": { "name": "RangeQueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "UntypedRangeQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "Date format used to convert `date` values in the query.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateFormat", "namespace": "_types" } } }, { "description": "Coordinated Universal Time (UTC) offset or IANA time zone used to convert `date` values in the query to UTC.", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ], "specLocation": "_types/query_dsl/term.ts#L150-L159" }, { "kind": "interface", "extDocId": "query-dsl-weighted-tokens-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-weighted-tokens-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "WeightedTokensQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "The tokens representing this query", "name": "tokens", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } }, { "description": "Token pruning configurations", "name": "pruning_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenPruningConfig", "namespace": "_types.query_dsl" } } } ], "specLocation": "_types/query_dsl/WeightedTokensQuery.ts#L25-L33" }, { "kind": "interface", "extDocId": "query-dsl-wildcard-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wildcard-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "WildcardQuery", "namespace": "_types.query_dsl" }, "properties": [ { "availability": { "serverless": {}, "stack": { "since": "7.10.0" } }, "description": "Allows case insensitive matching of the pattern with the indexed field values when set to true. Default is false which means the case sensitivity of matching depends on the underlying field’s mapping.", "name": "case_insensitive", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Method used to rewrite the query.", "docId": "query-dsl-multi-term-rewrite", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-multi-term-rewrite", "name": "rewrite", "required": false, "type": { "kind": "instance_of", "type": { "name": "MultiTermQueryRewrite", "namespace": "_types" } } }, { "description": "Wildcard pattern for terms you wish to find in the provided field. Required, when wildcard is not set.", "name": "value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Wildcard pattern for terms you wish to find in the provided field. Required, when value is not set.", "name": "wildcard", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "value", "specLocation": "_types/query_dsl/term.ts#L305-L325" }, { "kind": "interface", "extDocId": "query-dsl-wrapper-query", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wrapper-query", "inherits": { "type": { "name": "QueryBase", "namespace": "_types.query_dsl" } }, "name": { "name": "WrapperQuery", "namespace": "_types.query_dsl" }, "properties": [ { "description": "A base64 encoded query.\nThe binary data format can be any of JSON, YAML, CBOR or SMILE encodings", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "_types/query_dsl/abstractions.ts#L508-L517" }, { "kind": "enum", "members": [ { "description": "Returns all documents, similar to a `match_all` query.", "name": "all" }, { "description": "No documents are returned if the `analyzer` removes all tokens.", "name": "none" } ], "name": { "name": "ZeroTermsQuery", "namespace": "_types.query_dsl" }, "specLocation": "_types/query_dsl/fulltext.ts#L587-L596" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "async_search._types.AsyncSearch" } ], "name": { "name": "AsyncSearch", "namespace": "async_search._types" }, "properties": [ { "description": "Partial aggregations results, coming from the shards that have already completed running the query.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } } }, { "name": "_clusters", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterStatistics", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "async_search._types.AsyncSearch" } } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } }, { "name": "max_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Indicates how many reductions of the results have been performed.\nIf this number increases compared to the last retrieved results for a get asynch search request, you can expect additional results included in the search response.", "name": "num_reduce_phases", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "Profile", "namespace": "_global.search._types" } } }, { "name": "pit_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } }, { "description": "Indicates how many shards have run the query.\nNote that in order for shard results to be included in the search response, they need to be reduced first.", "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "suggest", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "SuggestionName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "async_search._types.AsyncSearch" } } ], "type": { "name": "Suggest", "namespace": "_global.search._types" } } } } }, { "name": "terminated_early", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "async_search/_types/AsyncSearch.ts#L30-L56" }, { "kind": "interface", "generics": [ { "name": "TDocument", "namespace": "async_search._types.AsyncSearchDocumentResponseBase" } ], "inherits": { "type": { "name": "AsyncSearchResponseBase", "namespace": "async_search._types" } }, "name": { "name": "AsyncSearchDocumentResponseBase", "namespace": "async_search._types" }, "properties": [ { "name": "response", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "async_search._types.AsyncSearchDocumentResponseBase" } } ], "type": { "name": "AsyncSearch", "namespace": "async_search._types" } } } ], "specLocation": "async_search/_types/AsyncSearchResponseBase.ts#L52-L56" }, { "kind": "interface", "name": { "name": "AsyncSearchResponseBase", "namespace": "async_search._types" }, "properties": [ { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards.\nWhile the query is running, `is_partial` is always set to `true`.", "name": "is_partial", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether the search is still running or has completed.\n\n> info\n> If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though `is_running` is `false`.", "name": "is_running", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates when the async search will expire.", "name": "expiration_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "expiration_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Indicates when the async search completed.\nIt is present only when the search has completed.", "name": "completion_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "completion_time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "async_search/_types/AsyncSearchResponseBase.ts#L24-L51" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an async search.\n\nIf the asynchronous search is still running, it is cancelled.\nOtherwise, the saved search results are deleted.\nIf the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "async_search.delete" }, "path": [ { "description": "A unique identifier for the async search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "async_search/delete/AsyncSearchDeleteRequest.ts#L23-L46" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "async_search.delete" }, "specLocation": "async_search/delete/AsyncSearchDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get async search results.\n\nRetrieve the results of a previously submitted asynchronous search request.\nIf the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "async_search.get" }, "path": [ { "description": "A unique identifier for the async search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The length of time that the async search should be available in the cluster.\nWhen not specified, the `keep_alive` set with the corresponding submit async request will be used.\nOtherwise, it is possible to override the value and extend the validity of the request.\nWhen this period expires, the search, if still running, is cancelled.\nIf the search is completed, its saved results are deleted.", "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specify whether aggregation and suggester names should be prefixed by their respective types in the response", "name": "typed_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies to wait for the search to be completed up until the provided timeout.\nFinal results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.\nBy default no timeout is set meaning that the currently available results will be returned without any additional wait.", "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "async_search/get/AsyncSearchGetRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "async_search.get.Response" } } ], "type": { "name": "AsyncSearchDocumentResponseBase", "namespace": "async_search._types" } } }, "examples": { "AsyncSearchGetResponseExample1": { "description": "A succesful response from `GET /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=`.", "value": "{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_partial\" : false, \n \"is_running\" : false, \n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986, \n \"completion_time_in_millis\" : 1583945903130, \n \"response\" : {\n \"took\" : 12144,\n \"timed_out\" : false,\n \"num_reduce_phases\" : 46, \n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 188, \n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 456433,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [ ]\n },\n \"aggregations\" : { \n \"sale_date\" : {\n \"buckets\" : []\n }\n }\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "async_search.get.Response" } ], "name": { "name": "Response", "namespace": "async_search.get" }, "specLocation": "async_search/get/AsyncSearchGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the async search status.\n\nGet the status of a previously submitted async search request given its identifier, without retrieving search results.\nIf the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to:\n\n* The user or API key that submitted the original async search request.\n* Users that have the `monitor` cluster privilege or greater privileges.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "async_search.status" }, "path": [ { "description": "A unique identifier for the async search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The length of time that the async search needs to be available.\nOngoing async searches and any saved search results are deleted after this period.", "name": "keep_alive", "required": false, "serverDefault": "5d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "async_search/status/AsyncSearchStatusRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "status", "value": { "kind": "instance_of", "type": { "name": "StatusResponseBase", "namespace": "async_search.status" } } }, "examples": { "AsyncSearchStatusResponseExample1": { "description": "A succesful response from `GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=`, which retrieves the status of a previously submitted async search without the results.", "summary": "An active async search", "value": "{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_running\" : true,\n \"is_partial\" : true,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 188, \n \"skipped\" : 0,\n \"failed\" : 0\n }\n}" }, "AsyncSearchStatusResponseExample2": { "description": "A succesful response from `GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=` for an async search that has completed. The status response has an additional `completion_status` field that shows the status code of the completed async search.\n", "summary": "A completed async search", "value": "{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_running\" : false,\n \"is_partial\" : false,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 562,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n\"completion_status\" : 200 \n}" }, "AsyncSearchStatusResponseExample3": { "description": "A response from `GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=` for an async search that has completed with an error. The status response has an additional `completion_status` field that shows the status code of the completed async search.\n", "summary": "A failed async search", "value": "{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_running\" : false,\n \"is_partial\" : true,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 450,\n \"skipped\" : 0,\n \"failed\" : 112\n },\n\"completion_status\" : 503 \n}" } }, "name": { "name": "Response", "namespace": "async_search.status" }, "specLocation": "async_search/status/AsyncSearchStatusResponse.ts#L39-L42" }, { "kind": "interface", "inherits": { "type": { "name": "AsyncSearchResponseBase", "namespace": "async_search._types" } }, "name": { "name": "StatusResponseBase", "namespace": "async_search.status" }, "properties": [ { "description": "The number of shards that have run the query so far.", "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "description": "Metadata about clusters involved in the cross-cluster search.\nIt is not shown for local-only searches.", "name": "_clusters", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterStatistics", "namespace": "_types" } } }, { "description": "If the async search completed, this field shows the status code of the search.\nFor example, `200` indicates that the async search was successfully completed.\n`503` indicates that the async search was completed with an error.", "name": "completion_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "async_search/status/AsyncSearchStatusResponse.ts#L24-L38" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "aliases": [ "aggs" ], "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } }, { "description": "If true, returns detailed information about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Configuration of search extensions defined by Elasticsearch plugins.", "name": "ext", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Starting document offset. By default, you cannot page through more than 10,000\nhits using the from and size parameters. To page through more hits, use the\nsearch_after parameter.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "Highlight", "namespace": "_global.search._types" } } }, { "description": "Number of hits matching the query to count accurately. If true, the exact\nnumber of hits is returned at the cost of some performance. If false, the\nresponse does not include the total number of hits matching the query.\nDefaults to 10,000 hits.", "name": "track_total_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "Boosts the _score of documents from specified indices.", "name": "indices_boost", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } }, { "description": "Array of wildcard (*) patterns. The request returns doc values for field\nnames matching these patterns in the hits.fields property of the response.", "name": "docvalue_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.4.0" } }, "description": "Defines the approximate kNN search to run.", "name": "knn", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "KnnSearch", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "KnnSearch", "namespace": "_types" } } } ] } }, { "description": "Minimum _score for matching documents. Documents with a lower _score are\nnot included in search results and results collected by aggregations.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "post_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines the search definition using the Query DSL.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "rescore", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } } } ] } }, { "description": "Retrieve a script evaluation (based on different fields) for each hit.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } }, { "description": "The number of hits to return. By default, you cannot page through more\nthan 10,000 hits using the from and size parameters. To page through more\nhits, use the search_after parameter.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } }, { "docId": "sort-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "Indicates which source fields are returned for matching documents. These\nfields are returned in the hits._source property of the search response.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "Array of wildcard (*) patterns. The request returns values for field names\nmatching these patterns in the hits.fields property of the response.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "name": "suggest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Suggester", "namespace": "_global.search._types" } } }, { "description": "Maximum number of documents to collect for each shard. If a query reaches this\nlimit, Elasticsearch terminates the query early. Elasticsearch collects documents\nbefore sorting. Defaults to 0, which does not terminate query execution early.", "name": "terminate_after", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Specifies the period of time to wait for a response from each shard. If no response\nis received before the timeout expires, the request fails and returns an error.\nDefaults to no timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If true, calculate and return document scores, even if the scores are not used for sorting.", "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns document version as part of a hit.", "name": "version", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns sequence number and primary term of the last modification\nof each hit. See Optimistic concurrency control.", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of stored fields to return as part of a hit. If no fields are specified,\nno stored fields are included in the response. If this field is specified, the _source\nparameter defaults to false. You can pass _source: true to return both source fields\nand stored fields in the search response.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Limits the search to a point in time (PIT). If you provide a PIT, you\ncannot specify an in the request path.", "name": "pit", "required": false, "type": { "kind": "instance_of", "type": { "name": "PointInTimeReference", "namespace": "_global.search._types" } } }, { "description": "Defines one or more runtime fields in the search request. These fields take\nprecedence over mapped fields with the same name.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "Stats groups to associate with the search. Each group maintains a statistics\naggregation for its associated searches. You can retrieve these stats using\nthe indices stats API.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Run an async search.\n\nWhen the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.\n\nWarning: Asynchronous search does not support scroll or search requests that include only the suggest section.\n\nBy default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.\nThe maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.", "examples": { "AsyncSearchSubmitRequestExample1": { "description": "Perform a search request asynchronously with `POST /sales*/_async_search?size=0`. It accepts the same parameters and request body as the search API.\n", "value": "{\n \"sort\": [\n { \"date\": { \"order\": \"asc\" } }\n ],\n \"aggs\": {\n \"sale_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1d\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "async_search.submit" }, "path": [ { "description": "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Blocks and waits until the search is completed up to a certain timeout.\nWhen the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster.", "name": "wait_for_completion_timeout", "required": false, "serverDefault": "1s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies how long the async search needs to be available.\nOngoing async searches and any saved search results are deleted after this period.", "name": "keep_alive", "required": false, "serverDefault": "5d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`.", "name": "keep_on_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicate if an error should be returned if there is a partial search failure or timeout", "name": "allow_partial_search_results", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analyzer to use for the query string", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specify whether wildcard and prefix queries should be analyzed (default: false)", "name": "analyze_wildcard", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Affects how often partial results become available, which happens whenever shard results are reduced.\nA partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default).", "name": "batched_reduce_size", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The default value is the only supported value.", "name": "ccs_minimize_roundtrips", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default operator for query string query (AND or OR)", "name": "default_operator", "required": false, "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "The field to use as default where no field prefix is given in the query string", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A comma-separated list of fields to return as the docvalue representation of a field for each hit", "name": "docvalue_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Specify whether to return detailed information about score computation as part of a hit", "name": "explain", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled", "name": "ignore_throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", "name": "ignore_unavailable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored", "name": "lenient", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests", "name": "max_concurrent_shard_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specify the node or shard the operation should be performed on (default: random)", "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specify if request cache should be used for this request or not, defaults to true", "name": "request_cache", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A comma-separated list of specific routing values", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Search operation type", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "Specific 'tag' of the request for logging and statistical purposes", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A comma-separated list of stored fields to return as part of a hit", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Specifies which field to use for suggestions.", "name": "suggest_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specify suggest mode", "name": "suggest_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SuggestMode", "namespace": "_types" } } }, { "description": "How many suggestions to return in response", "name": "suggest_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The source text for which the suggestions should be returned.", "name": "suggest_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.", "name": "terminate_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Explicit operation timeout", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number.", "name": "track_total_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "Whether to calculate and return scores even if they are not used for sorting", "name": "track_scores", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify whether aggregation and suggester names should be prefixed by their respective types in the response", "name": "typed_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "name": "rest_total_hits_as_int", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify whether to return document version as part of a hit", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "True or false to return the _source field or not, or a list of fields to return", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "description": "A list of fields to exclude from the returned _source field", "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "A list of fields to extract and return from the _source field", "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Specify whether to return sequence number and primary term of the last modification of each hit", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Query in the Lucene query string syntax", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Number of hits to return (default: 10)", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Starting offset (default: 0)", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A comma-separated list of : pairs", "name": "sort", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L54-L294" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "async_search.submit.Response" } } ], "type": { "name": "AsyncSearchDocumentResponseBase", "namespace": "async_search._types" } } }, "examples": { "AsyncSearchSubmitResponseExample1": { "description": "A successful response when performing search asynchronously.", "value": "{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_partial\" : true,\n \"is_running\" : true,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"response\" : {\n \"took\" : 1122,\n \"timed_out\" : false,\n \"num_reduce_phases\" : 0,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 3,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 157483,\n \"relation\" : \"gte\"\n },\n \"max_score\" : null,\n \"hits\" : [ ]\n }\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "async_search.submit.Response" } ], "name": { "name": "Response", "namespace": "async_search.submit" }, "specLocation": "async_search/submit/AsyncSearchSubmitResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "AutoscalingPolicy", "namespace": "autoscaling._types" }, "properties": [ { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Decider settings.", "extDocId": "autoscaling-deciders", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/autoscaling/autoscaling-deciders", "name": "deciders", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "autoscaling/_types/AutoscalingPolicy.ts#L23-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an autoscaling policy.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "autoscaling.delete_autoscaling_policy" }, "path": [ { "description": "the name of the autoscaling policy", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L54" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "DeleteAutoscalingPolicyResponseExample1": { "description": "This may be a response to either `DELETE /_autoscaling/policy/my_autoscaling_policy` or `DELETE /_autoscaling/policy/*`.\n", "summary": "A successful response of deleting one or more autoscaling policy.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "autoscaling.delete_autoscaling_policy" }, "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "AutoscalingCapacity", "namespace": "autoscaling.get_autoscaling_capacity" }, "properties": [ { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoscalingResources", "namespace": "autoscaling.get_autoscaling_capacity" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoscalingResources", "namespace": "autoscaling.get_autoscaling_capacity" } } } ], "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41" }, { "kind": "interface", "name": { "name": "AutoscalingDecider", "namespace": "autoscaling.get_autoscaling_capacity" }, "properties": [ { "name": "required_capacity", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoscalingCapacity", "namespace": "autoscaling.get_autoscaling_capacity" } } }, { "name": "reason_summary", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reason_details", "required": false, "type": { "kind": "user_defined_value" } } ], "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56" }, { "kind": "interface", "name": { "name": "AutoscalingDeciders", "namespace": "autoscaling.get_autoscaling_capacity" }, "properties": [ { "name": "required_capacity", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoscalingCapacity", "namespace": "autoscaling.get_autoscaling_capacity" } } }, { "name": "current_capacity", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoscalingCapacity", "namespace": "autoscaling.get_autoscaling_capacity" } } }, { "name": "current_nodes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AutoscalingNode", "namespace": "autoscaling.get_autoscaling_capacity" } } } }, { "name": "deciders", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AutoscalingDecider", "namespace": "autoscaling.get_autoscaling_capacity" } } } } ], "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36" }, { "kind": "interface", "name": { "name": "AutoscalingNode", "namespace": "autoscaling.get_autoscaling_capacity" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } } ], "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50" }, { "kind": "interface", "name": { "name": "AutoscalingResources", "namespace": "autoscaling.get_autoscaling_capacity" }, "properties": [ { "name": "storage", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "memory", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the autoscaling capacity.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.\n\nThis API gets the current autoscaling capacity based on the configured autoscaling policy.\nIt will return information to size the cluster appropriately to the current workload.\n\nThe `required_capacity` is calculated as the maximum of the `required_capacity` result of all individual deciders that are enabled for the policy.\n\nThe operator should verify that the `current_nodes` match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.\n\nThe response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required.\nThis information is provided for diagnosis only.\nDo not use this information to make autoscaling decisions.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "autoscaling.get_autoscaling_capacity" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L23-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "policies", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AutoscalingDeciders", "namespace": "autoscaling.get_autoscaling_capacity" } } } } ] }, "examples": { "GetAutoscalingCapacityResponseExample1": { "description": "This may be a response to `GET /_autoscaling/capacity`.", "summary": "A successful response for retrieving the current autoscaling capacity.", "value": "{\n policies: {}\n}" } }, "name": { "name": "Response", "namespace": "autoscaling.get_autoscaling_capacity" }, "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get an autoscaling policy.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "autoscaling.get_autoscaling_policy" }, "path": [ { "description": "the name of the autoscaling policy", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L50" }, { "kind": "response", "body": { "kind": "value", "codegenName": "policy", "value": { "kind": "instance_of", "type": { "name": "AutoscalingPolicy", "namespace": "autoscaling._types" } } }, "examples": { "GetAutoscalingPolicyResponseExample1": { "description": "This may be a response to `GET /_autoscaling/policy/my_autoscaling_policy`.", "summary": "A successful response for retrieving an autoscaling policy.", "value": "{\n \"roles\": ,\n \"deciders\": \n}" } }, "name": { "name": "Response", "namespace": "autoscaling.get_autoscaling_policy" }, "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "policy", "value": { "kind": "instance_of", "type": { "name": "AutoscalingPolicy", "namespace": "autoscaling._types" } } }, "description": "Create or update an autoscaling policy.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.", "examples": { "PutAutoscalingPolicyRequestExample1": { "summary": "Creates or updates an autoscaling policy.", "value": "{\n \"roles\": [],\n \"deciders\": {\n \"fixed\": {\n }\n }\n}" }, "PutAutoscalingPolicyRequestExample2": { "description": "The API method and path for this request: `PUT /_autoscaling/policy/my_autoscaling_policy`. It creates `my_autoscaling_policy` using the fixed autoscaling decider, applying to the set of nodes having (only) the `data_hot` role.", "summary": "Creates an autoscaling policy.", "value": "{\n \"roles\" : [ \"data_hot\" ],\n \"deciders\": {\n \"fixed\": {\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "autoscaling.put_autoscaling_policy" }, "path": [ { "description": "the name of the autoscaling policy", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "PutAutoscalingPolicyResponseExample1": { "summary": "A successful response when creating an autoscaling policy.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "autoscaling.put_autoscaling_policy" }, "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L25" }, { "kind": "enum", "members": [ { "aliases": [ "ae" ], "description": "For open anomaly detection jobs only, contains messages relating to the\nselection of a node to run the job.", "name": "assignment_explanation" }, { "aliases": [ "bc", "bucketsCount" ], "description": "The number of bucket results produced by the job.", "name": "buckets.count" }, { "aliases": [ "btea", "bucketsTimeExpAvg" ], "description": "Exponential moving average of all bucket processing times, in milliseconds.", "name": "buckets.time.exp_avg" }, { "aliases": [ "bteah", "bucketsTimeExpAvgHour" ], "description": "Exponentially-weighted moving average of bucket processing times calculated\nin a 1 hour time window, in milliseconds.", "name": "buckets.time.exp_avg_hour" }, { "aliases": [ "btmax", "bucketsTimeMax" ], "description": "Maximum among all bucket processing times, in milliseconds.", "name": "buckets.time.max" }, { "aliases": [ "btmin", "bucketsTimeMin" ], "description": "Minimum among all bucket processing times, in milliseconds.", "name": "buckets.time.min" }, { "aliases": [ "btt", "bucketsTimeTotal" ], "description": "Sum of all bucket processing times, in milliseconds.", "name": "buckets.time.total" }, { "aliases": [ "db", "dataBuckets" ], "description": "The number of buckets processed.", "name": "data.buckets" }, { "aliases": [ "der", "dataEarliestRecord" ], "description": "The timestamp of the earliest chronologically input document.", "name": "data.earliest_record" }, { "aliases": [ "deb", "dataEmptyBuckets" ], "description": "The number of buckets which did not contain any data.", "name": "data.empty_buckets" }, { "aliases": [ "dib", "dataInputBytes" ], "description": "The number of bytes of input data posted to the anomaly detection job.", "name": "data.input_bytes" }, { "aliases": [ "dif", "dataInputFields" ], "description": "The total number of fields in input documents posted to the anomaly\ndetection job. This count includes fields that are not used in the analysis.\nHowever, be aware that if you are using a datafeed, it extracts only the\nrequired fields from the documents it retrieves before posting them to the job.", "name": "data.input_fields" }, { "aliases": [ "dir", "dataInputRecords" ], "description": "The number of input documents posted to the anomaly detection job.", "name": "data.input_records" }, { "aliases": [ "did", "dataInvalidDates" ], "description": "The number of input documents with either a missing date field or a date\nthat could not be parsed.", "name": "data.invalid_dates" }, { "aliases": [ "dl", "dataLast" ], "description": "The timestamp at which data was last analyzed, according to server time.", "name": "data.last" }, { "aliases": [ "dleb", "dataLastEmptyBucket" ], "description": "The timestamp of the last bucket that did not contain any data.", "name": "data.last_empty_bucket" }, { "aliases": [ "dlsb", "dataLastSparseBucket" ], "description": "The timestamp of the last bucket that was considered sparse.", "name": "data.last_sparse_bucket" }, { "aliases": [ "dlr", "dataLatestRecord" ], "description": "The timestamp of the latest chronologically input document.", "name": "data.latest_record" }, { "aliases": [ "dmf", "dataMissingFields" ], "description": "The number of input documents that are missing a field that the anomaly\ndetection job is configured to analyze. Input documents with missing fields\nare still processed because it is possible that not all fields are missing.", "name": "data.missing_fields" }, { "aliases": [ "doot", "dataOutOfOrderTimestamps" ], "description": "The number of input documents that have a timestamp chronologically\npreceding the start of the current anomaly detection bucket offset by the\nlatency window. This information is applicable only when you provide data\nto the anomaly detection job by using the post data API. These out of order\ndocuments are discarded, since jobs require time series data to be in\nascending chronological order.", "name": "data.out_of_order_timestamps" }, { "aliases": [ "dpf", "dataProcessedFields" ], "description": "The total number of fields in all the documents that have been processed by\nthe anomaly detection job. Only fields that are specified in the detector\nconfiguration object contribute to this count. The timestamp is not\nincluded in this count.", "name": "data.processed_fields" }, { "aliases": [ "dpr", "dataProcessedRecords" ], "description": "The number of input documents that have been processed by the anomaly\ndetection job. This value includes documents with missing fields, since\nthey are nonetheless analyzed. If you use datafeeds and have aggregations\nin your search query, the processed record count is the number of\naggregation results processed, not the number of Elasticsearch documents.", "name": "data.processed_records" }, { "aliases": [ "dsb", "dataSparseBuckets" ], "description": "The number of buckets that contained few data points compared to the\nexpected number of data points.", "name": "data.sparse_buckets" }, { "aliases": [ "fmavg", "forecastsMemoryAvg" ], "description": "The average memory usage in bytes for forecasts related to the anomaly\ndetection job.", "name": "forecasts.memory.avg" }, { "aliases": [ "fmmax", "forecastsMemoryMax" ], "description": "The maximum memory usage in bytes for forecasts related to the anomaly\ndetection job.", "name": "forecasts.memory.max" }, { "aliases": [ "fmmin", "forecastsMemoryMin" ], "description": "The minimum memory usage in bytes for forecasts related to the anomaly\ndetection job.", "name": "forecasts.memory.min" }, { "aliases": [ "fmt", "forecastsMemoryTotal" ], "description": "The total memory usage in bytes for forecasts related to the anomaly\ndetection job.", "name": "forecasts.memory.total" }, { "aliases": [ "fravg", "forecastsRecordsAvg" ], "description": "The average number of `m`odel_forecast` documents written for forecasts\nrelated to the anomaly detection job.", "name": "forecasts.records.avg" }, { "aliases": [ "frmax", "forecastsRecordsMax" ], "description": "The maximum number of `model_forecast` documents written for forecasts\nrelated to the anomaly detection job.", "name": "forecasts.records.max" }, { "aliases": [ "frmin", "forecastsRecordsMin" ], "description": "The minimum number of `model_forecast` documents written for forecasts\nrelated to the anomaly detection job.", "name": "forecasts.records.min" }, { "aliases": [ "frt", "forecastsRecordsTotal" ], "description": "The total number of `model_forecast` documents written for forecasts\nrelated to the anomaly detection job.", "name": "forecasts.records.total" }, { "aliases": [ "ftavg", "forecastsTimeAvg" ], "description": "The average runtime in milliseconds for forecasts related to the anomaly\ndetection job.", "name": "forecasts.time.avg" }, { "aliases": [ "ftmax", "forecastsTimeMax" ], "description": "The maximum runtime in milliseconds for forecasts related to the anomaly\ndetection job.", "name": "forecasts.time.max" }, { "aliases": [ "ftmin", "forecastsTimeMin" ], "description": "The minimum runtime in milliseconds for forecasts related to the anomaly\ndetection job.", "name": "forecasts.time.min" }, { "aliases": [ "ftt", "forecastsTimeTotal" ], "description": "The total runtime in milliseconds for forecasts related to the anomaly\ndetection job.", "name": "forecasts.time.total" }, { "aliases": [ "ft", "forecastsTotal" ], "description": "The number of individual forecasts currently available for the job.", "name": "forecasts.total" }, { "description": "Identifier for the anomaly detection job.", "name": "id" }, { "aliases": [ "mbaf", "modelBucketAllocationFailures" ], "description": "The number of buckets for which new entities in incoming data were not\nprocessed due to insufficient model memory.", "name": "model.bucket_allocation_failures" }, { "aliases": [ "mbf", "modelByFields" ], "description": "The number of by field values that were analyzed by the models. This value\nis cumulative for all detectors in the job.", "name": "model.by_fields" }, { "aliases": [ "mb", "modelBytes" ], "description": "The number of bytes of memory used by the models. This is the maximum value\nsince the last time the model was persisted. If the job is closed, this\nvalue indicates the latest size.", "name": "model.bytes" }, { "aliases": [ "mbe", "modelBytesExceeded" ], "description": "The number of bytes over the high limit for memory usage at the last\nallocation failure.", "name": "model.bytes_exceeded" }, { "aliases": [ "mcs", "modelCategorizationStatus" ], "description": "The status of categorization for the job: `ok` or `warn`. If `ok`,\ncategorization is performing acceptably well (or not being used at all). If\n`warn`, categorization is detecting a distribution of categories that\nsuggests the input data is inappropriate for categorization. Problems could\nbe that there is only one category, more than 90% of categories are rare,\nthe number of categories is greater than 50% of the number of categorized\ndocuments, there are no frequently matched categories, or more than 50% of\ncategories are dead.", "name": "model.categorization_status" }, { "aliases": [ "mcdc", "modelCategorizedDocCount" ], "description": "The number of documents that have had a field categorized.", "name": "model.categorized_doc_count" }, { "aliases": [ "mdcc", "modelDeadCategoryCount" ], "description": "The number of categories created by categorization that will never be\nassigned again because another category’s definition makes it a superset of\nthe dead category. Dead categories are a side effect of the way\ncategorization has no prior training.", "name": "model.dead_category_count" }, { "aliases": [ "mdcc", "modelFailedCategoryCount" ], "description": "The number of times that categorization wanted to create a new category but\ncouldn’t because the job had hit its model memory limit. This count does\nnot track which specific categories failed to be created. Therefore, you\ncannot use this value to determine the number of unique categories that\nwere missed.", "name": "model.failed_category_count" }, { "aliases": [ "mfcc", "modelFrequentCategoryCount" ], "description": "The number of categories that match more than 1% of categorized documents.", "name": "model.frequent_category_count" }, { "aliases": [ "mlt", "modelLogTime" ], "description": "The timestamp when the model stats were gathered, according to server time.", "name": "model.log_time" }, { "aliases": [ "mml", "modelMemoryLimit" ], "description": "The timestamp when the model stats were gathered, according to server time.", "name": "model.memory_limit" }, { "aliases": [ "mms", "modelMemoryStatus" ], "description": "The status of the mathematical models: `ok`, `soft_limit`, or `hard_limit`.\nIf `ok`, the models stayed below the configured value. If `soft_limit`, the\nmodels used more than 60% of the configured memory limit and older unused\nmodels will be pruned to free up space. Additionally, in categorization jobs\nno further category examples will be stored. If `hard_limit`, the models\nused more space than the configured memory limit. As a result, not all\nincoming data was processed.", "name": "model.memory_status" }, { "aliases": [ "mof", "modelOverFields" ], "description": "The number of over field values that were analyzed by the models. This\nvalue is cumulative for all detectors in the job.", "name": "model.over_fields" }, { "aliases": [ "mpf", "modelPartitionFields" ], "description": "The number of partition field values that were analyzed by the models. This\nvalue is cumulative for all detectors in the job.", "name": "model.partition_fields" }, { "aliases": [ "mrcc", "modelRareCategoryCount" ], "description": "The number of categories that match just one categorized document.", "name": "model.rare_category_count" }, { "aliases": [ "mt", "modelTimestamp" ], "description": "The timestamp of the last record when the model stats were gathered.", "name": "model.timestamp" }, { "aliases": [ "mtcc", "modelTotalCategoryCount" ], "description": "The number of categories created by categorization.", "name": "model.total_category_count" }, { "aliases": [ "na", "nodeAddress" ], "description": "The network address of the node that runs the job. This information is\navailable only for open jobs.", "name": "node.address" }, { "aliases": [ "ne", "nodeEphemeralId" ], "description": "The ephemeral ID of the node that runs the job. This information is\navailable only for open jobs.", "name": "node.ephemeral_id" }, { "aliases": [ "ni", "nodeId" ], "description": "The unique identifier of the node that runs the job. This information is\navailable only for open jobs.", "name": "node.id" }, { "aliases": [ "nn", "nodeName" ], "description": "The name of the node that runs the job. This information is available only\nfor open jobs.", "name": "node.name" }, { "aliases": [ "ot" ], "description": "For open jobs only, the elapsed time for which the job has been open.", "name": "opened_time" }, { "aliases": [ "s" ], "description": "The status of the anomaly detection job: `closed`, `closing`, `failed`,\n`opened`, or `opening`. If `closed`, the job finished successfully with its\nmodel state persisted. The job must be opened before it can accept further\ndata. If `closing`, the job close action is in progress and has not yet\ncompleted. A closing job cannot accept further data. If `failed`, the job\ndid not finish successfully due to an error. This situation can occur due\nto invalid input data, a fatal error occurring during the analysis, or an\nexternal interaction such as the process being killed by the Linux out of\nmemory (OOM) killer. If the job had irrevocably failed, it must be force\nclosed and then deleted. If the datafeed can be corrected, the job can be\nclosed and then re-opened. If `opened`, the job is available to receive and\nprocess data. If `opening`, the job open action is in progress and has not\nyet completed.", "name": "state" } ], "name": { "name": "CatAnomalyDetectorColumn", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L32-L401" }, { "kind": "type_alias", "name": { "name": "CatAnonalyDetectorColumns", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L402-L404", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CatAnomalyDetectorColumn", "namespace": "cat._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CatAnomalyDetectorColumn", "namespace": "cat._types" } } } ] } }, { "kind": "enum", "members": [ { "aliases": [ "assignment_explanation" ], "description": "For started datafeeds only, contains messages relating to the selection of\na node.", "name": "ae" }, { "aliases": [ "buckets.count", "bucketsCount" ], "description": "The number of buckets processed.", "name": "bc" }, { "description": "A numerical character string that uniquely identifies the datafeed.", "name": "id" }, { "aliases": [ "node.address", "nodeAddress" ], "description": "For started datafeeds only, the network address of the node where the\ndatafeed is started.", "name": "na" }, { "aliases": [ "node.ephemeral_id", "nodeEphemeralId" ], "description": "For started datafeeds only, the ephemeral ID of the node where the\ndatafeed is started.", "name": "ne" }, { "aliases": [ "node.id", "nodeId" ], "description": "For started datafeeds only, the unique identifier of the node where the\ndatafeed is started.", "name": "ni" }, { "aliases": [ "node.name", "nodeName" ], "description": "For started datafeeds only, the name of the node where the datafeed is\nstarted.", "name": "nn" }, { "aliases": [ "search.bucket_avg", "searchBucketAvg" ], "description": "The average search time per bucket, in milliseconds.", "name": "sba" }, { "aliases": [ "search.count", "searchCount" ], "description": "The number of searches run by the datafeed.", "name": "sc" }, { "aliases": [ "search.exp_avg_hour", "searchExpAvgHour" ], "description": "The exponential average search time per hour, in milliseconds.", "name": "seah" }, { "aliases": [ "search.time", "searchTime" ], "description": "The total time the datafeed spent searching, in milliseconds.", "name": "st" }, { "aliases": [ "state" ], "description": "The status of the datafeed: `starting`, `started`, `stopping`, or `stopped`.\nIf `starting`, the datafeed has been requested to start but has not yet\nstarted. If `started`, the datafeed is actively receiving data. If\n`stopping`, the datafeed has been requested to stop gracefully and is\ncompleting its final action. If `stopped`, the datafeed is stopped and will\nnot receive data until it is re-started.", "name": "s" } ], "name": { "name": "CatDatafeedColumn", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L405-L471" }, { "kind": "type_alias", "name": { "name": "CatDatafeedColumns", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L559-L559", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CatDatafeedColumn", "namespace": "cat._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CatDatafeedColumn", "namespace": "cat._types" } } } ] } }, { "kind": "enum", "members": [ { "aliases": [ "ae" ], "description": "Contains messages relating to the selection of a node.", "name": "assignment_explanation" }, { "aliases": [ "ct", "createTime" ], "description": "The time when the data frame analytics job was created.", "name": "create_time" }, { "aliases": [ "d" ], "description": "A description of a job.", "name": "description" }, { "aliases": [ "di", "destIndex" ], "description": "Name of the destination index.", "name": "dest_index" }, { "aliases": [ "fr", "failureReason" ], "description": "Contains messages about the reason why a data frame analytics job failed.", "name": "failure_reason" }, { "description": "Identifier for the data frame analytics job.", "name": "id" }, { "aliases": [ "mml", "modelMemoryLimit" ], "description": "The approximate maximum amount of memory resources that are permitted for\nthe data frame analytics job.", "name": "model_memory_limit" }, { "aliases": [ "na", "nodeAddress" ], "description": "The network address of the node that the data frame analytics job is\nassigned to.", "name": "node.address" }, { "aliases": [ "ne", "nodeEphemeralId" ], "description": "The ephemeral ID of the node that the data frame analytics job is assigned\nto.", "name": "node.ephemeral_id" }, { "aliases": [ "ni", "nodeId" ], "description": "The unique identifier of the node that the data frame analytics job is\nassigned to.", "name": "node.id" }, { "aliases": [ "nn", "nodeName" ], "description": "The name of the node that the data frame analytics job is assigned to.", "name": "node.name" }, { "aliases": [ "p" ], "description": "The progress report of the data frame analytics job by phase.", "name": "progress" }, { "aliases": [ "si", "sourceIndex" ], "description": "Name of the source index.", "name": "source_index" }, { "aliases": [ "s" ], "description": "Current state of the data frame analytics job.", "name": "state" }, { "aliases": [ "t" ], "description": "The type of analysis that the data frame analytics job performs.", "name": "type" }, { "aliases": [ "v" ], "description": "The Elasticsearch version number in which the data frame analytics job was\ncreated.", "name": "version" } ], "name": { "name": "CatDfaColumn", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L472-L557" }, { "kind": "type_alias", "name": { "name": "CatDfaColumns", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L558-L558", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CatDfaColumn", "namespace": "cat._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CatDfaColumn", "namespace": "cat._types" } } } ] } }, { "kind": "interface", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "behaviors": [ { "type": { "name": "CommonCatQueryParameters", "namespace": "_spec_utils" } } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "CatRequestBase", "namespace": "cat._types" }, "properties": [], "specLocation": "cat/_types/CatBase.ts#L28-L30" }, { "kind": "enum", "members": [ { "aliases": [ "ct" ], "description": "The time when the trained model was created.", "name": "create_time" }, { "aliases": [ "c", "createdBy" ], "description": "Information on the creator of the trained model.", "name": "created_by" }, { "aliases": [ "df", "dataFrameAnalytics", "dfid" ], "description": "Identifier for the data frame analytics job that created the model. Only\ndisplayed if it is still available.", "name": "data_frame_analytics_id" }, { "aliases": [ "d" ], "description": "The description of the trained model.", "name": "description" }, { "aliases": [ "hs", "modelHeapSize" ], "description": "The estimated heap size to keep the trained model in memory.", "name": "heap_size" }, { "description": "Identifier for the trained model.", "name": "id" }, { "aliases": [ "ic", "ingestCount" ], "description": "The total number of documents that are processed by the model.", "name": "ingest.count" }, { "aliases": [ "icurr", "ingestCurrent" ], "description": "The total number of document that are currently being handled by the\ntrained model.", "name": "ingest.current" }, { "aliases": [ "if", "ingestFailed" ], "description": "The total number of failed ingest attempts with the trained model.", "name": "ingest.failed" }, { "aliases": [ "ip", "ingestPipelines" ], "description": "The total number of ingest pipelines that are referencing the trained\nmodel.", "name": "ingest.pipelines" }, { "aliases": [ "it", "ingestTime" ], "description": "The total time that is spent processing documents with the trained model.", "name": "ingest.time" }, { "aliases": [ "l" ], "description": "The license level of the trained model.", "name": "license" }, { "aliases": [ "o", "modelOperations" ], "description": "The estimated number of operations to use the trained model. This number\nhelps measuring the computational complexity of the model.", "name": "operations" }, { "aliases": [ "v" ], "description": "The Elasticsearch version number in which the trained model was created.", "name": "version" } ], "name": { "name": "CatTrainedModelsColumn", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L561-L635" }, { "kind": "type_alias", "name": { "name": "CatTrainedModelsColumns", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L636-L638", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CatTrainedModelsColumn", "namespace": "cat._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CatTrainedModelsColumn", "namespace": "cat._types" } } } ] } }, { "kind": "enum", "members": [ { "aliases": [ "cldt" ], "description": "The timestamp when changes were last detected in the source indices.", "name": "changes_last_detection_time" }, { "aliases": [ "cp" ], "description": "The sequence number for the checkpoint.", "name": "checkpoint" }, { "aliases": [ "cdtea", "checkpointTimeExpAvg" ], "description": "Exponential moving average of the duration of the checkpoint, in\nmilliseconds.", "name": "checkpoint_duration_time_exp_avg" }, { "aliases": [ "c", "checkpointProgress" ], "description": "The progress of the next checkpoint that is currently in progress.", "name": "checkpoint_progress" }, { "aliases": [ "ct", "createTime" ], "description": "The time the transform was created.", "name": "create_time" }, { "aliases": [ "dtime" ], "description": "The amount of time spent deleting, in milliseconds.", "name": "delete_time" }, { "aliases": [ "d" ], "description": "The description of the transform.", "name": "description" }, { "aliases": [ "di", "destIndex" ], "description": "The destination index for the transform. The mappings of the destination\nindex are deduced based on the source fields when possible. If alternate\nmappings are required, use the Create index API prior to starting the\ntransform.", "name": "dest_index" }, { "aliases": [ "docd" ], "description": "The number of documents that have been deleted from the destination index\ndue to the retention policy for this transform.", "name": "documents_deleted" }, { "aliases": [ "doci" ], "description": "The number of documents that have been indexed into the destination index\nfor the transform.", "name": "documents_indexed" }, { "aliases": [ "dps" ], "description": "Specifies a limit on the number of input documents per second. This setting\nthrottles the transform by adding a wait time between search requests. The\ndefault value is `null`, which disables throttling.", "name": "docs_per_second" }, { "aliases": [ "docp" ], "description": "The number of documents that have been processed from the source index of\nthe transform.", "name": "documents_processed" }, { "aliases": [ "f" ], "description": "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`. The default\nvalue is `1m`.", "name": "frequency" }, { "description": "Identifier for the transform.", "name": "id" }, { "aliases": [ "if" ], "description": "The number of indexing failures.", "name": "index_failure" }, { "aliases": [ "itime" ], "description": "The amount of time spent indexing, in milliseconds.", "name": "index_time" }, { "aliases": [ "it" ], "description": "The number of index operations.", "name": "index_total" }, { "aliases": [ "idea" ], "description": "Exponential moving average of the number of new documents that have been\nindexed.", "name": "indexed_documents_exp_avg" }, { "aliases": [ "lst", "lastSearchTime" ], "description": "The timestamp of the last search in the source indices. This field is only\nshown if the transform is running.", "name": "last_search_time" }, { "aliases": [ "mpsz" ], "description": "Defines the initial page size to use for the composite aggregation for each\ncheckpoint. If circuit breaker exceptions occur, the page size is\ndynamically adjusted to a lower value. The minimum value is `10` and the\nmaximum is `65,536`. The default value is `500`.", "name": "max_page_search_size" }, { "aliases": [ "pp" ], "description": "The number of search or bulk index operations processed. Documents are\nprocessed in batches instead of individually.", "name": "pages_processed" }, { "aliases": [ "p" ], "description": "The unique identifier for an ingest pipeline.", "name": "pipeline" }, { "aliases": [ "pdea" ], "description": "Exponential moving average of the number of documents that have been\nprocessed.", "name": "processed_documents_exp_avg" }, { "aliases": [ "pt" ], "description": "The amount of time spent processing results, in milliseconds.", "name": "processing_time" }, { "aliases": [ "r" ], "description": "If a transform has a `failed` state, this property provides details about\nthe reason for the failure.", "name": "reason" }, { "aliases": [ "sf" ], "description": "The number of search failures.", "name": "search_failure" }, { "aliases": [ "stime" ], "description": "The amount of time spent searching, in milliseconds.", "name": "search_time" }, { "aliases": [ "st" ], "description": "The number of search operations on the source index for the transform.", "name": "search_total" }, { "aliases": [ "si", "sourceIndex" ], "description": "The source indices for the transform. It can be a single index, an index\npattern (for example, `\"my-index-*\"`), an array of indices (for example,\n`[\"my-index-000001\", \"my-index-000002\"]`), or an array of index patterns\n(for example, `[\"my-index-*\", \"my-other-index-*\"]`. For remote indices use\nthe syntax `\"remote_name:index_name\"`. If any indices are in remote\nclusters then the master node and at least one transform node must have the\n`remote_cluster_client` node role.", "name": "source_index" }, { "aliases": [ "s" ], "description": "The status of the transform, which can be one of the following values:\n\n* `aborting`: The transform is aborting.\n* `failed`: The transform failed. For more information about the failure,\ncheck the reason field.\n* `indexing`: The transform is actively processing data and creating new\ndocuments.\n* `started`: The transform is running but not actively indexing data.\n* `stopped`: The transform is stopped.\n* `stopping`: The transform is stopping.", "name": "state" }, { "aliases": [ "tt" ], "description": "Indicates the type of transform: `batch` or `continuous`.", "name": "transform_type" }, { "aliases": [ "tc" ], "description": "The number of times the transform has been triggered by the scheduler. For\nexample, the scheduler triggers the transform indexer to check for updates\nor ingest new data at an interval specified in the `frequency` property.", "name": "trigger_count" }, { "aliases": [ "v" ], "description": "The version of Elasticsearch that existed on the node when the transform\nwas created.", "name": "version" } ], "name": { "name": "CatTransformColumn", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L640-L844" }, { "kind": "type_alias", "name": { "name": "CatTransformColumns", "namespace": "cat._types" }, "specLocation": "cat/_types/CatBase.ts#L845-L845", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CatTransformColumn", "namespace": "cat._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CatTransformColumn", "namespace": "cat._types" } } } ] } }, { "kind": "interface", "name": { "name": "AliasesRecord", "namespace": "cat.aliases" }, "properties": [ { "aliases": [ "a" ], "description": "alias name", "name": "alias", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "i", "idx" ], "description": "index alias points to", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "aliases": [ "f", "fi" ], "description": "filter", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ri", "routingIndex" ], "description": "index routing", "name": "routing.index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rs", "routingSearch" ], "description": "search routing", "name": "routing.search", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "w", "isWriteIndex" ], "description": "write index", "name": "is_write_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/aliases/types.ts#L22-L53" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get aliases.\n\nGet the cluster's index aliases, including filter and routing information.\nThis API does not return data stream aliases.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.aliases" }, "path": [ { "description": "A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "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 indicated that the request should never timeout, you can set it to `-1`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/aliases/CatAliasesRequest.ts#L24-L77" }, { "kind": "response", "body": { "kind": "value", "codegenName": "aliases", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AliasesRecord", "namespace": "cat.aliases" } } } }, "examples": { "CatAliasesResponseExample1": { "description": "A successful response from `GET _cat/aliases?format=json&v=true`. This response shows that `alias2` has configured a filter and `alias3` and `alias4` have routing configurations.\n", "value": "[\n {\n \"alias\": \"alias1\",\n \"index\": \"test1\",\n \"filter\": \"-\",\n \"routing.index\": \"-\",\n \"routing.search\": \"-\",\n \"is_write_index\": \"true\"\n },\n {\n \"alias\": \"alias1\",\n \"index\": \"test1\",\n \"filter\": \"*\",\n \"routing.index\": \"-\",\n \"routing.search\": \"-\",\n \"is_write_index\": \"true\"\n },\n {\n \"alias\": \"alias3\",\n \"index\": \"test1\",\n \"filter\": \"-\",\n \"routing.index\": \"1\",\n \"routing.search\": \"1\",\n \"is_write_index\": \"true\"\n },\n {\n \"alias\": \"alias4\",\n \"index\": \"test1\",\n \"filter\": \"-\",\n \"routing.index\": \"2\",\n \"routing.search\": \"1,2\",\n \"is_write_index\": \"true\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.aliases" }, "specLocation": "cat/aliases/CatAliasesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "AllocationRecord", "namespace": "cat.allocation" }, "properties": [ { "aliases": [ "s" ], "description": "Number of primary and replica shards assigned to the node.", "name": "shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used", "name": "shards.undesired", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "wlf", "writeLoadForecast" ], "description": "Sum of index write load forecasts", "name": "write_load.forecast", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "dif", "diskIndicesForecast" ], "description": "Sum of shard size forecasts", "name": "disk.indices.forecast", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "di", "diskIndices" ], "description": "Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards.\nIMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.", "name": "disk.indices", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "du", "diskUsed" ], "description": "Total disk space in use.\nElasticsearch retrieves this metric from the node’s operating system (OS).\nThe metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the node’s operating system; any other applications or files on the node.\nUnlike `disk.indices`, this metric does not double-count disk space for hard-linked files.", "name": "disk.used", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "da", "diskAvail" ], "description": "Free disk space available to Elasticsearch.\nElasticsearch retrieves this metric from the node’s operating system.\nDisk-based shard allocation uses this metric to assign shards to nodes based on available disk space.", "name": "disk.avail", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "dt", "diskTotal" ], "description": "Total disk space for the node, including in-use and available space.", "name": "disk.total", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "dp", "diskPercent" ], "description": "Total percentage of disk space in use. Calculated as `disk.used / disk.total`.", "name": "disk.percent", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "h" ], "description": "Network host for the node. Set using the `network.host` setting.", "name": "host", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "IP address and port for the node.", "name": "ip", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "n" ], "description": "Name for the node. Set using the `node.name` setting.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r", "role", "nodeRole" ], "description": "Node roles", "name": "node.role", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "cat/allocation/types.ts#L25-L99" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get shard allocation information.\n\nGet a snapshot of the number of shards allocated to each data node and their disk space.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.allocation" }, "path": [ { "description": "A comma-separated list of node identifiers or names used to limit the returned information.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [ { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/allocation/CatAllocationRequest.ts#L24-L78" }, { "kind": "response", "body": { "kind": "value", "codegenName": "allocations", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AllocationRecord", "namespace": "cat.allocation" } } } }, "examples": { "CatAllocationResponseExample1": { "description": "A successful response from `GET /_cat/allocation?v=true&format=json`. It shows a single shard is allocated to the one node available.\n", "value": "[\n {\n \"shards\": \"1\",\n \"shards.undesired\": \"0\",\n \"write_load.forecast\": \"0.0\",\n \"disk.indices.forecast\": \"260b\",\n \"disk.indices\": \"260b\",\n \"disk.used\": \"47.3gb\",\n \"disk.avail\": \"43.4gb\",\n \"disk.total\": \"100.7gb\",\n \"disk.percent\": \"46\",\n \"host\": \"127.0.0.1\",\n \"ip\": \"127.0.0.1\",\n \"node\": \"CSUXak2\",\n \"node.role\": \"himrst\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.allocation" }, "specLocation": "cat/allocation/CatAllocationResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "ComponentTemplate", "namespace": "cat.component_templates" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "version", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "alias_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "mapping_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "settings_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "metadata_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "included_in", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/component_templates/types.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get component templates.\n\nGet information about component templates in a cluster.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the get component template API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.component_templates" }, "path": [ { "description": "The name of the component template.\nIt accepts wildcard expressions.\nIf it is omitted, all component templates are returned.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/component_templates/CatComponentTemplatesRequest.ts#L24-L81" }, { "kind": "response", "body": { "kind": "value", "codegenName": "component_templates", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ComponentTemplate", "namespace": "cat.component_templates" } } } }, "examples": { "CatComponentTemplatesResponseExample1": { "description": "A successful response from `GET _cat/component_templates/my-template-*?v=true&s=name&format=json`.\n", "value": "[\n {\n \"name\": \"my-template-1\",\n \"version\": \"null\",\n \"alias_count\": \"0\",\n \"mapping_count\": \"0\",\n \"settings_count\": \"1\",\n \"metadata_count\": \"0\",\n \"included_in\": \"[my-index-template]\"\n },\n {\n \"name\": \"my-template-2\",\n \"version\": null,\n \"alias_count\": \"0\",\n \"mapping_count\": \"3\",\n \"settings_count\": \"0\",\n \"metadata_count\": \"0\",\n \"included_in\": \"[my-index-template]\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.component_templates" }, "specLocation": "cat/component_templates/CatComponentTemplatesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "CountRecord", "namespace": "cat.count" }, "properties": [ { "aliases": [ "t", "time" ], "description": "seconds since 1970-01-01 00:00:00", "name": "epoch", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "aliases": [ "ts", "hms", "hhmmss" ], "description": "time in HH:MM:SS", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeOfDay", "namespace": "_types" } } }, { "aliases": [ "dc", "docs.count", "docsCount" ], "description": "the document count", "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/count/types.ts#L23-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a document count.\n\nGet quick access to a document count for a data stream, an index, or an entire cluster.\nThe document count only includes live documents, not deleted documents which have not yet been removed by the merge process.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the count API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.count" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases used to limit the request.\nIt supports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "specLocation": "cat/count/CatCountRequest.ts#L23-L68" }, { "kind": "response", "body": { "kind": "value", "codegenName": "count_records", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CountRecord", "namespace": "cat.count" } } } }, "examples": { "CatCountResponseExample1": { "description": "A successful response from `GET /_cat/count/my-index-000001?v=true&format=json`. It retrieves the document count for the `my-index-000001` data stream or index.\n", "summary": "Single data stream or index count", "value": "[\n {\n \"epoch\": \"1475868259\",\n \"timestamp\": \"15:24:20\",\n \"count\": \"120\"\n }\n]" }, "CatCountResponseExample2": { "description": "A successful response from `GET /_cat/count?v=true&format=json`. It retrieves the document count for all data streams and indices in the cluster.\n", "summary": "All data streams and indices count", "value": "[\n {\n \"epoch\": \"1475868259\",\n \"timestamp\": \"15:24:20\",\n \"count\": \"121\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.count" }, "specLocation": "cat/count/CatCountResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "FielddataRecord", "namespace": "cat.fielddata" }, "properties": [ { "description": "node id", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "h" ], "description": "host name", "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "ip address", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "n" ], "description": "node name", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "f" ], "description": "field name", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "field data usage", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/fielddata/types.ts#L20-L48" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get field data cache information.\n\nGet the amount of heap memory currently used by the field data cache on every data node in the cluster.\n\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the nodes stats API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.fielddata" }, "path": [ { "description": "Comma-separated list of fields used to limit returned information.\nTo retrieve all fields, omit this parameter.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "query": [ { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "Comma-separated list of fields used to limit returned information.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "specLocation": "cat/fielddata/CatFielddataRequest.ts#L23-L70" }, { "kind": "response", "body": { "kind": "value", "codegenName": "fielddata_records", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FielddataRecord", "namespace": "cat.fielddata" } } } }, "examples": { "CatFielddataResponseExample1": { "description": "A successful response from `GET /_cat/fielddata?v=true&fields=body&format=json`. You can specify an individual field in the request body or URL path. This example retrieves heap memory size information for the `body` field.\n", "summary": "Single field data", "value": "[\n {\n \"id\": \"Nqk-6inXQq-OxUfOUI8jNQ\",\n \"host\": \"127.0.0.1\",\n \"ip\": \"127.0.0.1\",\n \"node\": \"Nqk-6in\",\n \"field\": \"body\",\n \"size\": \"544b\"\n }\n]" }, "CatFielddataResponseExample2": { "description": "A successful response from `GET /_cat/fielddata/body,soul?v=true&format=json`. You can specify a comma-separated list of fields in the request body or URL path. This example retrieves heap memory size information for the `body` and `soul` fields. To get information for all fields, run `GET /_cat/fielddata?v=true`.\n", "summary": "Multiple fields data", "value": "[\n {\n \"id\": \"Nqk-6inXQq-OxUfOUI8jNQ\",\n \"host\": \"1127.0.0.1\",\n \"ip\": \"127.0.0.1\",\n \"node\": \"Nqk-6in\",\n \"field\": \"body\",\n \"size\": \"544b\"\n },\n {\n \"id\": \"Nqk-6inXQq-OxUfOUI8jNQ\",\n \"host\": \"127.0.0.1\",\n \"ip\": \"127.0.0.1\",\n \"node\": \"Nqk-6in\",\n \"field\": \"soul\",\n \"size\": \"480b\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.fielddata" }, "specLocation": "cat/fielddata/CatFielddataResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "HealthRecord", "namespace": "cat.health" }, "properties": [ { "aliases": [ "time" ], "description": "seconds since 1970-01-01 00:00:00", "name": "epoch", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "aliases": [ "ts", "hms", "hhmmss" ], "description": "time in HH:MM:SS", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeOfDay", "namespace": "_types" } } }, { "aliases": [ "cl" ], "description": "cluster name", "name": "cluster", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "st" ], "description": "health status", "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "nt", "nodeTotal" ], "description": "total number of nodes", "name": "node.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "nd", "nodeData" ], "description": "number of nodes that can store data", "name": "node.data", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "t", "sh", "shards.total", "shardsTotal" ], "description": "total number of shards", "name": "shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p", "shards.primary", "shardsPrimary" ], "description": "number of primary shards", "name": "pri", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r", "shards.relocating", "shardsRelocating" ], "description": "number of relocating nodes", "name": "relo", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "i", "shards.initializing", "shardsInitializing" ], "description": "number of initializing nodes", "name": "init", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "up", "shards.unassigned.primary", "shardsUnassignedPrimary" ], "description": "number of unassigned primary shards", "name": "unassign.pri", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "u", "shards.unassigned", "shardsUnassigned" ], "description": "number of unassigned shards", "name": "unassign", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "pt", "pendingTasks" ], "description": "number of pending tasks", "name": "pending_tasks", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtwt", "maxTaskWaitTime" ], "description": "wait time of longest task pending", "name": "max_task_wait_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "asp", "activeShardsPercent" ], "description": "active number of shards in percent", "name": "active_shards_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/health/types.ts#L23-L99" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the cluster health status.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use the cluster health API.\nThis API is often used to check malfunctioning clusters.\nTo help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:\n`HH:MM:SS`, which is human-readable but includes no date information;\n`Unix epoch time`, which is machine-sortable and includes date information.\nThe latter format is useful for cluster recoveries that take multiple days.\nYou can use the cat health API to verify cluster health across multiple nodes.\nYou also can use the API to track the recovery of a large cluster over a longer period of time.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.health" }, "path": [], "query": [ { "description": "The unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "If true, returns `HH:MM:SS` and Unix epoch timestamps.", "name": "ts", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "specLocation": "cat/health/CatHealthRequest.ts#L24-L70" }, { "kind": "response", "body": { "kind": "value", "codegenName": "health_records", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "HealthRecord", "namespace": "cat.health" } } } }, "examples": { "CatHealthResponseExample1": { "description": "A successful response from `GET /_cat/health?v=true&format=json`. By default, it returns `HH:MM:SS` and Unix epoch timestamps.\n", "value": "[\n {\n \"epoch\": \"1475871424\",\n \"timestamp\": \"16:17:04\",\n \"cluster\": \"elasticsearch\",\n \"status\": \"green\",\n \"node.total\": \"1\",\n \"node.data\": \"1\",\n \"shards\": \"1\",\n \"pri\": \"1\",\n \"relo\": \"0\",\n \"init\": \"0\",\n \"unassign\": \"0\",\n \"unassign.pri\": \"0\",\n \"pending_tasks\": \"0\",\n \"max_task_wait_time\": \"-\",\n \"active_shards_percent\": \"100.0%\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.health" }, "specLocation": "cat/health/CatHealthResponse.ts#L22-L25" }, { "kind": "request", "body": { "kind": "no_body" }, "description": "Get CAT help.\n\nGet help for the CAT APIs.", "name": { "name": "Request", "namespace": "cat.help" }, "path": [], "query": [], "specLocation": "cat/help/CatHelpRequest.ts#L20-L36" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "cat.help" }, "specLocation": "cat/help/CatHelpResponse.ts#L20-L25" }, { "kind": "interface", "name": { "name": "IndicesRecord", "namespace": "cat.indices" }, "properties": [ { "aliases": [ "h" ], "description": "current health status", "name": "health", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "s" ], "description": "open/close status", "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "i", "idx" ], "description": "index name", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "id" ], "description": "index uuid", "name": "uuid", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p", "shards.primary", "shardsPrimary" ], "description": "number of primary shards", "name": "pri", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r", "shards.replica", "shardsReplica" ], "description": "number of replica shards", "name": "rep", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dc", "docsCount" ], "description": "available docs", "name": "docs.count", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "dd", "docsDeleted" ], "description": "deleted docs", "name": "docs.deleted", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "cd" ], "description": "index creation date (millisecond value)", "name": "creation.date", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "cds" ], "description": "index creation date (as string)", "name": "creation.date.string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ss", "storeSize" ], "description": "store size of primaries & replicas", "name": "store.size", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "store size of primaries", "name": "pri.store.size", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "total size of dataset (including the cache for partially mounted indices)", "name": "dataset.size", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "cs", "completionSize" ], "description": "size of completion", "name": "completion.size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "size of completion", "name": "pri.completion.size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fm", "fielddataMemory" ], "description": "used fielddata cache", "name": "fielddata.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "used fielddata cache", "name": "pri.fielddata.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fe", "fielddataEvictions" ], "description": "fielddata evictions", "name": "fielddata.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "fielddata evictions", "name": "pri.fielddata.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qcm", "queryCacheMemory" ], "description": "used query cache", "name": "query_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "used query cache", "name": "pri.query_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qce", "queryCacheEvictions" ], "description": "query cache evictions", "name": "query_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "query cache evictions", "name": "pri.query_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rcm", "requestCacheMemory" ], "description": "used request cache", "name": "request_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "used request cache", "name": "pri.request_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rce", "requestCacheEvictions" ], "description": "request cache evictions", "name": "request_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "request cache evictions", "name": "pri.request_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rchc", "requestCacheHitCount" ], "description": "request cache hit count", "name": "request_cache.hit_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "request cache hit count", "name": "pri.request_cache.hit_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rcmc", "requestCacheMissCount" ], "description": "request cache miss count", "name": "request_cache.miss_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "request cache miss count", "name": "pri.request_cache.miss_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ft", "flushTotal" ], "description": "number of flushes", "name": "flush.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of flushes", "name": "pri.flush.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftt", "flushTotalTime" ], "description": "time spent in flush", "name": "flush.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in flush", "name": "pri.flush.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gc", "getCurrent" ], "description": "number of current get ops", "name": "get.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of current get ops", "name": "pri.get.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gti", "getTime" ], "description": "time spent in get", "name": "get.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in get", "name": "pri.get.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gto", "getTotal" ], "description": "number of get ops", "name": "get.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of get ops", "name": "pri.get.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "geti", "getExistsTime" ], "description": "time spent in successful gets", "name": "get.exists_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in successful gets", "name": "pri.get.exists_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "geto", "getExistsTotal" ], "description": "number of successful gets", "name": "get.exists_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of successful gets", "name": "pri.get.exists_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gmti", "getMissingTime" ], "description": "time spent in failed gets", "name": "get.missing_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in failed gets", "name": "pri.get.missing_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gmto", "getMissingTotal" ], "description": "number of failed gets", "name": "get.missing_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of failed gets", "name": "pri.get.missing_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idc", "indexingDeleteCurrent" ], "description": "number of current deletions", "name": "indexing.delete_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of current deletions", "name": "pri.indexing.delete_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idti", "indexingDeleteTime" ], "description": "time spent in deletions", "name": "indexing.delete_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in deletions", "name": "pri.indexing.delete_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idto", "indexingDeleteTotal" ], "description": "number of delete ops", "name": "indexing.delete_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of delete ops", "name": "pri.indexing.delete_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iic", "indexingIndexCurrent" ], "description": "number of current indexing ops", "name": "indexing.index_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of current indexing ops", "name": "pri.indexing.index_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iiti", "indexingIndexTime" ], "description": "time spent in indexing", "name": "indexing.index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in indexing", "name": "pri.indexing.index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iito", "indexingIndexTotal" ], "description": "number of indexing ops", "name": "indexing.index_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of indexing ops", "name": "pri.indexing.index_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iif", "indexingIndexFailed" ], "description": "number of failed indexing ops", "name": "indexing.index_failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of failed indexing ops", "name": "pri.indexing.index_failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mc", "mergesCurrent" ], "description": "number of current merges", "name": "merges.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of current merges", "name": "pri.merges.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcd", "mergesCurrentDocs" ], "description": "number of current merging docs", "name": "merges.current_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of current merging docs", "name": "pri.merges.current_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcs", "mergesCurrentSize" ], "description": "size of current merges", "name": "merges.current_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "size of current merges", "name": "pri.merges.current_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mt", "mergesTotal" ], "description": "number of completed merge ops", "name": "merges.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of completed merge ops", "name": "pri.merges.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtd", "mergesTotalDocs" ], "description": "docs merged", "name": "merges.total_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "docs merged", "name": "pri.merges.total_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mts", "mergesTotalSize" ], "description": "size merged", "name": "merges.total_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "size merged", "name": "pri.merges.total_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtt", "mergesTotalTime" ], "description": "time spent in merges", "name": "merges.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in merges", "name": "pri.merges.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rto", "refreshTotal" ], "description": "total refreshes", "name": "refresh.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total refreshes", "name": "pri.refresh.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rti", "refreshTime" ], "description": "time spent in refreshes", "name": "refresh.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in refreshes", "name": "pri.refresh.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "reto" ], "description": "total external refreshes", "name": "refresh.external_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total external refreshes", "name": "pri.refresh.external_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "reti" ], "description": "time spent in external refreshes", "name": "refresh.external_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in external refreshes", "name": "pri.refresh.external_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rli", "refreshListeners" ], "description": "number of pending refresh listeners", "name": "refresh.listeners", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of pending refresh listeners", "name": "pri.refresh.listeners", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfc", "searchFetchCurrent" ], "description": "current fetch phase ops", "name": "search.fetch_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "current fetch phase ops", "name": "pri.search.fetch_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfti", "searchFetchTime" ], "description": "time spent in fetch phase", "name": "search.fetch_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in fetch phase", "name": "pri.search.fetch_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfto", "searchFetchTotal" ], "description": "total fetch ops", "name": "search.fetch_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total fetch ops", "name": "pri.search.fetch_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "so", "searchOpenContexts" ], "description": "open search contexts", "name": "search.open_contexts", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "open search contexts", "name": "pri.search.open_contexts", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqc", "searchQueryCurrent" ], "description": "current query phase ops", "name": "search.query_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "current query phase ops", "name": "pri.search.query_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqti", "searchQueryTime" ], "description": "time spent in query phase", "name": "search.query_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in query phase", "name": "pri.search.query_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqto", "searchQueryTotal" ], "description": "total query phase ops", "name": "search.query_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total query phase ops", "name": "pri.search.query_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scc", "searchScrollCurrent" ], "description": "open scroll contexts", "name": "search.scroll_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "open scroll contexts", "name": "pri.search.scroll_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scti", "searchScrollTime" ], "description": "time scroll contexts held open", "name": "search.scroll_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time scroll contexts held open", "name": "pri.search.scroll_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scto", "searchScrollTotal" ], "description": "completed scroll contexts", "name": "search.scroll_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "completed scroll contexts", "name": "pri.search.scroll_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sc", "segmentsCount" ], "description": "number of segments", "name": "segments.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of segments", "name": "pri.segments.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sm", "segmentsMemory" ], "description": "memory used by segments", "name": "segments.memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "memory used by segments", "name": "pri.segments.memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "siwm", "segmentsIndexWriterMemory" ], "description": "memory used by index writer", "name": "segments.index_writer_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "memory used by index writer", "name": "pri.segments.index_writer_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "svmm", "segmentsVersionMapMemory" ], "description": "memory used by version map", "name": "segments.version_map_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "memory used by version map", "name": "pri.segments.version_map_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfbm", "fixedBitsetMemory" ], "description": "memory used by fixed bit sets for nested object field types and export type filters for types referred in _parent fields", "name": "segments.fixed_bitset_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "memory used by fixed bit sets for nested object field types and export type filters for types referred in _parent fields", "name": "pri.segments.fixed_bitset_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "wc", "warmerCurrent" ], "description": "current warmer ops", "name": "warmer.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "current warmer ops", "name": "pri.warmer.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "wto", "warmerTotal" ], "description": "total warmer ops", "name": "warmer.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total warmer ops", "name": "pri.warmer.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "wtt", "warmerTotalTime" ], "description": "time spent in warmers", "name": "warmer.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spent in warmers", "name": "pri.warmer.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "suc", "suggestCurrent" ], "description": "number of current suggest ops", "name": "suggest.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of current suggest ops", "name": "pri.suggest.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "suti", "suggestTime" ], "description": "time spend in suggest", "name": "suggest.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spend in suggest", "name": "pri.suggest.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "suto", "suggestTotal" ], "description": "number of suggest ops", "name": "suggest.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of suggest ops", "name": "pri.suggest.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "tm", "memoryTotal" ], "description": "total used memory", "name": "memory.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total user memory", "name": "pri.memory.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sth" ], "description": "indicates if the index is search throttled", "name": "search.throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bto", "bulkTotalOperation" ], "description": "number of bulk shard ops", "name": "bulk.total_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "number of bulk shard ops", "name": "pri.bulk.total_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btti", "bulkTotalTime" ], "description": "time spend in shard bulk", "name": "bulk.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "time spend in shard bulk", "name": "pri.bulk.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btsi", "bulkTotalSizeInBytes" ], "description": "total size in bytes of shard bulk", "name": "bulk.total_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "total size in bytes of shard bulk", "name": "pri.bulk.total_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bati", "bulkAvgTime" ], "description": "average time spend in shard bulk", "name": "bulk.avg_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "average time spend in shard bulk", "name": "pri.bulk.avg_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "basi", "bulkAvgSizeInBytes" ], "description": "average size in bytes of shard bulk", "name": "bulk.avg_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "average size in bytes of shard bulk", "name": "pri.bulk.avg_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/indices/types.ts#L20-L808" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index information.\n\nGet high-level information about indices in a cluster, including backing indices for data streams.\n\nUse this request to get the following information for each index in a cluster:\n- shard count\n- document count\n- deleted document count\n- primary store size\n- total store size of all shards, including shard replicas\n\nThese metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.\nTo get an accurate count of Elasticsearch documents, use the cat count or count APIs.\n\nCAT APIs are only intended for human consumption using the command line or Kibana console.\nThey are not intended for use by applications. For application consumption, use an index endpoint.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.indices" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "The type of index that wildcard patterns can match.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "The health status used to limit returned indices. By default, the response includes indices of any health status.", "name": "health", "required": false, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "description": "If true, the response includes information from segments that are not loaded into memory.", "name": "include_unloaded_segments", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the response only includes information from primary shards.", "name": "pri", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "specLocation": "cat/indices/CatIndicesRequest.ts#L30-L109" }, { "kind": "response", "body": { "kind": "value", "codegenName": "indices", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesRecord", "namespace": "cat.indices" } } } }, "examples": { "CatIndicesResponseExample1": { "description": "A successful response from `GET /_cat/indices/my-index-*?v=true&s=index&format=json`.\n", "value": "[\n {\n \"health\": \"yellow\",\n \"status\": \"open\",\n \"index\": \"my-index-000001\",\n \"uuid\": \"u8FNjxh8Rfy_awN11oDKYQ\",\n \"pri\": \"1\",\n \"rep\": \"1\",\n \"docs.count\": \"1200\",\n \"docs.deleted\": \"0\",\n \"store.size\": \"88.1kb\",\n \"pri.store.size\": \"88.1kb\",\n \"dataset.size\": \"88.1kb\"\n },\n {\n \"health\": \"green\",\n \"status\": \"open\",\n \"index\": \"my-index-000002\",\n \"uuid\": \"nYFWZEO7TUiOjLQXBaYJpA \",\n \"pri\": \"1\",\n \"rep\": \"0\",\n \"docs.count\": \"0\",\n \"docs.deleted\": \"0\",\n \"store.size\": \"260b\",\n \"pri.store.size\": \"260b\",\n \"dataset.size\": \"260b\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.indices" }, "specLocation": "cat/indices/CatIndicesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "MasterRecord", "namespace": "cat.master" }, "properties": [ { "description": "node id", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "h" ], "description": "host name", "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "ip address", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "n" ], "description": "node name", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/master/types.ts#L20-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get master node information.\n\nGet information about the master node, including the ID, bound IP address, and name.\n\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.master" }, "path": [], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/master/CatMasterRequest.ts#L24-L68" }, { "kind": "response", "body": { "kind": "value", "codegenName": "masters", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MasterRecord", "namespace": "cat.master" } } } }, "examples": { "CatMasterResponseExample1": { "description": "A successful response from `GET /_cat/master?v=true&format=json`.\n", "value": "[\n {\n \"id\": \"YzWoH_2BT-6UjVGDyPdqYg\",\n \"host\": \"127.0.0.1\",\n \"ip\": \"127.0.0.1\",\n \"node\": \"YzWoH_2\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.master" }, "specLocation": "cat/master/CatMasterResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "DataFrameAnalyticsRecord", "namespace": "cat.ml_data_frame_analytics" }, "properties": [ { "description": "The identifier for the job.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "t" ], "description": "The type of analysis that the job performs.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ct", "createTime" ], "description": "The time when the job was created.", "name": "create_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The version of Elasticsearch when the job was created.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "si", "sourceIndex" ], "description": "The name of the source index.", "name": "source_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "aliases": [ "di", "destIndex" ], "description": "The name of the destination index.", "name": "dest_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "aliases": [ "d" ], "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mml", "modelMemoryLimit" ], "description": "The approximate maximum amount of memory resources that are permitted for the job.", "name": "model_memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "s" ], "description": "The current status of the job.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fr", "failureReason" ], "description": "Messages about the reason why the job failed.", "name": "failure_reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p" ], "description": "The progress report for the job by phase.", "name": "progress", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ae", "assignmentExplanation" ], "description": "Messages related to the selection of a node.", "name": "assignment_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ni", "nodeId" ], "description": "The unique identifier of the assigned node.", "name": "node.id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "nn", "nodeName" ], "description": "The name of the assigned node.", "name": "node.name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "aliases": [ "ne", "nodeEphemeralId" ], "description": "The ephemeral identifier of the assigned node.", "name": "node.ephemeral_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "na", "nodeAddress" ], "description": "The network address of the assigned node.", "name": "node.address", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/ml_data_frame_analytics/types.ts#L22-L102" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data frame analytics jobs.\n\nGet configuration and usage information about data frame analytics jobs.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get data frame analytics jobs statistics API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.ml_data_frame_analytics" }, "path": [ { "description": "The ID of the data frame analytics to fetch", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified)", "name": "allow_no_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The unit in which to display byte values", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "Comma-separated list of column names to display.", "name": "h", "required": false, "serverDefault": "create_time,id,state,type", "type": { "kind": "instance_of", "type": { "name": "CatDfaColumns", "namespace": "cat._types" } } }, { "description": "Comma-separated list of column names or column aliases used to sort the\nresponse.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "CatDfaColumns", "namespace": "cat._types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/ml_data_frame_analytics/CatDataFrameAnalyticsRequest.ts#L24-L70" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data_frame_analytics", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataFrameAnalyticsRecord", "namespace": "cat.ml_data_frame_analytics" } } } }, "examples": { "CatDataframeanalyticsResponseExample1": { "description": "A successful response from `GET _cat/ml/data_frame/analytics?v=true&format=json`.", "value": "[\n {\n \"id\": \"classifier_job_1\",\n \"type\": \"classification\",\n \"create_time\": \"2020-02-12T11:49:09.594Z\",\n \"state\": \"stopped\"\n },\n {\n \"id\": \"classifier_job_2\",\n \"type\": \"classification\",\n \"create_time\": \"2020-02-12T11:49:14.479Z\",\n \"state\": \"stopped\"\n },\n {\n \"id\": \"classifier_job_3\",\n \"type\": \"classification\",\n \"create_time\": \"2020-02-12T11:49:16.928Z\",\n \"state\": \"stopped\"\n },\n {\n \"id\": \"classifier_job_4\",\n \"type\": \"classification\",\n \"create_time\": \"2020-02-12T11:49:19.127Z\",\n \"state\": \"stopped\"\n },\n {\n \"id\": \"classifier_job_5\",\n \"type\": \"classification\",\n \"create_time\": \"2020-02-12T11:49:21.349Z\",\n \"state\": \"stopped\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.ml_data_frame_analytics" }, "specLocation": "cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "DatafeedsRecord", "namespace": "cat.ml_datafeeds" }, "properties": [ { "description": "The datafeed identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "s" ], "description": "The status of the datafeed.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedState", "namespace": "ml._types" } } }, { "aliases": [ "ae" ], "description": "For started datafeeds only, contains messages relating to the selection of a node.", "name": "assignment_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bc", "bucketsCount" ], "description": "The number of buckets processed.", "name": "buckets.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sc", "searchCount" ], "description": "The number of searches run by the datafeed.", "name": "search.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "st", "searchTime" ], "description": "The total time the datafeed spent searching, in milliseconds.", "name": "search.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sba", "searchBucketAvg" ], "description": "The average search time per bucket, in milliseconds.", "name": "search.bucket_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "seah", "searchExpAvgHour" ], "description": "The exponential average search time per hour, in milliseconds.", "name": "search.exp_avg_hour", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ni", "nodeId" ], "description": "The unique identifier of the assigned node.\nFor started datafeeds only, this information pertains to the node upon which the datafeed is started.", "name": "node.id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "nn", "nodeName" ], "description": "The name of the assigned node.\nFor started datafeeds only, this information pertains to the node upon which the datafeed is started.", "name": "node.name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ne", "nodeEphemeralId" ], "description": "The ephemeral identifier of the assigned node.\nFor started datafeeds only, this information pertains to the node upon which the datafeed is started.", "name": "node.ephemeral_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "na", "nodeAddress" ], "description": "The network address of the assigned node.\nFor started datafeeds only, this information pertains to the node upon which the datafeed is started.", "name": "node.address", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/ml_datafeeds/types.ts#L22-L87" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get datafeeds.\n\nGet configuration and usage information about datafeeds.\nThis API returns a maximum of 10,000 datafeeds.\nIf the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage`\ncluster privileges to use this API.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get datafeed statistics API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.ml_datafeeds" }, "path": [ { "description": "A numerical character string that uniquely identifies the datafeed.", "name": "datafeed_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n* Contains wildcard expressions and there are no datafeeds that match.\n* Contains the `_all` string or no identifiers and there are no matches.\n* Contains wildcard expressions and there are only partial matches.\n\nIf `true`, the API returns an empty datafeeds array when there are no matches and the subset of results when\nthere are partial matches. If `false`, the API returns a 404 status code when there are no matches or only\npartial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Comma-separated list of column names to display.", "name": "h", "required": false, "serverDefault": "['bc', 'id', 'sc', 's']", "type": { "kind": "instance_of", "type": { "name": "CatDatafeedColumns", "namespace": "cat._types" } } }, { "description": "Comma-separated list of column names or column aliases used to sort the response.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "CatDatafeedColumns", "namespace": "cat._types" } } }, { "description": "The unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/ml_datafeeds/CatDatafeedsRequest.ts#L24-L85" }, { "kind": "response", "body": { "kind": "value", "codegenName": "datafeeds", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DatafeedsRecord", "namespace": "cat.ml_datafeeds" } } } }, "examples": { "CatDatafeedsResponseExample1": { "description": "A successful response from `GET _cat/ml/datafeeds?v=true&format=json`.", "value": "[\n {\n \"id\": \"datafeed-high_sum_total_sales\",\n \"state\": \"stopped\",\n \"buckets.count\": \"743\",\n \"search.count\": \"7\"\n },\n {\n \"id\": \"datafeed-low_request_rate\",\n \"state\": \"stopped\",\n \"buckets.count\": \"1457\",\n \"search.count\": \"3\"\n },\n {\n \"id\": \"datafeed-response_code_rates\",\n \"state\": \"stopped\",\n \"buckets.count\": \"1460\",\n \"search.count\": \"18\"\n },\n {\n \"id\": \"datafeed-url_scanning\",\n \"state\": \"stopped\",\n \"buckets.count\": \"1460\",\n \"search.count\": \"18\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.ml_datafeeds" }, "specLocation": "cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "JobsRecord", "namespace": "cat.ml_jobs" }, "properties": [ { "description": "The anomaly detection job identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "s" ], "description": "The status of the anomaly detection job.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobState", "namespace": "ml._types" } } }, { "aliases": [ "ot" ], "description": "For open jobs only, the amount of time the job has been opened.", "name": "opened_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ae" ], "description": "For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.", "name": "assignment_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dpr", "dataProcessedRecords" ], "description": "The number of input documents that have been processed by the anomaly detection job.\nThis value includes documents with missing fields, since they are nonetheless analyzed.\nIf you use datafeeds and have aggregations in your search query, the `processed_record_count` is the number of aggregation results processed, not the number of Elasticsearch documents.", "name": "data.processed_records", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dpf", "dataProcessedFields" ], "description": "The total number of fields in all the documents that have been processed by the anomaly detection job.\nOnly fields that are specified in the detector configuration object contribute to this count.\nThe timestamp is not included in this count.", "name": "data.processed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dib", "dataInputBytes" ], "description": "The number of bytes of input data posted to the anomaly detection job.", "name": "data.input_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "dir", "dataInputRecords" ], "description": "The number of input documents posted to the anomaly detection job.", "name": "data.input_records", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dif", "dataInputFields" ], "description": "The total number of fields in input documents posted to the anomaly detection job.\nThis count includes fields that are not used in the analysis.\nHowever, be aware that if you are using a datafeed, it extracts only the required fields from the documents it retrieves before posting them to the job.", "name": "data.input_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "did", "dataInvalidDates" ], "description": "The number of input documents with either a missing date field or a date that could not be parsed.", "name": "data.invalid_dates", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dmf", "dataMissingFields" ], "description": "The number of input documents that are missing a field that the anomaly detection job is configured to analyze.\nInput documents with missing fields are still processed because it is possible that not all fields are missing.\nIf you are using datafeeds or posting data to the job in JSON format, a high `missing_field_count` is often not an indication of data issues.\nIt is not necessarily a cause for concern.", "name": "data.missing_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "doot", "dataOutOfOrderTimestamps" ], "description": "The number of input documents that have a timestamp chronologically preceding the start of the current anomaly detection bucket offset by the latency window.\nThis information is applicable only when you provide data to the anomaly detection job by using the post data API.\nThese out of order documents are discarded, since jobs require time series data to be in ascending chronological order.", "name": "data.out_of_order_timestamps", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "deb", "dataEmptyBuckets" ], "description": "The number of buckets which did not contain any data.\nIf your data contains many empty buckets, consider increasing your `bucket_span` or using functions that are tolerant to gaps in data such as mean, `non_null_sum` or `non_zero_count`.", "name": "data.empty_buckets", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dsb", "dataSparseBuckets" ], "description": "The number of buckets that contained few data points compared to the expected number of data points.\nIf your data contains many sparse buckets, consider using a longer `bucket_span`.", "name": "data.sparse_buckets", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "db", "dataBuckets" ], "description": "The total number of buckets processed.", "name": "data.buckets", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "der", "dataEarliestRecord" ], "description": "The timestamp of the earliest chronologically input document.", "name": "data.earliest_record", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dlr", "dataLatestRecord" ], "description": "The timestamp of the latest chronologically input document.", "name": "data.latest_record", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dl", "dataLast" ], "description": "The timestamp at which data was last analyzed, according to server time.", "name": "data.last", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dleb", "dataLastEmptyBucket" ], "description": "The timestamp of the last bucket that did not contain any data.", "name": "data.last_empty_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dlsb", "dataLastSparseBucket" ], "description": "The timestamp of the last bucket that was considered sparse.", "name": "data.last_sparse_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mb", "modelBytes" ], "description": "The number of bytes of memory used by the models.\nThis is the maximum value since the last time the model was persisted.\nIf the job is closed, this value indicates the latest size.", "name": "model.bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "mms", "modelMemoryStatus" ], "description": "The status of the mathematical models.", "name": "model.memory_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "MemoryStatus", "namespace": "ml._types" } } }, { "aliases": [ "mbe", "modelBytesExceeded" ], "description": "The number of bytes over the high limit for memory usage at the last allocation failure.", "name": "model.bytes_exceeded", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "mml", "modelMemoryLimit" ], "description": "The upper limit for model memory usage, checked on increasing values.", "name": "model.memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mbf", "modelByFields" ], "description": "The number of `by` field values that were analyzed by the models.\nThis value is cumulative for all detectors in the job.", "name": "model.by_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mof", "modelOverFields" ], "description": "The number of `over` field values that were analyzed by the models.\nThis value is cumulative for all detectors in the job.", "name": "model.over_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mpf", "modelPartitionFields" ], "description": "The number of `partition` field values that were analyzed by the models.\nThis value is cumulative for all detectors in the job.", "name": "model.partition_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mbaf", "modelBucketAllocationFailures" ], "description": "The number of buckets for which new entities in incoming data were not processed due to insufficient model memory.\nThis situation is also signified by a `hard_limit: memory_status` property value.", "name": "model.bucket_allocation_failures", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcs", "modelCategorizationStatus" ], "description": "The status of categorization for the job.", "name": "model.categorization_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "CategorizationStatus", "namespace": "ml._types" } } }, { "aliases": [ "mcdc", "modelCategorizedDocCount" ], "description": "The number of documents that have had a field categorized.", "name": "model.categorized_doc_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtcc", "modelTotalCategoryCount" ], "description": "The number of categories created by categorization.", "name": "model.total_category_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "modelFrequentCategoryCount" ], "description": "The number of categories that match more than 1% of categorized documents.", "name": "model.frequent_category_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mrcc", "modelRareCategoryCount" ], "description": "The number of categories that match just one categorized document.", "name": "model.rare_category_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mdcc", "modelDeadCategoryCount" ], "description": "The number of categories created by categorization that will never be assigned again because another category’s definition makes it a superset of the dead category.\nDead categories are a side effect of the way categorization has no prior training.", "name": "model.dead_category_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mfcc", "modelFailedCategoryCount" ], "description": "The number of times that categorization wanted to create a new category but couldn’t because the job had hit its `model_memory_limit`.\nThis count does not track which specific categories failed to be created.\nTherefore you cannot use this value to determine the number of unique categories that were missed.", "name": "model.failed_category_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mlt", "modelLogTime" ], "description": "The timestamp when the model stats were gathered, according to server time.", "name": "model.log_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mt", "modelTimestamp" ], "description": "The timestamp of the last record when the model stats were gathered.", "name": "model.timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ft", "forecastsTotal" ], "description": "The number of individual forecasts currently available for the job.\nA value of one or more indicates that forecasts exist.", "name": "forecasts.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fmmin", "forecastsMemoryMin" ], "description": "The minimum memory usage in bytes for forecasts related to the anomaly detection job.", "name": "forecasts.memory.min", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fmmax", "forecastsMemoryMax" ], "description": "The maximum memory usage in bytes for forecasts related to the anomaly detection job.", "name": "forecasts.memory.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fmavg", "forecastsMemoryAvg" ], "description": "The average memory usage in bytes for forecasts related to the anomaly detection job.", "name": "forecasts.memory.avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fmt", "forecastsMemoryTotal" ], "description": "The total memory usage in bytes for forecasts related to the anomaly detection job.", "name": "forecasts.memory.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "frmin", "forecastsRecordsMin" ], "description": "The minimum number of `model_forecast` documents written for forecasts related to the anomaly detection job.", "name": "forecasts.records.min", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "frmax", "forecastsRecordsMax" ], "description": "The maximum number of `model_forecast` documents written for forecasts related to the anomaly detection job.", "name": "forecasts.records.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fravg", "forecastsRecordsAvg" ], "description": "The average number of `model_forecast` documents written for forecasts related to the anomaly detection job.", "name": "forecasts.records.avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "frt", "forecastsRecordsTotal" ], "description": "The total number of `model_forecast` documents written for forecasts related to the anomaly detection job.", "name": "forecasts.records.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftmin", "forecastsTimeMin" ], "description": "The minimum runtime in milliseconds for forecasts related to the anomaly detection job.", "name": "forecasts.time.min", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftmax", "forecastsTimeMax" ], "description": "The maximum runtime in milliseconds for forecasts related to the anomaly detection job.", "name": "forecasts.time.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftavg", "forecastsTimeAvg" ], "description": "The average runtime in milliseconds for forecasts related to the anomaly detection job.", "name": "forecasts.time.avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftt", "forecastsTimeTotal" ], "description": "The total runtime in milliseconds for forecasts related to the anomaly detection job.", "name": "forecasts.time.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ni", "nodeId" ], "description": "The uniqe identifier of the assigned node.", "name": "node.id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "aliases": [ "nn", "nodeName" ], "description": "The name of the assigned node.", "name": "node.name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ne", "nodeEphemeralId" ], "description": "The ephemeral identifier of the assigned node.", "name": "node.ephemeral_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "aliases": [ "na", "nodeAddress" ], "description": "The network address of the assigned node.", "name": "node.address", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bc", "bucketsCount" ], "description": "The number of bucket results produced by the job.", "name": "buckets.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btt", "bucketsTimeTotal" ], "description": "The sum of all bucket processing times, in milliseconds.", "name": "buckets.time.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btmin", "bucketsTimeMin" ], "description": "The minimum of all bucket processing times, in milliseconds.", "name": "buckets.time.min", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btmax", "bucketsTimeMax" ], "description": "The maximum of all bucket processing times, in milliseconds.", "name": "buckets.time.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btea", "bucketsTimeExpAvg" ], "description": "The exponential moving average of all bucket processing times, in milliseconds.", "name": "buckets.time.exp_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bteah", "bucketsTimeExpAvgHour" ], "description": "The exponential moving average of bucket processing times calculated in a one hour time window, in milliseconds.", "name": "buckets.time.exp_avg_hour", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/ml_jobs/types.ts#L24-L347" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get anomaly detection jobs.\n\nGet configuration and usage information for anomaly detection jobs.\nThis API returns a maximum of 10,000 jobs.\nIf the Elasticsearch security features are enabled, you must have `monitor_ml`,\n`monitor`, `manage_ml`, or `manage` cluster privileges to use this API.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get anomaly detection job statistics API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.ml_jobs" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n* Contains wildcard expressions and there are no jobs that match.\n* Contains the `_all` string or no identifiers and there are no matches.\n* Contains wildcard expressions and there are only partial matches.\n\nIf `true`, the API returns an empty jobs array when there are no matches and the subset of results when there\nare partial matches. If `false`, the API returns a 404 status code when there are no matches or only partial\nmatches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "Comma-separated list of column names to display.", "name": "h", "required": false, "serverDefault": "buckets.count,data.processed_records,forecasts.total,id,model.bytes,model.memory_status,state", "type": { "kind": "instance_of", "type": { "name": "CatAnonalyDetectorColumns", "namespace": "cat._types" } } }, { "description": "Comma-separated list of column names or column aliases used to sort the response.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "CatAnonalyDetectorColumns", "namespace": "cat._types" } } }, { "description": "The unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/ml_jobs/CatJobsRequest.ts#L24-L89" }, { "kind": "response", "body": { "kind": "value", "codegenName": "jobs", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "JobsRecord", "namespace": "cat.ml_jobs" } } } }, "examples": { "CatJobsResponseExample1": { "description": "A successful response from `GET _cat/ml/anomaly_detectors?h=id,s,dpr,mb&v=true&format=json`.", "value": "[\n {\n \"id\": \"high_sum_total_sales\",\n \"s\": \"closed\",\n \"dpr\": \"14022\",\n \"mb\": \"1.5mb\"\n },\n {\n \"id\": \"low_request_rate\",\n \"s\": \"closed\",\n \"dpr\": \"1216\",\n \"mb\": \"40.5kb\"\n },\n {\n \"id\": \"response_code_rates\",\n \"s\": \"closed\",\n \"dpr\": \"28146\",\n \"mb\": \"132.7kb\"\n },\n {\n \"id\": \"url_scanning\",\n \"s\": \"closed\",\n \"dpr\": \"28146\",\n \"mb\": \"501.6kb\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.ml_jobs" }, "specLocation": "cat/ml_jobs/CatJobsResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get trained models.\n\nGet configuration and usage information about inference trained models.\n\nIMPORTANT: CAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get trained models statistics API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.ml_trained_models" }, "path": [ { "description": "A unique identifier for the trained model.", "name": "model_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches.\nIf `true`, the API returns an empty array when there are no matches and the subset of results when there are partial matches.\nIf `false`, the API returns a 404 status code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "A comma-separated list of column names to display.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "CatTrainedModelsColumns", "namespace": "cat._types" } } }, { "description": "A comma-separated list of column names or aliases used to sort the response.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "CatTrainedModelsColumns", "namespace": "cat._types" } } }, { "description": "Skips the specified number of transforms.", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of transforms to display.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/ml_trained_models/CatTrainedModelsRequest.ts#L25-L80" }, { "kind": "response", "body": { "kind": "value", "codegenName": "trained_models", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelsRecord", "namespace": "cat.ml_trained_models" } } } }, "examples": { "CatTrainedModelsResponseExample1": { "description": "A successful response from `GET _cat/ml/trained_models?v=true&format=json`.", "value": "[\n {\n \"id\": \"ddddd-1580216177138\",\n \"heap_size\": \"0b\",\n \"operations\": \"196\",\n \"create_time\": \"2025-03-25T00:01:38.662Z\",\n \"type\": \"pytorch\",\n \"ingest.pipelines\": \"0\",\n \"data_frame.id\": \"__none__\"\n },\n {\n \"id\": \"lang_ident_model_1\",\n \"heap_size\": \"1mb\",\n \"operations\": \"39629\",\n \"create_time\": \"2019-12-05T12:28:34.594Z\",\n \"type\": \"lang_ident\",\n \"ingest.pipelines\": \"0\",\n \"data_frame.id\": \"__none__\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.ml_trained_models" }, "specLocation": "cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "TrainedModelsRecord", "namespace": "cat.ml_trained_models" }, "properties": [ { "description": "The model identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "c", "createdBy" ], "description": "Information about the creator of the model.", "name": "created_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "hs", "modelHeapSize" ], "description": "The estimated heap size to keep the model in memory.", "name": "heap_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "o", "modelOperations" ], "description": "The estimated number of operations to use the model.\nThis number helps to measure the computational complexity of the model.", "name": "operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "l" ], "description": "The license level of the model.", "name": "license", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ct" ], "description": "The time the model was created.", "name": "create_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "aliases": [ "v" ], "description": "The version of Elasticsearch when the model was created.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "d" ], "description": "A description of the model.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ip", "ingestPipelines" ], "description": "The number of pipelines that are referencing the model.", "name": "ingest.pipelines", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ic", "ingestCount" ], "description": "The total number of documents that are processed by the model.", "name": "ingest.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "it", "ingestTime" ], "description": "The total time spent processing documents with thie model.", "name": "ingest.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "icurr", "ingestCurrent" ], "description": "The total number of documents that are currently being handled by the model.", "name": "ingest.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "if", "ingestFailed" ], "description": "The total number of failed ingest attempts with the model.", "name": "ingest.failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dfid", "dataFrameAnalytics" ], "description": "The identifier for the data frame analytics job that created the model.\nOnly displayed if the job is still available.", "name": "data_frame.id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dft", "dataFrameAnalyticsTime" ], "description": "The time the data frame analytics job was created.", "name": "data_frame.create_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dfsi", "dataFrameAnalyticsSrcIndex" ], "description": "The source index used to train in the data frame analysis.", "name": "data_frame.source_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dfa", "dataFrameAnalyticsAnalysis" ], "description": "The analysis used by the data frame to build the model.", "name": "data_frame.analysis", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/ml_trained_models/types.ts#L23-L115" }, { "kind": "interface", "name": { "name": "NodeAttributesRecord", "namespace": "cat.nodeattrs" }, "properties": [ { "description": "The node name.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The unique node identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The process identifier.", "name": "pid", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "h" ], "description": "The host name.", "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "i" ], "description": "The IP address.", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The bound transport port.", "name": "port", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The attribute name.", "name": "attr", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The attribute value.", "name": "value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/nodeattrs/types.ts#L20-L55" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get node attribute information.\n\nGet information about custom node attributes.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.nodeattrs" }, "path": [], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/nodeattrs/CatNodeAttributesRequest.ts#L24-L67" }, { "kind": "response", "body": { "kind": "value", "codegenName": "node_attributes", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeAttributesRecord", "namespace": "cat.nodeattrs" } } } }, "examples": { "CatNodeAttributesResponseExample1": { "description": "A successful response from `GET /_cat/nodeattrs?v=true&format=json`. The `node`, `host`, and `ip` columns provide basic information about each node. The `attr` and `value` columns return custom node attributes, one per line.\n", "summary": "Default columns", "value": "[\n {\n \"node\": \"node-0\",\n \"host\": \"127.0.0.1\",\n \"ip\": \"127.0.0.1\",\n \"attr\": \"testattr\",\n \"value\": \"test\"\n }\n]" }, "CatNodeAttributesResponseExample2": { "description": "A successful response from `GET /_cat/nodeattrs?v=true&h=name,pid,attr,value`. It returns the `name`, `pid`, `attr`, and `value` columns.\n", "summary": "Explicit columns", "value": "[\n {\n \"name\": \"node-0\",\n \"pid\": \"19566\",\n \"attr\": \"testattr\",\n \"value\": \"test\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.nodeattrs" }, "specLocation": "cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "NodesRecord", "namespace": "cat.nodes" }, "properties": [ { "aliases": [ "nodeId" ], "description": "The unique node identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "p" ], "description": "The process identifier.", "name": "pid", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "i" ], "description": "The IP address.", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "po" ], "description": "The bound transport port.", "name": "port", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "http" ], "description": "The bound HTTP address.", "name": "http_address", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The Elasticsearch version.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "f" ], "description": "The Elasticsearch distribution flavor.", "name": "flavor", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "t" ], "description": "The Elasticsearch distribution type.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "b" ], "description": "The Elasticsearch build hash.", "name": "build", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "j" ], "description": "The Java version.", "name": "jdk", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dt", "diskTotal" ], "description": "The total disk space.", "name": "disk.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "du", "diskUsed" ], "description": "The used disk space.", "name": "disk.used", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "d", "da", "disk", "diskAvail" ], "description": "The available disk space.", "name": "disk.avail", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "dup", "diskUsedPercent" ], "description": "The used disk space percentage.", "name": "disk.used_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "aliases": [ "hc", "heapCurrent" ], "description": "The used heap.", "name": "heap.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "hp", "heapPercent" ], "description": "The used heap ratio.", "name": "heap.percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "aliases": [ "hm", "heapMax" ], "description": "The maximum configured heap.", "name": "heap.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rc", "ramCurrent" ], "description": "The used machine memory.", "name": "ram.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rp", "ramPercent" ], "description": "The used machine memory ratio.", "name": "ram.percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "aliases": [ "rn", "ramMax" ], "description": "The total machine memory.", "name": "ram.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fdc", "fileDescriptorCurrent" ], "description": "The used file descriptors.", "name": "file_desc.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fdp", "fileDescriptorPercent" ], "description": "The used file descriptor ratio.", "name": "file_desc.percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "aliases": [ "fdm", "fileDescriptorMax" ], "description": "The maximum number of file descriptors.", "name": "file_desc.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The recent system CPU usage as a percentage.", "name": "cpu", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The load average for the most recent minute.", "name": "load_1m", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The load average for the last five minutes.", "name": "load_5m", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "l" ], "description": "The load average for the last fifteen minutes.", "name": "load_15m", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "u" ], "description": "The node uptime.", "name": "uptime", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r", "role", "nodeRole" ], "description": "The roles of the node.\nReturned values include `c`(cold node), `d`(data node), `f`(frozen node), `h`(hot node), `i`(ingest node), `l`(machine learning node), `m` (master eligible node), `r`(remote cluster client node), `s`(content node), `t`(transform node), `v`(voting-only node), `w`(warm node),and `-`(coordinating node only).", "name": "node.role", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "m" ], "description": "Indicates whether the node is the elected master node.\nReturned values include `*`(elected master) and `-`(not elected master).", "name": "master", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "n" ], "description": "The node name.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "aliases": [ "cs", "completionSize" ], "description": "The size of completion.", "name": "completion.size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fm", "fielddataMemory" ], "description": "The used fielddata cache.", "name": "fielddata.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fe", "fielddataEvictions" ], "description": "The fielddata evictions.", "name": "fielddata.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qcm", "queryCacheMemory" ], "description": "The used query cache.", "name": "query_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qce", "queryCacheEvictions" ], "description": "The query cache evictions.", "name": "query_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qchc", "queryCacheHitCount" ], "description": "The query cache hit counts.", "name": "query_cache.hit_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qcmc", "queryCacheMissCount" ], "description": "The query cache miss counts.", "name": "query_cache.miss_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rcm", "requestCacheMemory" ], "description": "The used request cache.", "name": "request_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rce", "requestCacheEvictions" ], "description": "The request cache evictions.", "name": "request_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rchc", "requestCacheHitCount" ], "description": "The request cache hit counts.", "name": "request_cache.hit_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rcmc", "requestCacheMissCount" ], "description": "The request cache miss counts.", "name": "request_cache.miss_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ft", "flushTotal" ], "description": "The number of flushes.", "name": "flush.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftt", "flushTotalTime" ], "description": "The time spent in flush.", "name": "flush.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gc", "getCurrent" ], "description": "The number of current get ops.", "name": "get.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gti", "getTime" ], "description": "The time spent in get.", "name": "get.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gto", "getTotal" ], "description": "The number of get ops.", "name": "get.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "geti", "getExistsTime" ], "description": "The time spent in successful gets.", "name": "get.exists_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "geto", "getExistsTotal" ], "description": "The number of successful get operations.", "name": "get.exists_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gmti", "getMissingTime" ], "description": "The time spent in failed gets.", "name": "get.missing_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gmto", "getMissingTotal" ], "description": "The number of failed gets.", "name": "get.missing_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idc", "indexingDeleteCurrent" ], "description": "The number of current deletions.", "name": "indexing.delete_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idti", "indexingDeleteTime" ], "description": "The time spent in deletions.", "name": "indexing.delete_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idto", "indexingDeleteTotal" ], "description": "The number of delete operations.", "name": "indexing.delete_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iic", "indexingIndexCurrent" ], "description": "The number of current indexing operations.", "name": "indexing.index_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iiti", "indexingIndexTime" ], "description": "The time spent in indexing.", "name": "indexing.index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iito", "indexingIndexTotal" ], "description": "The number of indexing operations.", "name": "indexing.index_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iif", "indexingIndexFailed" ], "description": "The number of failed indexing operations.", "name": "indexing.index_failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mc", "mergesCurrent" ], "description": "The number of current merges.", "name": "merges.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcd", "mergesCurrentDocs" ], "description": "The number of current merging docs.", "name": "merges.current_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcs", "mergesCurrentSize" ], "description": "The size of current merges.", "name": "merges.current_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mt", "mergesTotal" ], "description": "The number of completed merge operations.", "name": "merges.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtd", "mergesTotalDocs" ], "description": "The docs merged.", "name": "merges.total_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mts", "mergesTotalSize" ], "description": "The size merged.", "name": "merges.total_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtt", "mergesTotalTime" ], "description": "The time spent in merges.", "name": "merges.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total refreshes.", "name": "refresh.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The time spent in refreshes.", "name": "refresh.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rto", "refreshTotal" ], "description": "The total external refreshes.", "name": "refresh.external_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rti", "refreshTime" ], "description": "The time spent in external refreshes.", "name": "refresh.external_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rli", "refreshListeners" ], "description": "The number of pending refresh listeners.", "name": "refresh.listeners", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scrcc", "scriptCompilations" ], "description": "The total script compilations.", "name": "script.compilations", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scrce", "scriptCacheEvictions" ], "description": "The total compiled scripts evicted from the cache.", "name": "script.cache_evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scrclt", "scriptCacheCompilationLimitTriggered" ], "description": "The script cache compilation limit triggered.", "name": "script.compilation_limit_triggered", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfc", "searchFetchCurrent" ], "description": "The current fetch phase operations.", "name": "search.fetch_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfti", "searchFetchTime" ], "description": "The time spent in fetch phase.", "name": "search.fetch_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfto", "searchFetchTotal" ], "description": "The total fetch operations.", "name": "search.fetch_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "so", "searchOpenContexts" ], "description": "The open search contexts.", "name": "search.open_contexts", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqc", "searchQueryCurrent" ], "description": "The current query phase operations.", "name": "search.query_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqti", "searchQueryTime" ], "description": "The time spent in query phase.", "name": "search.query_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqto", "searchQueryTotal" ], "description": "The total query phase operations.", "name": "search.query_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scc", "searchScrollCurrent" ], "description": "The open scroll contexts.", "name": "search.scroll_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scti", "searchScrollTime" ], "description": "The time scroll contexts held open.", "name": "search.scroll_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scto", "searchScrollTotal" ], "description": "The completed scroll contexts.", "name": "search.scroll_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sc", "segmentsCount" ], "description": "The number of segments.", "name": "segments.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sm", "segmentsMemory" ], "description": "The memory used by segments.", "name": "segments.memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "siwm", "segmentsIndexWriterMemory" ], "description": "The memory used by the index writer.", "name": "segments.index_writer_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "svmm", "segmentsVersionMapMemory" ], "description": "The memory used by the version map.", "name": "segments.version_map_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfbm", "fixedBitsetMemory" ], "description": "The memory used by fixed bit sets for nested object field types and export type filters for types referred in _parent fields.", "name": "segments.fixed_bitset_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "suc", "suggestCurrent" ], "description": "The number of current suggest operations.", "name": "suggest.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "suti", "suggestTime" ], "description": "The time spend in suggest.", "name": "suggest.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "suto", "suggestTotal" ], "description": "The number of suggest operations.", "name": "suggest.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bto", "bulkTotalOperations" ], "description": "The number of bulk shard operations.", "name": "bulk.total_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btti", "bulkTotalTime" ], "description": "The time spend in shard bulk.", "name": "bulk.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btsi", "bulkTotalSizeInBytes" ], "description": "The total size in bytes of shard bulk.", "name": "bulk.total_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bati", "bulkAvgTime" ], "description": "The average time spend in shard bulk.", "name": "bulk.avg_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "basi", "bulkAvgSizeInBytes" ], "description": "The average size in bytes of shard bulk.", "name": "bulk.avg_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/nodes/types.ts#L23-L542" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get node information.\n\nGet information about the nodes in a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.nodes" }, "path": [], "query": [ { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "If `true`, return the full node ID. If `false`, return the shortened node ID.", "name": "full_id", "required": false, "serverDefault": "false", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "description": "If true, the response includes information from segments that are not loaded into memory.", "name": "include_unloaded_segments", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/nodes/CatNodesRequest.ts#L24-L77" }, { "kind": "response", "body": { "kind": "value", "codegenName": "nodes", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodesRecord", "namespace": "cat.nodes" } } } }, "examples": { "CatNodesResponseExample1": { "description": "A successful response from `GET /_cat/nodes?v=true&format=json`. The `ip`, `heap.percent`, `ram.percent`, `cpu`, and `load_*` columns provide the IP addresses and performance information of each node. The `node.role`, `master`, and `name` columns provide information useful for monitoring an entire cluster, particularly large ones.\n", "summary": "Default columns", "value": "[\n {\n \"ip\": \"127.0.0.1\",\n \"heap.percent\": \"65\",\n \"ram.percent\": \"99\",\n \"cpu\": \"42\",\n \"load_1m\": \"3.07\",\n \"load_5m\": null,\n \"load_15m\": null,\n \"node.role\": \"cdfhilmrstw\",\n \"master\": \"*\",\n \"name\": \"mJw06l1\"\n }\n]" }, "CatNodesResponseExample2": { "description": "A successful response from `GET /_cat/nodes?v=true&h=id,ip,port,v,m&format=json`. It returns the `id`, `ip`, `port`, `v` (version), and `m` (master) columns.\n", "summary": "Explicit columns", "value": "[\n {\n \"id\": \"veJR\",\n \"ip\": \"127.0.0.1\",\n \"port\": \"59938\",\n \"v\": \"9.0.0\",\n \"m\": \"*\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.nodes" }, "specLocation": "cat/nodes/CatNodesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "PendingTasksRecord", "namespace": "cat.pending_tasks" }, "properties": [ { "aliases": [ "o" ], "description": "The task insertion order.", "name": "insertOrder", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "t" ], "description": "Indicates how long the task has been in queue.", "name": "timeInQueue", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p" ], "description": "The task priority.", "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "s" ], "description": "The task source.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/pending_tasks/types.ts#L20-L41" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get pending task information.\n\nGet information about cluster-level changes that have not yet taken effect.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.pending_tasks" }, "path": [], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/pending_tasks/CatPendingTasksRequest.ts#L24-L71" }, { "kind": "response", "body": { "kind": "value", "codegenName": "pending_tasks", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PendingTasksRecord", "namespace": "cat.pending_tasks" } } } }, "examples": { "CatPendingTasksResponseExample1": { "description": "A successful response from `GET /_cat/pending_tasks?v=trueh=insertOrder,timeInQueue,priority,source&format=json`.\n", "value": "[\n { \"insertOrder\": \"1685\", \"timeInQueue\": \"855ms\", \"priority\": \"HIGH\", \"source\": \"update-mapping [foo][t]\"},\n { \"insertOrder\": \"1686\", \"timeInQueue\": \"843ms\", \"priority\": \"HIGH\", \"source\": \"update-mapping [foo][t]\"},\n { \"insertOrder\": \"1693\", \"timeInQueue\": \"753ms\", \"priority\": \"HIGH\", \"source\": \"refresh-mapping [foo][[t]]\"},\n { \"insertOrder\": \"1688\", \"timeInQueue\": \"816ms\", \"priority\": \"HIGH\", \"source\": \"update-mapping [foo][t]\"},\n { \"insertOrder\": \"1689\", \"timeInQueue\": \"802ms\", \"priority\": \"HIGH\", \"source\": \"update-mapping [foo][t]\"},\n { \"insertOrder\": \"1690\", \"timeInQueue\": \"787ms\", \"priority\": \"HIGH\", \"source\": \"update-mapping [foo][t]\"},\n { \"insertOrder\": \"1691\", \"timeInQueue\": \"773ms\", \"priority\": \"HIGH\", \"source\": \"update-mapping [foo][t]\"}\n]" } }, "name": { "name": "Response", "namespace": "cat.pending_tasks" }, "specLocation": "cat/pending_tasks/CatPendingTasksResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "PluginsRecord", "namespace": "cat.plugins" }, "properties": [ { "description": "The unique node identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "aliases": [ "n" ], "description": "The node name.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "aliases": [ "c" ], "description": "The component name.", "name": "component", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The component version.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "d" ], "description": "The plugin details.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "t" ], "description": "The plugin type.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/plugins/types.ts#L22-L52" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get plugin information.\n\nGet a list of plugins running on each node of a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.plugins" }, "path": [], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Include bootstrap plugins in the response", "name": "include_bootstrap", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/plugins/CatPluginsRequest.ts#L24-L72" }, { "kind": "response", "body": { "kind": "value", "codegenName": "plugins", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PluginsRecord", "namespace": "cat.plugins" } } } }, "examples": { "CatPluginsResponseExample1": { "description": "A successful response from `GET /_cat/plugins?v=true&s=component&h=name,component,version,description&format=json`.\n", "value": "[\n { \"name\": \"U7321H6\", \"component\": \"analysis-icu\", \"version\": \"8.17.0\", \"description\": \"The ICU Analysis plugin integrates the Lucene ICU module into Elasticsearch, adding ICU-related analysis components.\"},\n {\"name\": \"U7321H6\", \"component\": \"analysis-kuromoji\", \"verison\": \"8.17.0\", description: \"The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.\"},\n {\"name\" \"U7321H6\", \"component\": \"analysis-nori\", \"version\": \"8.17.0\", \"description\": \"The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch.\"},\n {\"name\": \"U7321H6\", \"component\": \"analysis-phonetic\", \"verison\": \"8.17.0\", \"description\": \"The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.\"},\n {\"name\": \"U7321H6\", \"component\": \"analysis-smartcn\", \"verison\": \"8.17.0\", \"description\": \"Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.\"},\n {\"name\": \"U7321H6\", \"component\": \"analysis-stempel\", \"verison\": \"8.17.0\", \"description\": \"The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.\"},\n {\"name\": \"U7321H6\", \"component\": \"analysis-ukrainian\", \"verison\": \"8.17.0\", \"description\": \"The Ukrainian Analysis plugin integrates the Lucene UkrainianMorfologikAnalyzer into elasticsearch.\"},\n {\"name\": \"U7321H6\", \"component\": \"discovery-azure-classic\", \"verison\": \"8.17.0\", \"description\": \"The Azure Classic Discovery plugin allows to use Azure Classic API for the unicast discovery mechanism\"},\n {\"name\": \"U7321H6\", \"component\": \"discovery-ec2\", \"verison\": \"8.17.0\", \"description\": \"The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism.\"},\n {\"name\": \"U7321H6\", \"component\": \"discovery-gce\", \"verison\": \"8.17.0\", \"description\": \"The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.\"},\n {\"name\": \"U7321H6\", \"component\": \"mapper-annotated-text\", \"verison\": \"8.17.0\", \"description\": \"The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index.\"},\n {\"name\": \"U7321H6\", \"component\": \"mapper-murmur3\", \"verison\": \"8.17.0\", \"description\": \"The Mapper Murmur3 plugin allows to compute hashes of a field's values at index-time and to store them in the index.\"},\n {\"name\": \"U7321H6\", \"component\": \"mapper-size\", \"verison\": \"8.17.0\", \"description\": \"The Mapper Size plugin allows document to record their uncompressed size at index time.\"},\n {\"name\": \"U7321H6\", \"component\": \"store-smb\", \"verison\": \"8.17.0\", \"description\": \"The Store SMB plugin adds support for SMB stores.\"}\n]" } }, "name": { "name": "Response", "namespace": "cat.plugins" }, "specLocation": "cat/plugins/CatPluginsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "RecoveryRecord", "namespace": "cat.recovery" }, "properties": [ { "aliases": [ "i", "idx" ], "description": "The index name.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "aliases": [ "s", "sh" ], "description": "The shard name.", "name": "shard", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "start" ], "description": "The recovery start time.", "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "aliases": [ "start_millis" ], "description": "The recovery start time in epoch milliseconds.", "name": "start_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "aliases": [ "stop" ], "description": "The recovery stop time.", "name": "stop_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "aliases": [ "stop_millis" ], "description": "The recovery stop time in epoch milliseconds.", "name": "stop_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "aliases": [ "t", "ti" ], "description": "The recovery time.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "aliases": [ "ty" ], "description": "The recovery type.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "st" ], "description": "The recovery stage.", "name": "stage", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "shost" ], "description": "The source host.", "name": "source_host", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "snode" ], "description": "The source node name.", "name": "source_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "thost" ], "description": "The target host.", "name": "target_host", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "tnode" ], "description": "The target node name.", "name": "target_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rep" ], "description": "The repository name.", "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "snap" ], "description": "The snapshot name.", "name": "snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "f" ], "description": "The number of files to recover.", "name": "files", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fr" ], "description": "The files recovered.", "name": "files_recovered", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fp" ], "description": "The ratio of files recovered.", "name": "files_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "aliases": [ "tf" ], "description": "The total number of files.", "name": "files_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "b" ], "description": "The number of bytes to recover.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "br" ], "description": "The bytes recovered.", "name": "bytes_recovered", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bp" ], "description": "The ratio of bytes recovered.", "name": "bytes_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "aliases": [ "tb" ], "description": "The total number of bytes.", "name": "bytes_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "to" ], "description": "The number of translog operations to recover.", "name": "translog_ops", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "tor" ], "description": "The translog operations recovered.", "name": "translog_ops_recovered", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "top" ], "description": "The ratio of translog operations recovered.", "name": "translog_ops_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } } ], "specLocation": "cat/recovery/types.ts#L24-L155" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get shard recovery information.\n\nGet information about ongoing and completed shard recoveries.\nShard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing.\nFor data streams, the API returns information about the stream’s backing indices.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.recovery" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, the response only includes ongoing shard recoveries.", "name": "active_only", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "If `true`, the response includes detailed information about shard recoveries.", "name": "detailed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Comma-separated list or wildcard expression of index names to limit the returned information", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/recovery/CatRecoveryRequest.ts#L24-L90" }, { "kind": "response", "body": { "kind": "value", "codegenName": "recovery_records", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RecoveryRecord", "namespace": "cat.recovery" } } } }, "examples": { "CatRecoveryResponseExample1": { "description": "A successful response from `GET _cat/recovery?v=true&format=json`. In this example, the source and target nodes are the same because the recovery type is `store`, meaning they were read from local storage on node start.\n", "summary": "No ongoing recoveries", "value": "[\n {\n \"index\": \"my-index-000001 \",\n \"shard\": \"0\",\n \"time\": \"13ms\",\n \"type\": \"store\",\n \"stage\": \"done\",\n \"source_host\": \"n/a\",\n \"source_node\": \"n/a\",\n \"target_host\": \"127.0.0.1\",\n \"target_node\": \"node-0\",\n \"repository\": \"n/a\",\n \"snapshot\": \"n/a\",\n \"files\": \"0\",\n \"files_recovered\": \"0\",\n \"files_percent\": \"100.0%\",\n \"files_total\": \"13\",\n \"bytes\": \"0b\",\n \"bytes_recovered\": \"0b\",\n \"bytes_percent\": \"100.0%\",\n \"bytes_total\": \"9928b\",\n \"translog_ops\": \"0\",\n \"translog_ops_recovered\": \"0\",\n \"translog_ops_percent\": \"100.0%\"\n }\n]" }, "CatRecoveryResponseExample2": { "description": "A successful response from `GET _cat/recovery?v=true&h=i,s,t,ty,st,shost,thost,f,fp,b,bp&format=json`. You can retrieve information about an ongoing recovery for example when you increase the replica count of an index and bring another node online to host the replicas. In this example, the recovery type is `peer`, meaning the shard recovered from another node. The `files` and `bytes` are real-time measurements.\n", "summary": "A live shard recovery", "value": "[\n {\n \"i\": \"my-index-000001\",\n \"s\": \"0\",\n \"t\": \"1252ms\",\n \"ty\": \"peer\",\n \"st\": \"done\",\n \"shost\": \"192.168.1.1\",\n \"thost\": \"192.168.1.1\",\n \"f\": \"0\",\n \"fp\": \"100.0%\",\n \"b\": \"0b\",\n \"bp\": \"100.0%\",\n }\n]" }, "CatRecoveryResponseExample3": { "description": "A successful response from `GET _cat/recovery?v=true&h=i,s,t,ty,st,rep,snap,f,fp,b,bp&format=json`. You can restore backups of an index using the snapshot and restore API. You can use the cat recovery API to get information about a snapshot recovery.\n", "summary": "A snapshot recovery", "value": "[\n {\n \"i\": \"my-index-000001\",\n \"s\": \"0\",\n \"t\": \"1978ms\",\n \"ty\": \"snapshot\",\n \"st\": \"done\",\n \"rep\": \"my-repo\",\n \"snap\": \"snap-1\",\n \"f\": \"79\",\n \"fp\": \"8.0%\",\n \"b\": \"12086\",\n \"bp\": \"9.0%\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.recovery" }, "specLocation": "cat/recovery/CatRecoveryResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "RepositoriesRecord", "namespace": "cat.repositories" }, "properties": [ { "aliases": [ "repoId" ], "description": "The unique repository identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "t" ], "description": "The repository type.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/repositories/types.ts#L20-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get snapshot repository information.\n\nGet a list of snapshot repositories for a cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.repositories" }, "path": [], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/repositories/CatRepositoriesRequest.ts#L24-L67" }, { "kind": "response", "body": { "kind": "value", "codegenName": "repositories", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RepositoriesRecord", "namespace": "cat.repositories" } } } }, "examples": { "CatRepositoriesResponseExample1": { "description": "A successful response from `GET /_cat/repositories?v=true&format=json`.\n", "value": "[\n {\n \"id\": \"repo1\",\n \"type\": \"fs\"\n },\n {\n \"id\": \"repo2\",\n \"type\": \"s3\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.repositories" }, "specLocation": "cat/repositories/CatRepositoriesResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get segment information.\n\nGet low-level information about the Lucene segments in index shards.\nFor data streams, the API returns information about the backing indices.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.segments" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/segments/CatSegmentsRequest.ts#L24-L85" }, { "kind": "response", "body": { "kind": "value", "codegenName": "segments", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SegmentsRecord", "namespace": "cat.segments" } } } }, "examples": { "CatSegmentsResponseExample1": { "description": "A successful response from `GET /_cat/segments?v=true&format=json`.\n", "value": "[\n {\n \"index\": \"test\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"ip\": \"127.0.0.1\",\n \"segment\": \"_0\",\n \"generation\": \"0\",\n \"docs.count\": \"1\",\n \"docs.deleted\": \"0\",\n \"size\": \"3kb\",\n \"size.memory\": \"0\",\n \"committed\": \"false\",\n \"searchable\": \"true\",\n \"version\": \"9.12.0\",\n \"compound\": \"true\"\n },\n {\n \"index\": \"test1\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"ip\": \"127.0.0.1\",\n \"segment\": \"_0\",\n \"generation\": \"0\",\n \"docs.count\": \"1\",\n \"docs.deleted\": \"0\",\n \"size\": \"3kb\",\n \"size.memory\": \"0\",\n \"committed\": \"false\",\n \"searchable\": \"true\",\n \"version\": \"9.12.0\",\n \"compound\": \"true\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.segments" }, "specLocation": "cat/segments/CatSegmentsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "SegmentsRecord", "namespace": "cat.segments" }, "properties": [ { "aliases": [ "i", "idx" ], "description": "The index name.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "aliases": [ "s", "sh" ], "description": "The shard name.", "name": "shard", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p", "pr", "primaryOrReplica" ], "description": "The shard type: `primary` or `replica`.", "name": "prirep", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The IP address of the node where it lives.", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The unique identifier of the node where it lives.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "aliases": [ "seg" ], "description": "The segment name, which is derived from the segment generation and used internally to create file names in the directory of the shard.", "name": "segment", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "g", "gen" ], "description": "The segment generation number.\nElasticsearch increments this generation number for each segment written then uses this number to derive the segment name.", "name": "generation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dc", "docsCount" ], "description": "The number of documents in the segment.\nThis excludes deleted documents and counts any nested documents separately from their parents.\nIt also excludes documents which were indexed recently and do not yet belong to a segment.", "name": "docs.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dd", "docsDeleted" ], "description": "The number of deleted documents in the segment, which might be higher or lower than the number of delete operations you have performed.\nThis number excludes deletes that were performed recently and do not yet belong to a segment.\nDeleted documents are cleaned up by the automatic merge process if it makes sense to do so.\nAlso, Elasticsearch creates extra deleted documents to internally track the recent history of operations on a shard.", "name": "docs.deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "si" ], "description": "The segment size in bytes.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "sm", "sizeMemory" ], "description": "The segment memory in bytes.\nA value of `-1` indicates Elasticsearch was unable to compute this number.", "name": "size.memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "aliases": [ "ic", "isCommitted" ], "description": "If `true`, the segment is synced to disk.\nSegments that are synced can survive a hard reboot.\nIf `false`, the data from uncommitted segments is also stored in the transaction log so that Elasticsearch is able to replay changes on the next start.", "name": "committed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "is", "isSearchable" ], "description": "If `true`, the segment is searchable.\nIf `false`, the segment has most likely been written to disk but needs a refresh to be searchable.", "name": "searchable", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The version of Lucene used to write the segment.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "ico", "isCompound" ], "description": "If `true`, the segment is stored in a compound file.\nThis means Lucene merged all files from the segment in a single file to save file descriptors.", "name": "compound", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/segments/types.ts#L22-L107" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get shard information.\n\nGet information about the shards in a cluster.\nFor data streams, the API returns information about the backing indices.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.shards" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "The unit used to display byte values.", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Bytes", "namespace": "_types" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/shards/CatShardsRequest.ts#L24-L81" }, { "kind": "response", "body": { "kind": "value", "codegenName": "shards", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardsRecord", "namespace": "cat.shards" } } } }, "examples": { "CatShardsResponseExample1": { "description": "A successful response from `GET _cat/shards?format=json`.\n", "summary": "A single data stream or index", "value": "[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"STARTED\",\n \"docs\": \"3014\",\n \"store\": \"31.1mb\",\n \"dataset\": \"249b\",\n \"ip\": \"192.168.56.10\",\n \"node\": \"H5dfFeA\"\n }\n]" }, "CatShardsResponseExample2": { "description": "A successful response from `GET _cat/shards/my-index-*?format=json`. It returns information for any data streams or indices beginning with `my-index-`.\n", "summary": "A wildcard pattern", "value": "[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"STARTED\",\n \"docs\": \"3014\",\n \"store\": \"31.1mb\",\n \"dataset\": \"249b\",\n \"ip\": \"192.168.56.10\",\n \"node\": \"H5dfFeA\"\n }\n]" }, "CatShardsResponseExample3": { "description": "A successful response from `GET _cat/shards?format=json`. The `RELOCATING` value in the `state` column indicates the index shard is relocating.\n", "summary": "A relocating shard", "value": "[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"RELOCATING\",\n \"docs\": \"3014\",\n \"store\": \"31.1mb\",\n \"dataset\": \"249b\",\n \"ip\": \"192.168.56.10\",\n \"node\": \"H5dfFeA -> -> 192.168.56.30 bGG90GE\"\n }\n]" }, "CatShardsResponseExample4": { "description": "A successful response from `GET _cat/shards?format=json`. Before a shard is available for use, it goes through an `INITIALIZING` state. You can use the cat shards API to see which shards are initializing.\n", "summary": "Shard states", "value": "[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"STARTED\",\n \"docs\": \"3014\",\n \"store\": \"31.1mb\",\n \"dataset\": \"249b\",\n \"ip\": \"192.168.56.10\",\n \"node\": \"H5dfFeA\"\n },\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"r\",\n \"state\": \"INITIALIZING\",\n \"docs\": \"0\",\n \"store\": \"14.3mb\",\n \"dataset\": \"249b\",\n \"ip\": \"192.168.56.30\",\n \"node\": \"bGG90GE\"\n }\n]" }, "CatShardsResponseExample5": { "description": "A successful response from `GET _cat/shards?h=index,shard,prirep,state,unassigned.reason&format=json`. It includes the `unassigned.reason` column, which indicates why a shard is unassigned.\n", "summary": "Reasons for unassigned shards", "value": "[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"STARTED\",\n \"unassigned.reason\": \"3014 31.1mb 192.168.56.10 H5dfFeA\"\n },\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"r\",\n \"state\": \"STARTED\",\n \"unassigned.reason\": \"3014 31.1mb 192.168.56.30 bGG90GE\"\n },\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"r\",\n \"state\": \"STARTED\",\n \"unassigned.reason\": \"3014 31.1mb 192.168.56.20 I8hydUG\"\n },\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"r\",\n \"state\": \"UNASSIGNED\",\n \"unassigned.reason\": \"ALLOCATION_FAILED\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.shards" }, "specLocation": "cat/shards/CatShardsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "ShardsRecord", "namespace": "cat.shards" }, "properties": [ { "aliases": [ "i", "idx" ], "description": "The index name.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "s", "sh" ], "description": "The shard name.", "name": "shard", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p", "pr", "primaryOrReplica" ], "description": "The shard type: `primary` or `replica`.", "name": "prirep", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "st" ], "description": "The shard state.\nReturned values include:\n`INITIALIZING`: The shard is recovering from a peer shard or gateway.\n`RELOCATING`: The shard is relocating.\n`STARTED`: The shard has started.\n`UNASSIGNED`: The shard is not assigned to any node.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "d", "dc" ], "description": "The number of documents in the shard.", "name": "docs", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "sto" ], "description": "The disk space used by the shard.", "name": "store", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "availability": { "serverless": { "stability": "stable", "visibility": "public" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "total size of dataset (including the cache for partially mounted indices)", "name": "dataset", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The IP address of the node.", "name": "ip", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The unique identifier for the node.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "n" ], "description": "The name of node.", "name": "node", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The sync identifier.", "name": "sync_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ur" ], "description": "The reason for the last change to the state of an unassigned shard.\nIt does not explain why the shard is currently unassigned; use the cluster allocation explain API for that information.\nReturned values include:\n`ALLOCATION_FAILED`: Unassigned as a result of a failed allocation of the shard.\n`CLUSTER_RECOVERED`: Unassigned as a result of a full cluster recovery.\n`DANGLING_INDEX_IMPORTED`: Unassigned as a result of importing a dangling index.\n`EXISTING_INDEX_RESTORED`: Unassigned as a result of restoring into a closed index.\n`FORCED_EMPTY_PRIMARY`: The shard’s allocation was last modified by forcing an empty primary using the cluster reroute API.\n`INDEX_CLOSED`: Unassigned because the index was closed.\n`INDEX_CREATED`: Unassigned as a result of an API creation of an index.\n`INDEX_REOPENED`: Unassigned as a result of opening a closed index.\n`MANUAL_ALLOCATION`: The shard’s allocation was last modified by the cluster reroute API.\n`NEW_INDEX_RESTORED`: Unassigned as a result of restoring into a new index.\n`NODE_LEFT`: Unassigned as a result of the node hosting it leaving the cluster.\n`NODE_RESTARTING`: Similar to `NODE_LEFT`, except that the node was registered as restarting using the node shutdown API.\n`PRIMARY_FAILED`: The shard was initializing as a replica, but the primary shard failed before the initialization completed.\n`REALLOCATED_REPLICA`: A better replica location is identified and causes the existing replica allocation to be cancelled.\n`REINITIALIZED`: When a shard moves from started back to initializing.\n`REPLICA_ADDED`: Unassigned as a result of explicit addition of a replica.\n`REROUTE_CANCELLED`: Unassigned as a result of explicit cancel reroute command.", "name": "unassigned.reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ua" ], "description": "The time at which the shard became unassigned in Coordinated Universal Time (UTC).", "name": "unassigned.at", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "uf" ], "description": "The time at which the shard was requested to be unassigned in Coordinated Universal Time (UTC).", "name": "unassigned.for", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ud" ], "description": "Additional details as to why the shard became unassigned.\nIt does not explain why the shard is not assigned; use the cluster allocation explain API for that information.", "name": "unassigned.details", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rs" ], "description": "The type of recovery source.", "name": "recoverysource.type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "cs", "completionSize" ], "description": "The size of completion.", "name": "completion.size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fm", "fielddataMemory" ], "description": "The used fielddata cache memory.", "name": "fielddata.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fe", "fielddataEvictions" ], "description": "The fielddata cache evictions.", "name": "fielddata.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qcm", "queryCacheMemory" ], "description": "The used query cache memory.", "name": "query_cache.memory_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qce", "queryCacheEvictions" ], "description": "The query cache evictions.", "name": "query_cache.evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ft", "flushTotal" ], "description": "The number of flushes.", "name": "flush.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ftt", "flushTotalTime" ], "description": "The time spent in flush.", "name": "flush.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gc", "getCurrent" ], "description": "The number of current get operations.", "name": "get.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gti", "getTime" ], "description": "The time spent in get operations.", "name": "get.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gto", "getTotal" ], "description": "The number of get operations.", "name": "get.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "geti", "getExistsTime" ], "description": "The time spent in successful get operations.", "name": "get.exists_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "geto", "getExistsTotal" ], "description": "The number of successful get operations.", "name": "get.exists_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gmti", "getMissingTime" ], "description": "The time spent in failed get operations.", "name": "get.missing_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "gmto", "getMissingTotal" ], "description": "The number of failed get operations.", "name": "get.missing_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idc", "indexingDeleteCurrent" ], "description": "The number of current deletion operations.", "name": "indexing.delete_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idti", "indexingDeleteTime" ], "description": "The time spent in deletion operations.", "name": "indexing.delete_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idto", "indexingDeleteTotal" ], "description": "The number of delete operations.", "name": "indexing.delete_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iic", "indexingIndexCurrent" ], "description": "The number of current indexing operations.", "name": "indexing.index_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iiti", "indexingIndexTime" ], "description": "The time spent in indexing operations.", "name": "indexing.index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iito", "indexingIndexTotal" ], "description": "The number of indexing operations.", "name": "indexing.index_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "iif", "indexingIndexFailed" ], "description": "The number of failed indexing operations.", "name": "indexing.index_failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mc", "mergesCurrent" ], "description": "The number of current merge operations.", "name": "merges.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcd", "mergesCurrentDocs" ], "description": "The number of current merging documents.", "name": "merges.current_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mcs", "mergesCurrentSize" ], "description": "The size of current merge operations.", "name": "merges.current_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mt", "mergesTotal" ], "description": "The number of completed merge operations.", "name": "merges.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtd", "mergesTotalDocs" ], "description": "The nuber of merged documents.", "name": "merges.total_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mts", "mergesTotalSize" ], "description": "The size of current merges.", "name": "merges.total_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mtt", "mergesTotalTime" ], "description": "The time spent merging documents.", "name": "merges.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total number of refreshes.", "name": "refresh.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The time spent in refreshes.", "name": "refresh.time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rto", "refreshTotal" ], "description": "The total nunber of external refreshes.", "name": "refresh.external_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rti", "refreshTime" ], "description": "The time spent in external refreshes.", "name": "refresh.external_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "rli", "refreshListeners" ], "description": "The number of pending refresh listeners.", "name": "refresh.listeners", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfc", "searchFetchCurrent" ], "description": "The current fetch phase operations.", "name": "search.fetch_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfti", "searchFetchTime" ], "description": "The time spent in fetch phase.", "name": "search.fetch_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfto", "searchFetchTotal" ], "description": "The total number of fetch operations.", "name": "search.fetch_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "so", "searchOpenContexts" ], "description": "The number of open search contexts.", "name": "search.open_contexts", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqc", "searchQueryCurrent" ], "description": "The current query phase operations.", "name": "search.query_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqti", "searchQueryTime" ], "description": "The time spent in query phase.", "name": "search.query_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqto", "searchQueryTotal" ], "description": "The total number of query phase operations.", "name": "search.query_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scc", "searchScrollCurrent" ], "description": "The open scroll contexts.", "name": "search.scroll_current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scti", "searchScrollTime" ], "description": "The time scroll contexts were held open.", "name": "search.scroll_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "scto", "searchScrollTotal" ], "description": "The number of completed scroll contexts.", "name": "search.scroll_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sc", "segmentsCount" ], "description": "The number of segments.", "name": "segments.count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sm", "segmentsMemory" ], "description": "The memory used by segments.", "name": "segments.memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "siwm", "segmentsIndexWriterMemory" ], "description": "The memory used by the index writer.", "name": "segments.index_writer_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "svmm", "segmentsVersionMapMemory" ], "description": "The memory used by the version map.", "name": "segments.version_map_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sfbm", "fixedBitsetMemory" ], "description": "The memory used by fixed bit sets for nested object field types and export type filters for types referred in `_parent` fields.", "name": "segments.fixed_bitset_memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqm", "maxSeqNo" ], "description": "The maximum sequence number.", "name": "seq_no.max", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sql", "localCheckpoint" ], "description": "The local checkpoint.", "name": "seq_no.local_checkpoint", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sqg", "globalCheckpoint" ], "description": "The global checkpoint.", "name": "seq_no.global_checkpoint", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "wc", "warmerCurrent" ], "description": "The number of current warmer operations.", "name": "warmer.current", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "wto", "warmerTotal" ], "description": "The total number of warmer operations.", "name": "warmer.total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "wtt", "warmerTotalTime" ], "description": "The time spent in warmer operations.", "name": "warmer.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "pd", "dataPath" ], "description": "The shard data path.", "name": "path.data", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ps", "statsPath" ], "description": "The shard state path.", "name": "path.state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bto", "bulkTotalOperations" ], "description": "The number of bulk shard operations.", "name": "bulk.total_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btti", "bulkTotalTime" ], "description": "The time spent in shard bulk operations.", "name": "bulk.total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "btsi", "bulkTotalSizeInBytes" ], "description": "The total size in bytes of shard bulk operations.", "name": "bulk.total_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "bati", "bulkAvgTime" ], "description": "The average time spent in shard bulk operations.", "name": "bulk.avg_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "basi", "bulkAvgSizeInBytes" ], "description": "The average size in bytes of shard bulk operations.", "name": "bulk.avg_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/shards/types.ts#L20-L427" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get snapshot information.\n\nGet information about the snapshots stored in one or more repositories.\nA snapshot is a backup of an index or running Elasticsearch cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.snapshots" }, "path": [ { "description": "A comma-separated list of snapshot repositories used to limit the request.\nAccepts wildcard expressions.\n`_all` returns all repositories.\nIf any repository fails during the request, Elasticsearch returns an error.", "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, the response does not include information from unavailable snapshots.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "cat/snapshots/CatSnapshotsRequest.ts#L24-L82" }, { "kind": "response", "body": { "kind": "value", "codegenName": "snapshots", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SnapshotsRecord", "namespace": "cat.snapshots" } } } }, "examples": { "CatSnapshotsResponseExample1": { "description": "A successful response from `GET /_cat/snapshots/repo1?v=true&s=id&format=json`.\n", "value": "[\n {\n \"id\": \"snap1\",\n \"repository\": \"repo1\",\n \"status\": \"FAILED\",\n \"start_epoch\": \"1445616705\",\n \"start_time\": \"18:11:45\",\n \"end_epoch\": \"1445616978\",\n \"end_time\": \"18:16:18\",\n \"duration\": \"4.6m\",\n \"indices\": \"1\",\n \"successful_shards\": \"4\",\n \"failed_shards\": \"1\",\n \"total_shards\": \"5\"\n },\n {\n \"id\": \"snap2\",\n \"repository\": \"repo1\",\n \"status\": \"SUCCESS\",\n \"start_epoch\": \"1445634298\",\n \"start_time\": \"23:04:58\",\n \"end_epoch\": \"1445634672\",\n \"end_time\": \"23:11:12\",\n \"duration\": \"6.2m\",\n \"indices\": \"2\",\n \"successful_shards\": \"10\",\n \"failed_shards\": \"0\",\n \"total_shards\": \"10\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.snapshots" }, "specLocation": "cat/snapshots/CatSnapshotsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "SnapshotsRecord", "namespace": "cat.snapshots" }, "properties": [ { "aliases": [ "snapshot" ], "description": "The unique identifier for the snapshot.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "re", "repo" ], "description": "The repository name.", "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "s" ], "description": "The state of the snapshot process.\nReturned values include:\n`FAILED`: The snapshot process failed.\n`INCOMPATIBLE`: The snapshot process is incompatible with the current cluster version.\n`IN_PROGRESS`: The snapshot process started but has not completed.\n`PARTIAL`: The snapshot process completed with a partial success.\n`SUCCESS`: The snapshot process completed with a full success.", "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ste", "startEpoch" ], "description": "The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process started.", "name": "start_epoch", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "aliases": [ "sti", "startTime" ], "description": "The time (HH:MM:SS) at which the snapshot process started.", "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScheduleTimeOfDay", "namespace": "watcher._types" } } }, { "aliases": [ "ete", "endEpoch" ], "description": "The Unix epoch time (seconds since 1970-01-01 00:00:00) at which the snapshot process ended.", "name": "end_epoch", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "aliases": [ "eti", "endTime" ], "description": "The time (HH:MM:SS) at which the snapshot process ended.", "name": "end_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeOfDay", "namespace": "_types" } } }, { "aliases": [ "dur" ], "description": "The time it took the snapshot process to complete, in time units.", "name": "duration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "aliases": [ "i" ], "description": "The number of indices in the snapshot.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ss" ], "description": "The number of successful shards in the snapshot.", "name": "successful_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "fs" ], "description": "The number of failed shards in the snapshot.", "name": "failed_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ts" ], "description": "The total number of shards in the snapshot.", "name": "total_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r" ], "description": "The reason for any snapshot failures.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/snapshots/types.ts#L24-L96" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get task information.\n\nGet information about tasks currently running in the cluster.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.tasks" }, "path": [], "query": [ { "description": "The task action names, which are used to limit the response.", "name": "actions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "If `true`, the response includes detailed information about shard recoveries.", "name": "detailed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Unique node identifiers, which are used to limit the response.", "name": "nodes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The parent task identifier, which is used to limit the response.", "name": "parent_task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, the request blocks until the task has completed.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "cat/tasks/CatTasksRequest.ts#L24-L82" }, { "kind": "response", "body": { "kind": "value", "codegenName": "tasks", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TasksRecord", "namespace": "cat.tasks" } } } }, "examples": { "CatTasksResponseExample1": { "description": "A successful response from `GET _cat/tasks?v=true&format=json`.", "value": "[\n {\n \"action\": \"cluster:monitor/tasks/lists[n]\",\n \"task_id\": \"oTUltX4IQMOUUVeiohTt8A:124\",\n \"parent_task_id\": \"oTUltX4IQMOUUVeiohTt8A:123\",\n \"type\": \"direct\",\n \"start_time\": \"1458585884904\",\n \"timestamp\": \"01:48:24\",\n \"running_time\": \"44.1micros\",\n \"ip\": \"127.0.0.1:9300\",\n \"node\": \"oTUltX4IQMOUUVeiohTt8A\"\n },\n {\n \"action\": \"cluster:monitor/tasks/lists\",\n \"task_id\": \"oTUltX4IQMOUUVeiohTt8A:123\",\n \"parent_task_id\": \"-\",\n \"type\": \"transport\",\n \"start_time\": \"1458585884904\",\n \"timestamp\": \"01:48:24\",\n \"running_time\": \"186.2micros\",\n \"ip\": \"127.0.0.1:9300\",\n \"node\": \"oTUltX4IQMOUUVeiohTt8A\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.tasks" }, "specLocation": "cat/tasks/CatTasksResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "TasksRecord", "namespace": "cat.tasks" }, "properties": [ { "description": "The identifier of the task with the node.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "ac" ], "description": "The task action.", "name": "action", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ti" ], "description": "The unique task identifier.", "name": "task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "pti" ], "description": "The parent task identifier.", "name": "parent_task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ty" ], "description": "The task type.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "start" ], "description": "The start time in milliseconds.", "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ts", "hms", "hhmmss" ], "description": "The start time in `HH:MM:SS` format.", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The running time in nanoseconds.", "name": "running_time_ns", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "time" ], "description": "The running time.", "name": "running_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "ni" ], "description": "The unique node identifier.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "aliases": [ "i" ], "description": "The IP address for the node.", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "po" ], "description": "The bound transport port for the node.", "name": "port", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "n" ], "description": "The node name.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The Elasticsearch version.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "x" ], "description": "The X-Opaque-ID header.", "name": "x_opaque_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "desc" ], "description": "The task action description.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/tasks/types.ts#L22-L101" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index template information.\n\nGet information about the index templates in a cluster.\nYou can use index templates to apply index settings and field mappings to new indices at creation.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.templates" }, "path": [ { "description": "The name of the template to return.\nAccepts wildcard expressions. If omitted, all templates are returned.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/templates/CatTemplatesRequest.ts#L24-L79" }, { "kind": "response", "body": { "kind": "value", "codegenName": "templates", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TemplatesRecord", "namespace": "cat.templates" } } } }, "examples": { "CatTemplatesResponseExample1": { "description": "A successful response from `GET _cat/templates/my-template-*?v=true&s=name&format=json`.\n", "value": "[\n {\n \"name\": \"my-template-0\",\n \"index_patterns\": \"[te*]\",\n \"order\": \"500\",\n \"version\": null,\n \"composed_of\": \"[]\"\n },\n {\n \"name\": \"my-template-1\",\n \"index_patterns\": \"[tea*]\",\n \"order\": \"501\",\n \"version\": null,\n \"composed_of\": \"[]\"\n },\n {\n \"name\": \"my-template-2\",\n \"index_patterns\": \"[teak*]\",\n \"order\": \"502\",\n \"version\": \"7\",\n \"composed_of\": \"[]\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.templates" }, "specLocation": "cat/templates/CatTemplatesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "TemplatesRecord", "namespace": "cat.templates" }, "properties": [ { "aliases": [ "n" ], "description": "The template name.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "aliases": [ "t" ], "description": "The template index patterns.", "name": "index_patterns", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "o", "p" ], "description": "The template application order or priority number.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The template version.", "name": "version", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "c" ], "description": "The component templates that comprise the index template.", "name": "composed_of", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/templates/types.ts#L22-L48" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get thread pool statistics.\n\nGet thread pool statistics for each node in a cluster.\nReturned information includes all built-in thread pools and custom thread pools.\nIMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.thread_pool" }, "path": [ { "description": "A comma-separated list of thread pool names used to limit the request.\nAccepts wildcard expressions.", "name": "thread_pool_patterns", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "List of columns to appear in the response. Supports simple wildcards.", "name": "h", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "List of columns that determine how the table should be sorted.\nSorting defaults to ascending and can be changed by setting `:asc`\nor `:desc` as a suffix to the column name.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "The unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "If `true`, the request computes the list of selected nodes from the\nlocal cluster state. If `false` the list of selected nodes are computed\nfrom the cluster state of the master node. In both cases the coordinating\nnode will send requests for further information to each selected node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cat/thread_pool/CatThreadPoolRequest.ts#L24-L83" }, { "kind": "response", "body": { "kind": "value", "codegenName": "thread_pools", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ThreadPoolRecord", "namespace": "cat.thread_pool" } } } }, "examples": { "CatThreadPoolResponseExample1": { "description": "A successful response from `GET /_cat/thread_pool?format=json`.\n", "summary": "Default columns", "value": "[\n {\n \"node_name\": \"node-0\",\n \"name\": \"analyze\",\n \"active\": \"0\",\n \"queue\": \"0\",\n \"rejected\": \"0\"\n },\n {\n \"node_name\": \"node-0\",\n \"name\": \"fetch_shard_started\",\n \"active\": \"0\",\n \"queue\": \"0\",\n \"rejected\": \"0\"\n },\n {\n \"node_name\": \"node-0\",\n \"name\": \"fetch_shard_store\",\n \"active\": \"0\",\n \"queue\": \"0\",\n \"rejected\": \"0\"\n },\n {\n \"node_name\": \"node-0\",\n \"name\": \"flush\",\n \"active\": \"0\",\n \"queue\": \"0\",\n \"rejected\": \"0\"\n },\n {\n \"node_name\": \"node-0\",\n \"name\": \"write\",\n \"active\": \"0\",\n \"queue\": \"0\",\n \"rejected\": \"0\"\n }\n]" }, "CatThreadPoolResponseExample2": { "description": "A successful response from `GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed&format=json`. It returns the `id`, `name`, `active`, `rejected`, and `completed` columns. It also limits returned information to the generic thread pool.\n", "summary": "Explicit columns", "value": "[\n {\n \"id\": \"0EWUhXeBQtaVGlexUeVwMg\",\n \"name\": \"generic\",\n \"active\": \"0\",\n \"rejected\": \"0\",\n \"completed\": \"70\"\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.thread_pool" }, "specLocation": "cat/thread_pool/CatThreadPoolResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "ThreadPoolRecord", "namespace": "cat.thread_pool" }, "properties": [ { "aliases": [ "nn" ], "description": "The node name.", "name": "node_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "id" ], "description": "The persistent node identifier.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "aliases": [ "eid" ], "description": "The ephemeral node identifier.", "name": "ephemeral_node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p" ], "description": "The process identifier.", "name": "pid", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "h" ], "description": "The host name for the current node.", "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "i" ], "description": "The IP address for the current node.", "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "po" ], "description": "The bound transport port for the current node.", "name": "port", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "n" ], "description": "The thread pool name.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "t" ], "description": "The thread pool type.\nReturned values include `fixed`, `fixed_auto_queue_size`, `direct`, and `scaling`.", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "a" ], "description": "The number of active threads in the current thread pool.", "name": "active", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "psz" ], "description": "The number of threads in the current thread pool.", "name": "pool_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "q" ], "description": "The number of tasks currently in queue.", "name": "queue", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "qs" ], "description": "The maximum number of tasks permitted in the queue.", "name": "queue_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r" ], "description": "The number of rejected tasks.", "name": "rejected", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "l" ], "description": "The highest number of active threads in the current thread pool.", "name": "largest", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "c" ], "description": "The number of completed tasks.", "name": "completed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "cr" ], "description": "The core number of active threads allowed in a scaling thread pool.", "name": "core", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "mx" ], "description": "The maximum number of active threads allowed in a scaling thread pool.", "name": "max", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "sz" ], "description": "The number of active threads allowed in a fixed thread pool.", "name": "size", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "ka" ], "description": "The thread keep alive time.", "name": "keep_alive", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "cat/thread_pool/types.ts#L22-L124" }, { "kind": "request", "attachedBehaviors": [ "CommonCatQueryParameters", "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get transform information.\n\nGet configuration and usage information about transforms.\n\nCAT APIs are only intended for human consumption using the Kibana\nconsole or command line. They are not intended for use by applications. For\napplication consumption, use the get transform statistics API.", "inherits": { "type": { "name": "CatRequestBase", "namespace": "cat._types" } }, "name": { "name": "Request", "namespace": "cat.transforms" }, "path": [ { "description": "A transform identifier or a wildcard expression.\nIf you do not specify one of these options, the API returns information for all transforms.", "name": "transform_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches.\nIf `true`, it returns an empty transforms array when there are no matches and the subset of results when there are partial matches.\nIf `false`, the request returns a 404 status code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of transforms.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Comma-separated list of column names to display.", "name": "h", "required": false, "serverDefault": "changes_last_detection_time,checkpoint,checkpoint_progress,documents_processed,id,last_search_time,state", "type": { "kind": "instance_of", "type": { "name": "CatTransformColumns", "namespace": "cat._types" } } }, { "description": "Comma-separated list of column names or column aliases used to sort the response.", "name": "s", "required": false, "type": { "kind": "instance_of", "type": { "name": "CatTransformColumns", "namespace": "cat._types" } } }, { "description": "The unit used to display time values.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "The maximum number of transforms to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cat/transforms/CatTransformsRequest.ts#L25-L89" }, { "kind": "response", "body": { "kind": "value", "codegenName": "transforms", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransformsRecord", "namespace": "cat.transforms" } } } }, "examples": { "CatTransformsResponseExample1": { "description": "A successful response from `GET /_cat/transforms?v=true&format=json`.", "value": "[\n {\n \"id\" : \"ecommerce_transform\",\n \"state\" : \"started\",\n \"checkpoint\" : \"1\",\n \"documents_processed\" : \"705\",\n \"checkpoint_progress\" : \"100.00\",\n \"changes_last_detection_time\" : null\n }\n]" } }, "name": { "name": "Response", "namespace": "cat.transforms" }, "specLocation": "cat/transforms/CatTransformsResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "TransformsRecord", "namespace": "cat.transforms" }, "properties": [ { "description": "The transform identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "s" ], "description": "The status of the transform.\nReturned values include:\n`aborting`: The transform is aborting.\n`failed: The transform failed. For more information about the failure, check the `reason` field.\n`indexing`: The transform is actively processing data and creating new documents.\n`started`: The transform is running but not actively indexing data.\n`stopped`: The transform is stopped.\n`stopping`: The transform is stopping.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "c" ], "description": "The sequence number for the checkpoint.", "name": "checkpoint", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "docp", "documentsProcessed" ], "description": "The number of documents that have been processed from the source index of the transform.", "name": "documents_processed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "cp", "checkpointProgress" ], "description": "The progress of the next checkpoint that is currently in progress.", "name": "checkpoint_progress", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "lst", "lastSearchTime" ], "description": "The timestamp of the last search in the source indices.\nThis field is shown only if the transform is running.", "name": "last_search_time", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "cldt" ], "description": "The timestamp when changes were last detected in the source indices.", "name": "changes_last_detection_time", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "aliases": [ "ct", "createTime" ], "description": "The time the transform was created.", "name": "create_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "v" ], "description": "The version of Elasticsearch that existed on the node when the transform was created.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "si", "sourceIndex" ], "description": "The source indices for the transform.", "name": "source_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "di", "destIndex" ], "description": "The destination index for the transform.", "name": "dest_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "p" ], "description": "The unique identifier for the ingest pipeline.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "d" ], "description": "The description of the transform.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "tt" ], "description": "The type of transform: `batch` or `continuous`.", "name": "transform_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "f" ], "description": "The interval between checks for changes in the source indices when the transform is running continuously.", "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "mpsz" ], "description": "The initial page size that is used for the composite aggregation for each checkpoint.", "name": "max_page_search_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dps" ], "description": "The number of input documents per second.", "name": "docs_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "r" ], "description": "If a transform has a `failed` state, these details describe the reason for failure.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "st" ], "description": "The total number of search operations on the source index for the transform.", "name": "search_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "sf" ], "description": "The total number of search failures.", "name": "search_failure", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "stime" ], "description": "The total amount of search time, in milliseconds.", "name": "search_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "it" ], "description": "The total number of index operations done by the transform.", "name": "index_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "if" ], "description": "The total number of indexing failures.", "name": "index_failure", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "itime" ], "description": "The total time spent indexing documents, in milliseconds.", "name": "index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "doci" ], "description": "The number of documents that have been indexed into the destination index for the transform.", "name": "documents_indexed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "dtime" ], "description": "The total time spent deleting documents, in milliseconds.", "name": "delete_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "docd" ], "description": "The number of documents deleted from the destination index due to the retention policy for the transform.", "name": "documents_deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "tc" ], "description": "The number of times the transform has been triggered by the scheduler.\nFor example, the scheduler triggers the transform indexer to check for updates or ingest new data at an interval specified in the `frequency` property.", "name": "trigger_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "pp" ], "description": "The number of search or bulk index operations processed.\nDocuments are processed in batches instead of individually.", "name": "pages_processed", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "pt" ], "description": "The total time spent processing results, in milliseconds.", "name": "processing_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "cdtea", "checkpointTimeExpAvg" ], "description": "The exponential moving average of the duration of the checkpoint, in milliseconds.", "name": "checkpoint_duration_time_exp_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "idea" ], "description": "The exponential moving average of the number of new documents that have been indexed.", "name": "indexed_documents_exp_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "pdea" ], "description": "The exponential moving average of the number of documents that have been processed.", "name": "processed_documents_exp_avg", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cat/transforms/types.ts#L22-L197" }, { "kind": "interface", "name": { "name": "FollowIndexStats", "namespace": "ccr._types" }, "properties": [ { "description": "The name of the follower index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "An array of shard-level following task statistics.", "name": "shards", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardStats", "namespace": "ccr._types" } } } } ], "specLocation": "ccr/_types/FollowIndexStats.ts#L30-L35" }, { "kind": "interface", "name": { "name": "ReadException", "namespace": "ccr._types" }, "properties": [ { "description": "The exception that caused the read to fail.", "name": "exception", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "description": "The starting sequence number of the batch requested from the leader.", "name": "from_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "The number of times the batch has been retried.", "name": "retries", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ccr/_types/FollowIndexStats.ts#L111-L118" }, { "kind": "interface", "name": { "name": "ShardStats", "namespace": "ccr._types" }, "properties": [ { "description": "The total of transferred bytes read from the leader.\nThis is only an estimate and does not account for compression if enabled.", "name": "bytes_read", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of failed reads.", "name": "failed_read_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of failed bulk write requests on the follower.", "name": "failed_write_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "fatal_exception", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "description": "The index aliases version the follower is synced up to.", "name": "follower_aliases_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The current global checkpoint on the follower.\nThe difference between the `leader_global_checkpoint` and the `follower_global_checkpoint` is an indication of how much the follower is lagging the leader.", "name": "follower_global_checkpoint", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The name of the follower index.", "name": "follower_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The mapping version the follower is synced up to.", "name": "follower_mapping_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The current maximum sequence number on the follower.", "name": "follower_max_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "The index settings version the follower is synced up to.", "name": "follower_settings_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The starting sequence number of the last batch of operations requested from the leader.", "name": "last_requested_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "The current global checkpoint on the leader known to the follower task.", "name": "leader_global_checkpoint", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The name of the index in the leader cluster being followed.", "name": "leader_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The current maximum sequence number on the leader known to the follower task.", "name": "leader_max_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "The total number of operations read from the leader.", "name": "operations_read", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of operations written on the follower.", "name": "operations_written", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of active read requests from the follower.", "name": "outstanding_read_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of active bulk write requests on the follower.", "name": "outstanding_write_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "An array of objects representing failed reads.", "name": "read_exceptions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ReadException", "namespace": "ccr._types" } } } }, { "description": "The remote cluster containing the leader index.", "name": "remote_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The numerical shard ID, with values from 0 to one less than the number of replicas.", "name": "shard_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of successful fetches.", "name": "successful_read_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of bulk write requests run on the follower.", "name": "successful_write_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "time_since_last_read", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of milliseconds since a read request was sent to the leader.\nWhen the follower is caught up to the leader, this number will increase up to the configured `read_poll_timeout` at which point another read request will be sent to the leader.", "name": "time_since_last_read_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_read_remote_exec_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time reads spent running on the remote cluster.", "name": "total_read_remote_exec_time_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_read_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time reads were outstanding, measured from the time a read was sent to the leader to the time a reply was returned to the follower.", "name": "total_read_time_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_write_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time spent writing on the follower.", "name": "total_write_time_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of write operations queued on the follower.", "name": "write_buffer_operation_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of bytes of operations currently queued for writing.", "name": "write_buffer_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "ccr/_types/FollowIndexStats.ts#L37-L109" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete auto-follow patterns.\n\nDelete a collection of cross-cluster replication auto-follow patterns.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.delete_auto_follow_pattern" }, "path": [ { "description": "The auto-follow pattern collection to delete.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L54" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "DeleteAutoFollowPatternResponseExample1": { "description": "A successful response from `DELETE /_ccr/auto_follow/my_auto_follow_pattern`, which deletes an auto-follow pattern.", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.delete_auto_follow_pattern" }, "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed.", "name": "data_stream_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the index in the leader cluster to follow.", "name": "leader_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The maximum number of outstanding reads requests from the remote cluster.", "name": "max_outstanding_read_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The maximum number of outstanding write requests on the follower.", "name": "max_outstanding_write_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of operations to pull per read from the remote cluster.", "name": "max_read_request_operation_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.", "name": "max_read_request_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when\nretrying.", "name": "max_retry_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be\ndeferred until the number of queued operations goes below the limit.", "name": "max_write_buffer_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will\nbe deferred until the total bytes of queued operations goes below the limit.", "name": "max_write_buffer_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum number of operations per bulk write request executed on the follower.", "name": "max_write_request_operation_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum total bytes of operations per bulk write request executed on the follower.", "name": "max_write_request_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.\nWhen the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics.\nThen the follower will immediately attempt to read from the leader again.", "name": "read_poll_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The remote cluster containing the leader index.", "name": "remote_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Settings to override from the leader index.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } } ] }, "description": "Create a follower.\nCreate a cross-cluster replication follower index that follows a specific leader index.\nWhen the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.", "examples": { "CreateFollowIndexRequestExample1": { "description": "Run `PUT /follower_index/_ccr/follow?wait_for_active_shards=1` to create a follower index named `follower_index`.", "value": "{\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\",\n \"settings\": {\n \"index.number_of_replicas\": 0\n },\n \"max_read_request_operation_count\" : 1024,\n \"max_outstanding_read_requests\" : 16,\n \"max_read_request_size\" : \"1024k\",\n \"max_write_request_operation_count\" : 32768,\n \"max_write_request_size\" : \"16k\",\n \"max_outstanding_write_requests\" : 8,\n \"max_write_buffer_count\" : 512,\n \"max_write_buffer_size\" : \"512k\",\n \"max_retry_delay\" : \"10s\",\n \"read_poll_timeout\" : \"30s\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.follow" }, "path": [ { "description": "The name of the follower index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be\nactive.\nA shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the\nremote Lucene segment files to the follower index.", "name": "wait_for_active_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L124" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "follow_index_created", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "follow_index_shards_acked", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_following_started", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "CreateFollowIndexResponseExample1": { "description": "A successful response from `PUT /follower_index/_ccr/follow?wait_for_active_shards=1`.", "value": "{\n \"follow_index_created\" : true,\n \"follow_index_shards_acked\" : true,\n \"index_following_started\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.follow" }, "specLocation": "ccr/follow/CreateFollowIndexResponse.ts#L20-L26" }, { "kind": "interface", "name": { "name": "FollowerIndex", "namespace": "ccr.follow_info" }, "properties": [ { "description": "The name of the follower index.", "name": "follower_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The name of the index in the leader cluster that is followed.", "name": "leader_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "An object that encapsulates cross-cluster replication parameters. If the follower index's status is paused, this object is omitted.", "name": "parameters", "required": false, "type": { "kind": "instance_of", "type": { "name": "FollowerIndexParameters", "namespace": "ccr.follow_info" } } }, { "description": "The remote cluster that contains the leader index.", "name": "remote_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The status of the index following: `active` or `paused`.", "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "FollowerIndexStatus", "namespace": "ccr.follow_info" } } } ], "specLocation": "ccr/follow_info/types.ts#L24-L35" }, { "kind": "interface", "name": { "name": "FollowerIndexParameters", "namespace": "ccr.follow_info" }, "properties": [ { "description": "The maximum number of outstanding reads requests from the remote cluster.", "name": "max_outstanding_read_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The maximum number of outstanding write requests on the follower.", "name": "max_outstanding_write_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of operations to pull per read from the remote cluster.", "name": "max_read_request_operation_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.", "name": "max_read_request_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when\nretrying.", "name": "max_retry_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be\ndeferred until the number of queued operations goes below the limit.", "name": "max_write_buffer_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will\nbe deferred until the total bytes of queued operations goes below the limit.", "name": "max_write_buffer_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum number of operations per bulk write request executed on the follower.", "name": "max_write_request_operation_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum total bytes of operations per bulk write request executed on the follower.", "name": "max_write_request_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.\nWhen the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics.\nThen the follower will immediately attempt to read from the leader again.", "name": "read_poll_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/follow_info/types.ts#L42-L88" }, { "kind": "enum", "members": [ { "name": "active" }, { "name": "paused" } ], "name": { "name": "FollowerIndexStatus", "namespace": "ccr.follow_info" }, "specLocation": "ccr/follow_info/types.ts#L37-L40" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get follower information.\n\nGet information about all cross-cluster replication follower indices.\nFor example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.follow_info" }, "path": [ { "description": "A comma-delimited list of follower index patterns.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L55" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "follower_indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FollowerIndex", "namespace": "ccr.follow_info" } } } } ] }, "examples": { "FollowInfoResponseExample1": { "description": "A successful response from `GET /follower_index/_ccr/info` when the follower index is active.", "summary": "An active follower index", "value": "{\n \"follower_indices\": [\n {\n \"follower_index\": \"follower_index\",\n \"remote_cluster\": \"remote_cluster\",\n \"leader_index\": \"leader_index\",\n \"status\": \"active\",\n \"parameters\": {\n \"max_read_request_operation_count\": 5120,\n \"max_read_request_size\": \"32mb\",\n \"max_outstanding_read_requests\": 12,\n \"max_write_request_operation_count\": 5120,\n \"max_write_request_size\": \"9223372036854775807b\",\n \"max_outstanding_write_requests\": 9,\n \"max_write_buffer_count\": 2147483647,\n \"max_write_buffer_size\": \"512mb\",\n \"max_retry_delay\": \"500ms\",\n \"read_poll_timeout\": \"1m\"\n }\n }\n ]\n}" }, "FollowInfoResponseExample2": { "description": "A successful response from `GET /follower_index/_ccr/info` when the follower index is paused.", "summary": "A paused follower index", "value": "{\n \"follower_indices\": [\n {\n \"follower_index\": \"follower_index\",\n \"remote_cluster\": \"remote_cluster\",\n \"leader_index\": \"leader_index\",\n \"status\": \"paused\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "ccr.follow_info" }, "specLocation": "ccr/follow_info/FollowInfoResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get follower stats.\n\nGet cross-cluster replication follower stats.\nThe API returns shard-level stats about the \"following tasks\" associated with each shard for the specified indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.follow_stats" }, "path": [ { "description": "A comma-delimited list of index patterns.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L54" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "An array of follower index statistics.", "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FollowIndexStats", "namespace": "ccr._types" } } } } ] }, "examples": { "FollowIndexStatsResponseExample1": { "description": "A successful response from `GET /follower_index/_ccr/stats`, which retrieves follower stats.", "value": "{\n \"indices\" : [\n {\n \"index\" : \"follower_index\",\n \"total_global_checkpoint_lag\" : 256,\n \"shards\" : [\n {\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\",\n \"follower_index\" : \"follower_index\",\n \"shard_id\" : 0,\n \"leader_global_checkpoint\" : 1024,\n \"leader_max_seq_no\" : 1536,\n \"follower_global_checkpoint\" : 768,\n \"follower_max_seq_no\" : 896,\n \"last_requested_seq_no\" : 897,\n \"outstanding_read_requests\" : 8,\n \"outstanding_write_requests\" : 2,\n \"write_buffer_operation_count\" : 64,\n \"follower_mapping_version\" : 4,\n \"follower_settings_version\" : 2,\n \"follower_aliases_version\" : 8,\n \"total_read_time_millis\" : 32768,\n \"total_read_remote_exec_time_millis\" : 16384,\n \"successful_read_requests\" : 32,\n \"failed_read_requests\" : 0,\n \"operations_read\" : 896,\n \"bytes_read\" : 32768,\n \"total_write_time_millis\" : 16384,\n \"write_buffer_size_in_bytes\" : 1536,\n \"successful_write_requests\" : 16,\n \"failed_write_requests\" : 0,\n \"operations_written\" : 832,\n \"read_exceptions\" : [ ],\n \"time_since_last_read_millis\" : 8\n }\n ]\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "ccr.follow_stats" }, "specLocation": "ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "follower_cluster", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "follower_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "follower_index_uuid", "required": false, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "name": "leader_remote_cluster", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Forget a follower.\nRemove the cross-cluster replication follower retention leases from the leader.\n\nA following index takes out retention leases on its leader index.\nThese leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication.\nWhen a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed.\nHowever, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable.\nWhile the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index.\nThis API exists to enable manually removing the leases when the unfollow API is unable to do so.\n\nNOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader.\nThe only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked.", "examples": { "ForgetFollowerIndexRequestExample1": { "description": "Run `POST //_ccr/forget_follower`.", "value": "{\n \"follower_cluster\" : \"\",\n \"follower_index\" : \"\",\n \"follower_index_uuid\" : \"\",\n \"leader_remote_cluster\" : \"\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.forget_follower" }, "path": [ { "description": "the name of the leader index for which specified follower retention leases should be removed", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L65" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ] }, "examples": { "ForgetFollowerIndexResponseExample1": { "description": "A successful response for removing the follower retention leases from the leader index.\n", "value": "{\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"failed\" : 0,\n \"failures\" : [ ]\n }\n}" } }, "name": { "name": "Response", "namespace": "ccr.forget_follower" }, "specLocation": "ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "AutoFollowPattern", "namespace": "ccr.get_auto_follow_pattern" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoFollowPatternSummary", "namespace": "ccr.get_auto_follow_pattern" } } } ], "specLocation": "ccr/get_auto_follow_pattern/types.ts#L23-L26" }, { "kind": "interface", "name": { "name": "AutoFollowPatternSummary", "namespace": "ccr.get_auto_follow_pattern" }, "properties": [ { "name": "active", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The remote cluster containing the leader indices to match against.", "name": "remote_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of follower index.", "name": "follow_index_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexPattern", "namespace": "_types" } } }, { "description": "An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.", "name": "leader_index_patterns", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexPatterns", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "description": "An array of simple index patterns that can be used to exclude indices from being auto-followed.", "name": "leader_index_exclusion_patterns", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexPatterns", "namespace": "_types" } } }, { "description": "The maximum number of outstanding reads requests from the remote cluster.", "name": "max_outstanding_read_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ccr/get_auto_follow_pattern/types.ts#L28-L52" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get auto-follow patterns.\n\nGet cross-cluster replication auto-follow patterns.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.get_auto_follow_pattern" }, "path": [ { "description": "The auto-follow pattern collection that you want to retrieve.\nIf you do not specify a name, the API returns information for all collections.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "patterns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AutoFollowPattern", "namespace": "ccr.get_auto_follow_pattern" } } } } ] }, "examples": { "GetAutoFollowPatternResponseExample1": { "description": "A successful response from `GET /_ccr/auto_follow/my_auto_follow_pattern`, which gets auto-follow patterns.", "value": "{\n \"patterns\": [\n {\n \"name\": \"my_auto_follow_pattern\",\n \"pattern\": {\n \"active\": true,\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index_patterns\" :\n [\n \"leader_index*\"\n ],\n \"leader_index_exclusion_patterns\":\n [\n \"leader_index_001\"\n ],\n \"follow_index_pattern\" : \"{{leader_index}}-follower\"\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "ccr.get_auto_follow_pattern" }, "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Pause an auto-follow pattern.\n\nPause a cross-cluster replication auto-follow pattern.\nWhen the API returns, the auto-follow pattern is inactive.\nNew indices that are created on the remote cluster and match the auto-follow patterns are ignored.\n\nYou can resume auto-following with the resume auto-follow pattern API.\nWhen it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns.\nRemote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.pause_auto_follow_pattern" }, "path": [ { "description": "The name of the auto-follow pattern to pause.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "PauseAutoFollowPatternResponseExample1": { "description": "A successful response from `POST /_ccr/auto_follow/my_auto_follow_pattern/pause`, which pauses an auto-follow pattern.", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.pause_auto_follow_pattern" }, "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Pause a follower.\n\nPause a cross-cluster replication follower index.\nThe follower index will not fetch any additional operations from the leader index.\nYou can resume following with the resume follower API.\nYou can pause and resume a follower index to change the configuration of the following task.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.pause_follow" }, "path": [ { "description": "The name of the follower index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L56" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "PauseFollowIndexResponseExample1": { "description": "A successful response from `POST /follower_index/_ccr/pause_follow`, which pauses a follower index.", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.pause_follow" }, "specLocation": "ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The remote cluster containing the leader indices to match against.", "docId": "modules-remote-clusters", "docUrl": "https://www.elastic.co/docs/deploy-manage/remote-clusters/remote-clusters-self-managed", "name": "remote_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of follower index. The template {{leader_index}} can be used to derive the name of the follower index from the name of the leader index. When following a data stream, use {{leader_index}}; CCR does not support changes to the names of a follower data stream’s backing indices.", "name": "follow_index_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexPattern", "namespace": "_types" } } }, { "description": "An array of simple index patterns to match against indices in the remote cluster specified by the remote_cluster field.", "name": "leader_index_patterns", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexPatterns", "namespace": "_types" } } }, { "description": "An array of simple index patterns that can be used to exclude indices from being auto-followed. Indices in the remote cluster whose names are matching one or more leader_index_patterns and one or more leader_index_exclusion_patterns won’t be followed.", "name": "leader_index_exclusion_patterns", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexPatterns", "namespace": "_types" } } }, { "description": "The maximum number of outstanding reads requests from the remote cluster.", "name": "max_outstanding_read_requests", "required": false, "serverDefault": 12, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Settings to override from the leader index. Note that certain settings can not be overrode (e.g., index.number_of_shards).", "name": "settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "The maximum number of outstanding reads requests from the remote cluster.", "name": "max_outstanding_write_requests", "required": false, "serverDefault": 9, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. Then the follower will immediately attempt to read from the leader again.", "name": "read_poll_timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum number of operations to pull per read from the remote cluster.", "name": "max_read_request_operation_count", "required": false, "serverDefault": 5120, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.", "name": "max_read_request_size", "required": false, "serverDefault": "32mb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when retrying.", "name": "max_retry_delay", "required": false, "serverDefault": "500ms", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the number of queued operations goes below the limit.", "name": "max_write_buffer_count", "required": false, "serverDefault": 2147483647, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be deferred until the total bytes of queued operations goes below the limit.", "name": "max_write_buffer_size", "required": false, "serverDefault": "512mb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum number of operations per bulk write request executed on the follower.", "name": "max_write_request_operation_count", "required": false, "serverDefault": 5120, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum total bytes of operations per bulk write request executed on the follower.", "name": "max_write_request_size", "required": false, "serverDefault": "9223372036854775807b", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ] }, "description": "Create or update auto-follow patterns.\nCreate a collection of cross-cluster replication auto-follow patterns for a remote cluster.\nNewly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices.\nIndices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern.\n\nThis API can also be used to update auto-follow patterns.\nNOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns.", "examples": { "PutAutoFollowPatternRequestExample1": { "description": "Run `PUT /_ccr/auto_follow/my_auto_follow_pattern` to creates an auto-follow pattern.\n", "value": "{\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index_patterns\" :\n [\n \"leader_index*\"\n ],\n \"follow_index_pattern\" : \"{{leader_index}}-follower\",\n \"settings\": {\n \"index.number_of_replicas\": 0\n },\n \"max_read_request_operation_count\" : 1024,\n \"max_outstanding_read_requests\" : 16,\n \"max_read_request_size\" : \"1024k\",\n \"max_write_request_operation_count\" : 32768,\n \"max_write_request_size\" : \"16k\",\n \"max_outstanding_write_requests\" : 8,\n \"max_write_buffer_count\" : 512,\n \"max_write_buffer_size\" : \"512k\",\n \"max_retry_delay\" : \"10s\",\n \"read_poll_timeout\" : \"30s\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.put_auto_follow_pattern" }, "path": [ { "description": "The name of the collection of auto-follow patterns.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "PutAutoFollowPatternResponseExample1": { "description": "A successful response for creating an auto-follow pattern.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ccr.put_auto_follow_pattern" }, "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Resume an auto-follow pattern.\n\nResume a cross-cluster replication auto-follow pattern that was paused.\nThe auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster.\nRemote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.resume_auto_follow_pattern" }, "path": [ { "description": "The name of the auto-follow pattern to resume.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L56" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ResumeAutoFollowPatternResponseExample1": { "description": "A successful response `POST /_ccr/auto_follow/my_auto_follow_pattern/resume`, which resumes an auto-follow pattern.\n", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.resume_auto_follow_pattern" }, "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "max_outstanding_read_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_outstanding_write_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_read_request_operation_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_read_request_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_retry_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max_write_buffer_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_write_buffer_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_write_request_operation_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_write_request_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "read_poll_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Resume a follower.\nResume a cross-cluster replication follower index that was paused.\nThe follower index could have been paused with the pause follower API.\nAlternatively it could be paused due to replication that cannot be retried due to failures during following tasks.\nWhen this API returns, the follower index will resume fetching operations from the leader index.", "examples": { "ResumeFollowIndexRequestExample1": { "description": "Run `POST /follower_index/_ccr/resume_follow` to resume the follower index.", "value": "{\n \"max_read_request_operation_count\" : 1024,\n \"max_outstanding_read_requests\" : 16,\n \"max_read_request_size\" : \"1024k\",\n \"max_write_request_operation_count\" : 32768,\n \"max_write_request_size\" : \"16k\",\n \"max_outstanding_write_requests\" : 8,\n \"max_write_buffer_count\" : 512,\n \"max_write_buffer_size\" : \"512k\",\n \"max_retry_delay\" : \"10s\",\n \"read_poll_timeout\" : \"30s\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.resume_follow" }, "path": [ { "description": "The name of the follow index to resume following.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L65" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ResumeFollowIndexResponseExample1": { "description": "A successful response from resuming a folower index.", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.resume_follow" }, "specLocation": "ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "AutoFollowStats", "namespace": "ccr.stats" }, "properties": [ { "name": "auto_followed_clusters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AutoFollowedCluster", "namespace": "ccr.stats" } } } }, { "description": "The number of indices that the auto-follow coordinator failed to automatically follow.\nThe causes of recent failures are captured in the logs of the elected master node and in the `auto_follow_stats.recent_auto_follow_errors` field.", "name": "number_of_failed_follow_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns.", "name": "number_of_failed_remote_cluster_state_requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of indices that the auto-follow coordinator successfully followed.", "name": "number_of_successful_follow_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "An array of objects representing failures by the auto-follow coordinator.", "name": "recent_auto_follow_errors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } } ], "specLocation": "ccr/stats/types.ts.ts#L32-L47" }, { "kind": "interface", "name": { "name": "AutoFollowedCluster", "namespace": "ccr.stats" }, "properties": [ { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "last_seen_metadata_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "time_since_last_check_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "ccr/stats/types.ts.ts#L26-L30" }, { "kind": "interface", "name": { "name": "FollowStats", "namespace": "ccr.stats" }, "properties": [ { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FollowIndexStats", "namespace": "ccr._types" } } } } ], "specLocation": "ccr/stats/types.ts.ts#L49-L51" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cross-cluster replication stats.\n\nThis API returns stats about auto-following and the same shard-level stats as the get follower stats API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.stats" }, "path": [], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L53" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Statistics for the auto-follow coordinator.", "name": "auto_follow_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "AutoFollowStats", "namespace": "ccr.stats" } } }, { "description": "Shard-level statistics for follower indices.", "name": "follow_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "FollowStats", "namespace": "ccr.stats" } } } ] }, "examples": { "CcrStatsResponseExample1": { "description": "A successful response from `GET /_ccr/stats` that returns cross-cluster replication stats.", "value": "{\n \"auto_follow_stats\" : {\n \"number_of_failed_follow_indices\" : 0,\n \"number_of_failed_remote_cluster_state_requests\" : 0,\n \"number_of_successful_follow_indices\" : 1,\n \"recent_auto_follow_errors\" : [],\n \"auto_followed_clusters\" : []\n },\n \"follow_stats\" : {\n \"indices\" : [\n {\n \"index\" : \"follower_index\",\n \"total_global_checkpoint_lag\" : 256,\n \"shards\" : [\n {\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\",\n \"follower_index\" : \"follower_index\",\n \"shard_id\" : 0,\n \"leader_global_checkpoint\" : 1024,\n \"leader_max_seq_no\" : 1536,\n \"follower_global_checkpoint\" : 768,\n \"follower_max_seq_no\" : 896,\n \"last_requested_seq_no\" : 897,\n \"outstanding_read_requests\" : 8,\n \"outstanding_write_requests\" : 2,\n \"write_buffer_operation_count\" : 64,\n \"follower_mapping_version\" : 4,\n \"follower_settings_version\" : 2,\n \"follower_aliases_version\" : 8,\n \"total_read_time_millis\" : 32768,\n \"total_read_remote_exec_time_millis\" : 16384,\n \"successful_read_requests\" : 32,\n \"failed_read_requests\" : 0,\n \"operations_read\" : 896,\n \"bytes_read\" : 32768,\n \"total_write_time_millis\" : 16384,\n \"write_buffer_size_in_bytes\" : 1536,\n \"successful_write_requests\" : 16,\n \"failed_write_requests\" : 0,\n \"operations_written\" : 832,\n \"read_exceptions\" : [ ],\n \"time_since_last_read_millis\" : 8\n }\n ]\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "ccr.stats" }, "specLocation": "ccr/stats/CcrStatsResponse.ts#L22-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Unfollow an index.\n\nConvert a cross-cluster replication follower index to a regular index.\nThe API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.\nThe follower index must be paused and closed before you call the unfollow API.\n\n> info\n> Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ccr.unfollow" }, "path": [ { "description": "The name of the follower index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "UnfollowIndexResponseExample1": { "description": "A successful response from `POST /follower_index/_ccr/unfollow`.", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "ccr.unfollow" }, "specLocation": "ccr/unfollow/UnfollowIndexResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "ComponentTemplate", "namespace": "cluster._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "component_template", "required": true, "type": { "kind": "instance_of", "type": { "name": "ComponentTemplateNode", "namespace": "cluster._types" } } } ], "specLocation": "cluster/_types/ComponentTemplate.ts#L27-L30" }, { "kind": "interface", "name": { "name": "ComponentTemplateNode", "namespace": "cluster._types" }, "properties": [ { "name": "template", "required": true, "type": { "kind": "instance_of", "type": { "name": "ComponentTemplateSummary", "namespace": "cluster._types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "deprecated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "cluster/_types/ComponentTemplate.ts#L32-L41" }, { "kind": "interface", "name": { "name": "ComponentTemplateSummary", "namespace": "cluster._types" }, "properties": [ { "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } } }, { "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AliasDefinition", "namespace": "indices._types" } } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" } } } ], "specLocation": "cluster/_types/ComponentTemplate.ts#L43-L55" }, { "kind": "interface", "name": { "name": "AllocationDecision", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "decider", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "decision", "required": true, "type": { "kind": "instance_of", "type": { "name": "AllocationExplainDecision", "namespace": "cluster.allocation_explain" } } }, { "name": "explanation", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L27-L31" }, { "kind": "enum", "members": [ { "name": "NO" }, { "name": "YES" }, { "name": "THROTTLE" }, { "name": "ALWAYS" } ], "name": { "name": "AllocationExplainDecision", "namespace": "cluster.allocation_explain" }, "specLocation": "cluster/allocation_explain/types.ts#L33-L38" }, { "kind": "interface", "name": { "name": "AllocationStore", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "allocation_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "in_sync", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "matching_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "matching_sync_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "store_exception", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L40-L47" }, { "kind": "interface", "name": { "name": "ClusterInfo", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeDiskUsage", "namespace": "cluster.allocation_explain" } } } }, { "name": "shard_sizes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "name": "shard_data_set_sizes", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "shard_paths", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "reserved_sizes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ReservedSize", "namespace": "cluster.allocation_explain" } } } } ], "specLocation": "cluster/allocation_explain/types.ts#L49-L55" }, { "kind": "interface", "name": { "name": "CurrentNode", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.11.0", "stability": "stable" } }, "name": "roles", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeRoles", "namespace": "_types" } } }, { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "weight_ranking", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L79-L90" }, { "kind": "enum", "members": [ { "name": "yes" }, { "name": "no" }, { "name": "worse_balance" }, { "name": "throttled" }, { "name": "awaiting_info" }, { "name": "allocation_delayed" }, { "name": "no_valid_shard_copy" }, { "name": "no_attempt" } ], "name": { "name": "Decision", "namespace": "cluster.allocation_explain" }, "specLocation": "cluster/allocation_explain/types.ts#L92-L101" }, { "kind": "interface", "name": { "name": "DiskUsage", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "used_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "free_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "free_disk_percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "used_disk_percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L63-L70" }, { "kind": "interface", "name": { "name": "NodeAllocationExplanation", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "deciders", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AllocationDecision", "namespace": "cluster.allocation_explain" } } } }, { "name": "node_attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "node_decision", "required": true, "type": { "kind": "instance_of", "type": { "name": "Decision", "namespace": "cluster.allocation_explain" } } }, { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "node_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.11.0", "stability": "stable" } }, "name": "roles", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeRoles", "namespace": "_types" } } }, { "name": "store", "required": false, "type": { "kind": "instance_of", "type": { "name": "AllocationStore", "namespace": "cluster.allocation_explain" } } }, { "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "weight_ranking", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L103-L117" }, { "kind": "interface", "name": { "name": "NodeDiskUsage", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "node_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "least_available", "required": true, "type": { "kind": "instance_of", "type": { "name": "DiskUsage", "namespace": "cluster.allocation_explain" } } }, { "name": "most_available", "required": true, "type": { "kind": "instance_of", "type": { "name": "DiskUsage", "namespace": "cluster.allocation_explain" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L57-L61" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node.", "name": "current_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies the name of the index that you would like an explanation for.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "If true, returns explanation for the primary shard for the given shard ID.", "name": "primary", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies the ID of the shard that you would like an explanation for.", "name": "shard", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Explain the shard allocations.\nGet explanations for shard allocations in the cluster.\nFor unassigned shards, it provides an explanation for why the shard is unassigned.\nFor assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.\nThis API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.", "examples": { "ClusterAllocationExplainRequestExample1": { "description": "Run `GET _cluster/allocation/explain` to get an explanation for a shard's current allocation.", "value": "{\n \"index\": \"my-index-000001\",\n \"shard\": 0,\n \"primary\": false,\n \"current_node\": \"my-node\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.allocation_explain" }, "path": [], "query": [ { "description": "If true, returns information about disk usage and shard sizes.", "name": "include_disk_info", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns YES decisions in explanation.", "name": "include_yes_decisions", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79" }, { "kind": "interface", "name": { "name": "ReservedSize", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "shards", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "cluster/allocation_explain/types.ts#L72-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "allocate_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "allocation_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "allocation_delay_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "can_allocate", "required": false, "type": { "kind": "instance_of", "type": { "name": "Decision", "namespace": "cluster.allocation_explain" } } }, { "name": "can_move_to_other_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "Decision", "namespace": "cluster.allocation_explain" } } }, { "name": "can_rebalance_cluster", "required": false, "type": { "kind": "instance_of", "type": { "name": "Decision", "namespace": "cluster.allocation_explain" } } }, { "name": "can_rebalance_cluster_decisions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AllocationDecision", "namespace": "cluster.allocation_explain" } } } }, { "name": "can_rebalance_to_other_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "Decision", "namespace": "cluster.allocation_explain" } } }, { "name": "can_remain_decisions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AllocationDecision", "namespace": "cluster.allocation_explain" } } } }, { "name": "can_remain_on_current_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "Decision", "namespace": "cluster.allocation_explain" } } }, { "name": "cluster_info", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterInfo", "namespace": "cluster.allocation_explain" } } }, { "name": "configured_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "configured_delay_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "current_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "CurrentNode", "namespace": "cluster.allocation_explain" } } }, { "name": "current_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "move_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "node_allocation_decisions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeAllocationExplanation", "namespace": "cluster.allocation_explain" } } } }, { "name": "primary", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "rebalance_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "remaining_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "remaining_delay_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "unassigned_info", "required": false, "type": { "kind": "instance_of", "type": { "name": "UnassignedInformation", "namespace": "cluster.allocation_explain" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "name": "note", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "ClusterAllocationExplainResponseExample1": { "description": "An example of an allocation explanation for an unassigned primary shard. In this example, a newly created index has an index setting that requires that it only be allocated to a node named `nonexistent_node`, which does not exist, so the index is unable to allocate.\n", "summary": "Conflicting settings", "value": "{\n \"index\" : \"my-index-000001\",\n \"shard\" : 0,\n \"primary\" : true,\n \"current_state\" : \"unassigned\",\n \"unassigned_info\" : {\n \"reason\" : \"INDEX_CREATED\",\n \"at\" : \"2017-01-04T18:08:16.600Z\",\n \"last_allocation_status\" : \"no\"\n },\n \"can_allocate\" : \"no\",\n \"allocate_explanation\" : \"Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.\",\n \"node_allocation_decisions\" : [\n {\n \"node_id\" : \"8qt2rY-pT6KNZB3-hGfLnw\",\n \"node_name\" : \"node-0\",\n \"transport_address\" : \"127.0.0.1:9401\",\n \"roles\" : [\"data\", \"data_cold\", \"data_content\", \"data_frozen\", \"data_hot\", \"data_warm\", \"ingest\", \"master\", \"ml\", \"remote_cluster_client\", \"transform\"],\n \"node_attributes\" : {},\n \"node_decision\" : \"no\",\n \"weight_ranking\" : 1,\n \"deciders\" : [\n {\n \"decider\" : \"filter\",\n \"decision\" : \"NO\",\n \"explanation\" : \"node does not match index setting [index.routing.allocation.include] filters [_name:\\\"nonexistent_node\\\"]\"\n }\n ]\n }\n ]\n}" }, "ClusterAllocationExplainResponseExample2": { "description": "An example of an allocation explanation for an unassigned primary shard that has reached the maximum number of allocation retry attempts. After the maximum number of retries is reached, Elasticsearch stops attempting to allocate the shard in order to prevent infinite retries which may impact cluster performance.\n", "summary": "Maximum retries", "value": "{\n \"index\" : \"my-index-000001\",\n \"shard\" : 0,\n \"primary\" : true,\n \"current_state\" : \"unassigned\",\n \"unassigned_info\" : {\n \"at\" : \"2017-01-04T18:03:28.464Z\",\n \"failed shard on node [mEKjwwzLT1yJVb8UxT6anw]: failed recovery, failure RecoveryFailedException\",\n \"reason\": \"ALLOCATION_FAILED\",\n \"failed_allocation_attempts\": 5,\n \"last_allocation_status\": \"no\",\n },\n \"can_allocate\": \"no\",\n \"allocate_explanation\": \"cannot allocate because allocation is not permitted to any of the nodes\",\n \"node_allocation_decisions\" : [\n {\n \"node_id\" : \"3sULLVJrRneSg0EfBB-2Ew\",\n \"node_name\" : \"node_t0\",\n \"transport_address\" : \"127.0.0.1:9400\",\n \"roles\" : [\"data_content\", \"data_hot\"],\n \"node_decision\" : \"no\",\n \"store\" : {\n \"matching_size\" : \"4.2kb\",\n \"matching_size_in_bytes\" : 4325\n },\n \"deciders\" : [\n {\n \"decider\": \"max_retry\",\n \"decision\" : \"NO\",\n \"explanation\": \"shard has exceeded the maximum number of retries [5] on failed allocation attempts - manually call [POST /_cluster/reroute?retry_failed] to retry, [unassigned_info[[reason=ALLOCATION_FAILED], at[2024-07-30T21:04:12.166Z], failed_attempts[5], failed_nodes[[mEKjwwzLT1yJVb8UxT6anw]], delayed=false, details[failed shard on node [mEKjwwzLT1yJVb8UxT6anw]: failed recovery, failure RecoveryFailedException], allocation_status[deciders_no]]]\"\n }\n ]\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "cluster.allocation_explain" }, "specLocation": "cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64" }, { "kind": "interface", "name": { "name": "UnassignedInformation", "namespace": "cluster.allocation_explain" }, "properties": [ { "name": "at", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_allocation_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "UnassignedInformationReason", "namespace": "cluster.allocation_explain" } } }, { "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "failed_allocation_attempts", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "delayed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "allocation_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/allocation_explain/types.ts#L128-L136" }, { "kind": "enum", "members": [ { "name": "INDEX_CREATED" }, { "name": "CLUSTER_RECOVERED" }, { "name": "INDEX_REOPENED" }, { "name": "DANGLING_INDEX_IMPORTED" }, { "name": "NEW_INDEX_RESTORED" }, { "name": "EXISTING_INDEX_RESTORED" }, { "name": "REPLICA_ADDED" }, { "name": "ALLOCATION_FAILED" }, { "name": "NODE_LEFT" }, { "name": "REROUTE_CANCELLED" }, { "name": "REINITIALIZED" }, { "name": "REALLOCATED_REPLICA" }, { "name": "PRIMARY_FAILED" }, { "name": "FORCED_EMPTY_PRIMARY" }, { "name": "MANUAL_ALLOCATION" } ], "name": { "name": "UnassignedInformationReason", "namespace": "cluster.allocation_explain" }, "specLocation": "cluster/allocation_explain/types.ts#L138-L157" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete component templates.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.delete_component_template" }, "path": [ { "description": "Comma-separated list or wildcard expression of component template names used to limit the request.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/delete_component_template/ClusterDeleteComponentTemplateRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "cluster.delete_component_template" }, "specLocation": "cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear cluster voting config exclusions.\nRemove master-eligible nodes from the voting configuration exclusion list.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.delete_voting_config_exclusions" }, "path": [], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies whether to wait for all excluded nodes to be removed from the\ncluster before clearing the voting configuration exclusions list.\nDefaults to true, meaning that all excluded nodes must be removed from\nthe cluster before this API takes any action. If set to false then the\nvoting configuration exclusions list is cleared even if some excluded\nnodes are still in the cluster.", "name": "wait_for_removal", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L23-L55" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "cluster.delete_voting_config_exclusions" }, "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check component templates.\nReturns information about whether a particular component template exists.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.exists_component_template" }, "path": [ { "description": "Comma-separated list of component template names used to limit the request.\nWildcard (*) expressions are supported.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an\nerror.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If true, the request retrieves information from the local node only.\nDefaults to false, which means information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "cluster/exists_component_template/ClusterComponentTemplateExistsRequest.ts#L24-L62" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "cluster.exists_component_template" }, "specLocation": "cluster/exists_component_template/ClusterComponentTemplateExistsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get component templates.\nGet information about component templates.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.get_component_template" }, "path": [ { "description": "Comma-separated list of component template names used to limit the request.\nWildcard (`*`) expressions are supported.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Return all default configurations for the component template (default: false)", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request retrieves information from the local node only.\nIf `false`, information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/get_component_template/ClusterGetComponentTemplateRequest.ts#L24-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "component_templates", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ComponentTemplate", "namespace": "cluster._types" } } } } ] }, "name": { "name": "Response", "namespace": "cluster.get_component_template" }, "specLocation": "cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cluster-wide settings.\nBy default, it returns only settings that have been explicitly defined.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.get_settings" }, "path": [], "query": [ { "description": "If `true`, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns default cluster settings from the local node.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/get_settings/ClusterGetSettingsRequest.ts#L23-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "persistent", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "transient", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "defaults", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "name": { "name": "Response", "namespace": "cluster.get_settings" }, "specLocation": "cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29" }, { "kind": "interface", "name": { "name": "HealthResponseBody", "namespace": "cluster.health" }, "properties": [ { "description": "The number of active primary shards.", "name": "active_primary_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The total number of active primary and replica shards.", "name": "active_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The ratio of active shards in the cluster expressed as a string formatted percentage.", "name": "active_shards_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The ratio of active shards in the cluster expressed as a percentage.", "name": "active_shards_percent_as_number", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The name of the cluster.", "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The number of shards whose allocation has been delayed by the timeout settings.", "name": "delayed_unassigned_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "indices", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexHealthStats", "namespace": "cluster.health" } } } }, { "description": "The number of shards that are under initialization.", "name": "initializing_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of nodes that are dedicated data nodes.", "name": "number_of_data_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of unfinished fetches.", "name": "number_of_in_flight_fetch", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of nodes within the cluster.", "name": "number_of_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of cluster-level changes that have not yet been executed.", "name": "number_of_pending_tasks", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of shards that are under relocation.", "name": "relocating_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "description": "The time since the earliest initiated task is waiting for being performed.", "name": "task_max_waiting_in_queue", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The time expressed in milliseconds since the earliest initiated task is waiting for being performed.", "name": "task_max_waiting_in_queue_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "If false the response returned within the period of time that is specified by the timeout parameter (30s by default)", "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of primary shards that are not allocated.", "name": "unassigned_primary_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of shards that are not allocated.", "name": "unassigned_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/health/ClusterHealthResponse.ts#L40-L77" }, { "kind": "interface", "name": { "name": "IndexHealthStats", "namespace": "cluster.health" }, "properties": [ { "name": "active_primary_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "active_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "initializing_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "number_of_replicas", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "number_of_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "relocating_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "shards", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ShardHealthStats", "namespace": "cluster.health" } } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "name": "unassigned_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "unassigned_primary_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/health/types.ts#L24-L35" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the cluster health status.\n\nYou can also use the API to get the health status of only specified data streams and indices.\nFor data streams, the API retrieves the health status of the stream’s backing indices.\n\nThe cluster health status is: green, yellow or red.\nOn the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated.\nThe index level status is controlled by the worst shard status.\n\nOne of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level.\nThe cluster status is controlled by the worst index status.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.health" }, "path": [ { "description": "Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (`*`) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or `*`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Can be one of cluster, indices or shards. Controls the details level of the health information returned.", "name": "level", "required": false, "serverDefault": "cluster", "type": { "kind": "instance_of", "type": { "name": "Level", "namespace": "_types" } } }, { "description": "If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "A number controlling to how many active shards to wait for, all to wait for all shards in the cluster to be active, or 0 to not wait.", "name": "wait_for_active_shards", "required": false, "serverDefault": "0", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed.", "name": "wait_for_events", "required": false, "type": { "kind": "instance_of", "type": { "name": "WaitForEvents", "namespace": "_types" } } }, { "description": "The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and yellow > red. By default, will not wait for any status.", "name": "wait_for_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } } ], "specLocation": "cluster/health/ClusterHealthRequest.ts#L32-L118" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "HealthResponseBody", "namespace": "cluster.health" } } }, "examples": { "ClusterHealthResponseExample1": { "description": "A successful response from `GET _cluster/health`. It is the health status of a quiet single node cluster with a single index with one shard and one replica.\n", "value": "{\n \"cluster_name\" : \"testcluster\",\n \"status\" : \"yellow\",\n \"timed_out\" : false,\n \"number_of_nodes\" : 1,\n \"number_of_data_nodes\" : 1,\n \"active_primary_shards\" : 1,\n \"active_shards\" : 1,\n \"relocating_shards\" : 0,\n \"initializing_shards\" : 0,\n \"unassigned_shards\" : 1,\n \"delayed_unassigned_shards\": 0,\n \"number_of_pending_tasks\" : 0,\n \"number_of_in_flight_fetch\": 0,\n \"task_max_waiting_in_queue_millis\": 0,\n \"active_shards_percent_as_number\": 50.0\n}" } }, "exceptions": [ { "body": { "kind": "value", "value": { "kind": "instance_of", "type": { "name": "HealthResponseBody", "namespace": "cluster.health" } } }, "statusCodes": [ 408 ] } ], "name": { "name": "Response", "namespace": "cluster.health" }, "specLocation": "cluster/health/ClusterHealthResponse.ts#L26-L38" }, { "kind": "interface", "name": { "name": "ShardHealthStats", "namespace": "cluster.health" }, "properties": [ { "name": "active_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "initializing_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "primary_active", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "relocating_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "name": "unassigned_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "unassigned_primary_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/health/types.ts#L37-L45" }, { "kind": "type_alias", "name": { "name": "WaitForNodes", "namespace": "cluster.health" }, "specLocation": "cluster/health/types.ts#L47-L47", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ] } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cluster info.\nReturns basic information about the cluster.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.info" }, "path": [ { "description": "Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest.", "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterInfoTargets", "namespace": "_types" } } } ], "query": [], "specLocation": "cluster/info/ClusterInfoRequest.ts#L23-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "http", "required": false, "type": { "kind": "instance_of", "type": { "name": "Http", "namespace": "nodes._types" } } }, { "name": "ingest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ingest", "namespace": "nodes._types" } } }, { "name": "thread_pool", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ThreadCount", "namespace": "nodes._types" } } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Scripting", "namespace": "nodes._types" } } } ] }, "name": { "name": "Response", "namespace": "cluster.info" }, "specLocation": "cluster/info/ClusterInfoResponse.ts#L26-L34" }, { "kind": "interface", "name": { "name": "PendingTask", "namespace": "cluster.pending_tasks" }, "properties": [ { "description": "Indicates whether the pending tasks are currently executing or not.", "name": "executing", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number that represents when the task has been inserted into the task queue.", "name": "insert_order", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The priority of the pending task.\nThe valid priorities in descending priority order are: `IMMEDIATE` > `URGENT` > `HIGH` > `NORMAL` > `LOW` > `LANGUID`.", "name": "priority", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A general description of the cluster task that may include a reason and origin.", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The time since the task is waiting for being performed.", "name": "time_in_queue", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The time expressed in milliseconds since the task is waiting for being performed.", "name": "time_in_queue_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "cluster/pending_tasks/types.ts#L23-L47" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the pending cluster tasks.\nGet information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.\n\nNOTE: This API returns a list of any pending updates to the cluster state.\nThese are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.\nHowever, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.pending_tasks" }, "path": [], "query": [ { "description": "If `true`, the request retrieves information from the local node only.\nIf `false`, information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/pending_tasks/ClusterPendingTasksRequest.ts#L23-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "tasks", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PendingTask", "namespace": "cluster.pending_tasks" } } } } ] }, "name": { "name": "Response", "namespace": "cluster.pending_tasks" }, "specLocation": "cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Update voting configuration exclusions.\nUpdate the cluster voting config exclusions by node IDs or node names.\nBy default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks.\nIf you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually.\nThe API adds an entry for each specified node to the cluster’s voting configuration exclusions list.\nIt then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes.\n\nClusters should have no voting configuration exclusions in normal operation.\nOnce the excluded nodes have stopped, clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`.\nThis API waits for the nodes to be fully removed from the cluster before it returns.\nIf your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false` to clear the voting configuration exclusions without waiting for the nodes to leave the cluster.\n\nA response to `POST /_cluster/voting_config_exclusions` with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`.\nIf the call to `POST /_cluster/voting_config_exclusions` fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration.\nIn that case, you may safely retry the call.\n\nNOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period.\nThey are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.post_voting_config_exclusions" }, "path": [], "query": [ { "description": "A comma-separated list of the names of the nodes to exclude from the\nvoting configuration. If specified, you may not also specify node_ids.", "name": "node_names", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "A comma-separated list of the persistent ids of the nodes to exclude\nfrom the voting configuration. If specified, you may not also specify node_names.", "name": "node_ids", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "When adding a voting configuration exclusion, the API waits for the\nspecified nodes to be excluded from the voting configuration before\nreturning. If the timeout expires before the appropriate condition\nis satisfied, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L80" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "cluster.post_voting_config_exclusions" }, "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The template to be applied which includes mappings, settings, or aliases configuration.", "name": "template", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexState", "namespace": "indices._types" } } }, { "description": "Version number used to manage component templates externally.\nThis number isn't automatically generated or incremented by Elasticsearch.\nTo unset a version, replace the template without specifying a version.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Optional user metadata about the component template.\nIt may have any contents. This map is not automatically generated by Elasticsearch.\nThis information is stored in the cluster state, so keeping it short is preferable.\nTo unset `_meta`, replace the template without specifying this information.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "Marks this index template as deprecated. When creating or updating a non-deprecated index template\nthat uses deprecated components, Elasticsearch will emit a deprecation warning.", "name": "deprecated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Create or update a component template.\nComponent templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.\n\nAn index template can be composed of multiple component templates.\nTo use a component template, specify it in an index template’s `composed_of` list.\nComponent templates are only applied to new data streams and indices as part of a matching index template.\n\nSettings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template.\n\nComponent templates are only used during index creation.\nFor data streams, this includes data stream creation and the creation of a stream’s backing indices.\nChanges to component templates do not affect existing indices, including a stream’s backing indices.\n\nYou can use C-style `/* *\\/` block comments in component templates.\nYou can include comments anywhere in the request body except before the opening curly bracket.\n\n**Applying component templates**\n\nYou cannot directly apply a component template to a data stream or index.\nTo be applied, a component template must be included in an index template's `composed_of` list.", "examples": { "ClusterPutComponentTemplateRequestExample1": { "summary": "Create a template", "value": "{\n \"template\": null,\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"_source\": {\n \"enabled\": false\n },\n \"properties\": {\n \"host_name\": {\n \"type\": \"keyword\"\n },\n \"created_at\": {\n \"type\": \"date\",\n \"format\": \"EEE MMM dd HH:mm:ss Z yyyy\"\n }\n }\n }\n}" }, "ClusterPutComponentTemplateRequestExample2": { "description": "You can include index aliases in a component template. During index creation, the `{index}` placeholder in the alias name will be replaced with the actual index name that the template gets applied to.\n", "summary": "Create a template with aliases", "value": "{\n \"template\": null,\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"aliases\": {\n \"alias1\": {},\n \"alias2\": {\n \"filter\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"routing\": \"shard-1\"\n },\n \"{index}-alias\": {}\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.put_component_template" }, "path": [ { "description": "Name of the component template to create.\nElasticsearch includes the following built-in component templates: `logs-mappings`; `logs-settings`; `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`.\nElastic Agent uses these templates to configure backing indices for its data streams.\nIf you use Elastic Agent and want to overwrite one of these templates, set the `version` for your replacement template higher than the current version.\nIf you don’t use Elastic Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, this request cannot replace or update existing component templates.", "name": "create", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "cluster.put_component_template" }, "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "persistent", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "transient", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Update the cluster settings.\n\nConfigure and update dynamic settings on a running cluster.\nYou can also configure dynamic settings locally on an unstarted or shut down node in `elasticsearch.yml`.\n\nUpdates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart.\nYou can also reset transient or persistent settings by assigning them a null value.\n\nIf you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) `elasticsearch.yml` setting; 4) Default setting value.\nFor example, you can apply a transient setting to override a persistent setting or `elasticsearch.yml` setting.\nHowever, a change to an `elasticsearch.yml` setting will not override a defined transient or persistent setting.\n\nTIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster.\nIf you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings.\nOnly use `elasticsearch.yml` for static cluster settings and node settings.\nThe API doesn’t require a restart and ensures a setting’s value is the same on all nodes.\n\nWARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead.\nIf a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.", "examples": { "ClusterPutSettingsRequestExample1": { "description": "An example of a persistent update.", "summary": "A simple setting", "value": "{\n \"persistent\" : {\n \"indices.recovery.max_bytes_per_sec\" : \"50mb\"\n }\n}" }, "ClusterPutSettingsRequestExample2": { "description": "PUT `/_cluster/settings` to update the `action.auto_create_index` setting. The setting accepts a comma-separated list of patterns that you want to allow or you can prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked. In this example, the auto-creation of indices called `my-index-000001` or `index10` is allowed, the creation of indices that match the pattern `index1*` is blocked, and the creation of any other indices that match the `ind*` pattern is allowed. Patterns are matched in the order specified.\n", "summary": "A setting with multiple patterns", "value": "{\n \"persistent\": {\n \"action.auto_create_index\": \"my-index-000001,index10,-index1*,+ind*\" \n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.put_settings" }, "path": [], "query": [ { "description": "Return settings in flat format (default: false)", "name": "flat_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Explicit operation timeout for connection to master node", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Explicit operation timeout", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L68" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "persistent", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "transient", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "name": { "name": "Response", "namespace": "cluster.put_settings" }, "specLocation": "cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29" }, { "kind": "type_alias", "name": { "name": "ClusterRemoteInfo", "namespace": "cluster.remote_info" }, "specLocation": "cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ClusterRemoteSniffInfo", "namespace": "cluster.remote_info" } }, { "kind": "instance_of", "type": { "name": "ClusterRemoteProxyInfo", "namespace": "cluster.remote_info" } } ] }, "variants": { "kind": "internal_tag", "tag": "mode" } }, { "kind": "interface", "name": { "name": "ClusterRemoteProxyInfo", "namespace": "cluster.remote_info" }, "properties": [ { "description": "The connection mode for the remote cluster.", "name": "mode", "required": true, "type": { "kind": "literal_value", "value": "proxy" } }, { "description": "If it is `true`, there is at least one open connection to the remote cluster.\nIf it is `false`, it means that the cluster no longer has an open connection to the remote cluster.\nIt does not necessarily mean that the remote cluster is down or unavailable, just that at some point a connection was lost.", "name": "connected", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The initial connect timeout for remote cluster connections.", "name": "initial_connect_timeout", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, cross-cluster search skips the remote cluster when its nodes are unavailable during the search and ignores errors returned by the remote cluster.", "extDocId": "modules-cross-cluster-optional", "name": "skip_unavailable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The address for remote connections when proxy mode is configured.", "name": "proxy_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "server_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of open socket connections to the remote cluster when proxy mode is configured.", "name": "num_proxy_sockets_connected", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of socket connections to the remote cluster when proxy mode is configured.", "name": "max_proxy_socket_connections", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "This field is present and has a value of `::es_redacted::` only when the remote cluster is configured with the API key based model. Otherwise, the field is not present.", "name": "cluster_credentials", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83" }, { "kind": "interface", "name": { "name": "ClusterRemoteSniffInfo", "namespace": "cluster.remote_info" }, "properties": [ { "description": "The connection mode for the remote cluster.", "name": "mode", "required": true, "type": { "kind": "literal_value", "value": "sniff" } }, { "description": "If it is `true`, there is at least one open connection to the remote cluster.\nIf it is `false`, it means that the cluster no longer has an open connection to the remote cluster.\nIt does not necessarily mean that the remote cluster is down or unavailable, just that at some point a connection was lost.", "name": "connected", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum number of connections maintained for the remote cluster when sniff mode is configured.", "name": "max_connections_per_cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of connected nodes in the remote cluster when sniff mode is configured.", "name": "num_nodes_connected", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The initial connect timeout for remote cluster connections.", "name": "initial_connect_timeout", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, cross-cluster search skips the remote cluster when its nodes are unavailable during the search and ignores errors returned by the remote cluster.", "extDocId": "modules-cross-cluster-optional", "name": "skip_unavailable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The initial seed transport addresses of the remote cluster when sniff mode is configured.", "name": "seeds", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get remote cluster information.\n\nGet information about configured remote clusters.\nThe API returns connection and endpoint information keyed by the configured remote cluster alias.\n\n> info\n> This API returns information that reflects current state on the local cluster.\n> The `connected` field does not necessarily reflect whether a remote cluster is down or unavailable, only whether there is currently an open connection to it.\n> Elasticsearch does not spontaneously try to reconnect to a disconnected remote cluster.\n> To trigger a reconnection, attempt a cross-cluster search, ES|QL cross-cluster search, or try the [resolve cluster endpoint](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster).", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.remote_info" }, "path": [], "query": [], "specLocation": "cluster/remote_info/ClusterRemoteInfoRequest.ts#L22-L46" }, { "kind": "response", "body": { "kind": "value", "codegenName": "infos", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterRemoteInfo", "namespace": "cluster.remote_info" } } } }, "name": { "name": "Response", "namespace": "cluster.remote_info" }, "specLocation": "cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27" }, { "kind": "interface", "name": { "name": "Command", "namespace": "cluster.reroute" }, "properties": [ { "description": "Cancel allocation of a shard (or recovery). Accepts index and shard for index name and shard number, and node for the node to cancel the shard allocation on. This can be used to force resynchronization of existing replicas from the primary shard by cancelling them and allowing them to be reinitialized through the standard recovery process. By default only replica shard allocations can be cancelled. If it is necessary to cancel the allocation of a primary shard then the allow_primary flag must also be included in the request.", "name": "cancel", "required": false, "type": { "kind": "instance_of", "type": { "name": "CommandCancelAction", "namespace": "cluster.reroute" } } }, { "description": "Move a started shard from one node to another node. Accepts index and shard for index name and shard number, from_node for the node to move the shard from, and to_node for the node to move the shard to.", "name": "move", "required": false, "type": { "kind": "instance_of", "type": { "name": "CommandMoveAction", "namespace": "cluster.reroute" } } }, { "description": "Allocate an unassigned replica shard to a node. Accepts index and shard for index name and shard number, and node to allocate the shard to. Takes allocation deciders into account.", "name": "allocate_replica", "required": false, "type": { "kind": "instance_of", "type": { "name": "CommandAllocateReplicaAction", "namespace": "cluster.reroute" } } }, { "description": "Allocate a primary shard to a node that holds a stale copy. Accepts the index and shard for index name and shard number, and node to allocate the shard to. Using this command may lead to data loss for the provided shard id. If a node which has the good copy of the data rejoins the cluster later on, that data will be deleted or overwritten with the data of the stale copy that was forcefully allocated with this command. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true.", "name": "allocate_stale_primary", "required": false, "type": { "kind": "instance_of", "type": { "name": "CommandAllocatePrimaryAction", "namespace": "cluster.reroute" } } }, { "description": "Allocate an empty primary shard to a node. Accepts the index and shard for index name and shard number, and node to allocate the shard to. Using this command leads to a complete loss of all data that was indexed into this shard, if it was previously started. If a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true.", "name": "allocate_empty_primary", "required": false, "type": { "kind": "instance_of", "type": { "name": "CommandAllocatePrimaryAction", "namespace": "cluster.reroute" } } } ], "specLocation": "cluster/reroute/types.ts#L22-L43" }, { "kind": "interface", "name": { "name": "CommandAllocatePrimaryAction", "namespace": "cluster.reroute" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true", "name": "accept_data_loss", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "cluster/reroute/types.ts#L78-L84" }, { "kind": "interface", "docId": "modules-cluster", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings", "name": { "name": "CommandAllocateReplicaAction", "namespace": "cluster.reroute" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/reroute/types.ts#L69-L76" }, { "kind": "interface", "name": { "name": "CommandCancelAction", "namespace": "cluster.reroute" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "allow_primary", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "cluster/reroute/types.ts#L45-L50" }, { "kind": "interface", "name": { "name": "CommandMoveAction", "namespace": "cluster.reroute" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The node to move the shard from", "name": "from_node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The node to move the shard to", "name": "to_node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/reroute/types.ts#L60-L67" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Defines the commands to perform.", "name": "commands", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Command", "namespace": "cluster.reroute" } } } } ] }, "description": "Reroute the cluster.\nManually change the allocation of individual shards in the cluster.\nFor example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node.\n\nIt is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as `cluster.routing.rebalance.enable`) in order to remain in a balanced state.\nFor example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out.\n\nThe cluster can be set to disable allocations using the `cluster.routing.allocation.enable` setting.\nIf allocations are disabled then the only allocations that will be performed are explicit ones given using the reroute command, and consequent allocations due to rebalancing.\n\nThe cluster will attempt to allocate a shard a maximum of `index.allocation.max_retries` times in a row (defaults to `5`), before giving up and leaving the shard unallocated.\nThis scenario can be caused by structural problems such as having an analyzer which refers to a stopwords file which doesn’t exist on all nodes.\n\nOnce the problem has been corrected, allocation can be manually retried by calling the reroute API with the `?retry_failed` URI query parameter, which will attempt a single retry round for these shards.", "examples": { "ClusterRerouteRequestExample1": { "description": "Run `POST /_cluster/reroute?metric=none` to changes the allocation of shards in a cluster.", "value": "{\n \"commands\": [\n {\n \"move\": {\n \"index\": \"test\", \"shard\": 0,\n \"from_node\": \"node1\", \"to_node\": \"node2\"\n }\n },\n {\n \"allocate_replica\": {\n \"index\": \"test\", \"shard\": 1,\n \"node\": \"node3\"\n }\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.reroute" }, "path": [], "query": [ { "description": "If true, then the request simulates the operation.\nIt will calculate the result of applying the commands to the current cluster state and return the resulting cluster state after the commands (and rebalancing) have been applied; it will not actually perform the requested changes.", "name": "dry_run", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, then the response contains an explanation of why the commands can or cannot run.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Limits the information returned to the specified metrics.", "name": "metric", "required": false, "serverDefault": "all", "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } }, { "description": "If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.", "name": "retry_failed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/reroute/ClusterRerouteRequest.ts#L25-L91" }, { "kind": "interface", "name": { "name": "RerouteDecision", "namespace": "cluster.reroute" }, "properties": [ { "name": "decider", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "decision", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "explanation", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/reroute/types.ts#L86-L90" }, { "kind": "interface", "name": { "name": "RerouteExplanation", "namespace": "cluster.reroute" }, "properties": [ { "name": "command", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "decisions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RerouteDecision", "namespace": "cluster.reroute" } } } }, { "name": "parameters", "required": true, "type": { "kind": "instance_of", "type": { "name": "RerouteParameters", "namespace": "cluster.reroute" } } } ], "specLocation": "cluster/reroute/types.ts#L92-L96" }, { "kind": "interface", "name": { "name": "RerouteParameters", "namespace": "cluster.reroute" }, "properties": [ { "name": "allow_primary", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } }, { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "from_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } }, { "name": "to_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeName", "namespace": "_types" } } } ], "specLocation": "cluster/reroute/types.ts#L98-L105" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "explanations", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RerouteExplanation", "namespace": "cluster.reroute" } } } }, { "description": "There aren't any guarantees on the output/structure of the raw cluster state.\nHere you will find the internal representation of the cluster, which can\ndiffer from the external representation.", "name": "state", "required": false, "type": { "kind": "user_defined_value" } } ] }, "name": { "name": "Response", "namespace": "cluster.reroute" }, "specLocation": "cluster/reroute/ClusterRerouteResponse.ts#L23-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the cluster state.\nGet comprehensive information about the state of the cluster.\n\nThe cluster state is an internal data structure which keeps track of a variety of information needed by every node, including the identity and attributes of the other nodes in the cluster; cluster-wide settings; index metadata, including the mapping and settings for each index; the location and status of every shard copy in the cluster.\n\nThe elected master node ensures that every node in the cluster has a copy of the same cluster state.\nThis API lets you retrieve a representation of this internal state for debugging or diagnostic purposes.\nYou may need to consult the Elasticsearch source code to determine the precise meaning of the response.\n\nBy default the API will route requests to the elected master node since this node is the authoritative source of cluster states.\nYou can also retrieve the cluster state held on the node handling the API request by adding the `?local=true` query parameter.\n\nElasticsearch may need to expend significant effort to compute a response to this API in larger clusters, and the response may comprise a very large quantity of data.\nIf you use this API repeatedly, your cluster may become unstable.\n\nWARNING: The response is a representation of an internal data structure.\nIts format is not subject to the same compatibility guarantees as other more stable APIs and may change from version to version.\nDo not query this API using external monitoring tools.\nInstead, obtain the information you require using other more stable cluster APIs.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.state" }, "path": [ { "description": "Limit the information returned to the specified metrics", "name": "metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } }, { "description": "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Return settings in flat format (default: false)", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Return local information, do not retrieve the state from master node (default: false)", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify timeout for connection to master", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Wait for the metadata version to be equal or greater than the specified metadata version", "name": "wait_for_metadata_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "The maximum time to wait for wait_for_metadata_version before timing out", "name": "wait_for_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/state/ClusterStateRequest.ts#L29-L89" }, { "kind": "response", "body": { "kind": "value", "codegenName": "state", "value": { "kind": "user_defined_value" } }, "name": { "name": "Response", "namespace": "cluster.state" }, "specLocation": "cluster/state/ClusterStateResponse.ts#L22-L31" }, { "kind": "interface", "name": { "name": "CharFilterTypes", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about analyzer types used in selected nodes.", "name": "analyzer_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about built-in analyzers used in selected nodes.", "name": "built_in_analyzers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about built-in character filters used in selected nodes.", "name": "built_in_char_filters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about built-in token filters used in selected nodes.", "name": "built_in_filters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about built-in tokenizers used in selected nodes.", "name": "built_in_tokenizers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about character filter types used in selected nodes.", "name": "char_filter_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about token filter types used in selected nodes.", "name": "filter_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about tokenizer types used in selected nodes.", "name": "tokenizer_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } } ], "specLocation": "cluster/stats/types.ts#L228-L261" }, { "kind": "interface", "name": { "name": "ClusterFileSystem", "namespace": "cluster.stats" }, "properties": [ { "description": "Total number of bytes available to JVM in file stores across all selected nodes.\nDepending on operating system or process-level restrictions, this number may be less than `nodes.fs.free_in_byes`.\nThis is the actual amount of free disk space the selected Elasticsearch nodes can use.", "name": "available_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of unallocated bytes in file stores across all selected nodes.", "name": "free_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total size, in bytes, of all file stores across all selected nodes.", "name": "total_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L34-L49" }, { "kind": "interface", "name": { "name": "ClusterIndices", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about analyzers and analyzer components used in selected nodes.", "name": "analysis", "required": true, "type": { "kind": "instance_of", "type": { "name": "CharFilterTypes", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about memory used for completion in selected nodes.", "name": "completion", "required": true, "type": { "kind": "instance_of", "type": { "name": "CompletionStats", "namespace": "_types" } } }, { "description": "Total number of indices with shards assigned to selected nodes.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Contains counts for documents in selected nodes.", "name": "docs", "required": true, "type": { "kind": "instance_of", "type": { "name": "DocStats", "namespace": "_types" } } }, { "description": "Contains statistics about the field data cache of selected nodes.", "docId": "modules-fielddata", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/field-data-cache-settings", "name": "fielddata", "required": true, "type": { "kind": "instance_of", "type": { "name": "FielddataStats", "namespace": "_types" } } }, { "description": "Contains statistics about the query cache of selected nodes.", "name": "query_cache", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryCacheStats", "namespace": "_types" } } }, { "description": "Contains statistics about segments in selected nodes.", "name": "segments", "required": true, "type": { "kind": "instance_of", "type": { "name": "SegmentsStats", "namespace": "_types" } } }, { "description": "Contains statistics about indices with shards assigned to selected nodes.", "name": "shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterIndicesShards", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the size of shards assigned to selected nodes.", "name": "store", "required": true, "type": { "kind": "instance_of", "type": { "name": "StoreStats", "namespace": "_types" } } }, { "description": "Contains statistics about field mappings in selected nodes.", "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldTypesMappings", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about analyzers and analyzer components used in selected nodes.", "docId": "analyzer-anatomy", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/text-analysis/anatomy-of-an-analyzer", "name": "versions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesVersions", "namespace": "cluster.stats" } } } } ], "specLocation": "cluster/stats/types.ts#L74-L107" }, { "kind": "interface", "description": "Contains statistics about shards assigned to selected nodes.", "name": { "name": "ClusterIndicesShards", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about shards assigned to selected nodes.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterIndicesShardsIndex", "namespace": "cluster.stats" } } }, { "description": "Number of primary shards assigned to selected nodes.", "name": "primaries", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Ratio of replica shards to primary shards across all selected nodes.", "name": "replication", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Total number of shards assigned to selected nodes.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L60-L72" }, { "kind": "interface", "name": { "name": "ClusterIndicesShardsIndex", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about the number of primary shards assigned to selected nodes.", "name": "primaries", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterShardMetrics", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the number of replication shards assigned to selected nodes.", "name": "replication", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterShardMetrics", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the number of shards assigned to selected nodes.", "name": "shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterShardMetrics", "namespace": "cluster.stats" } } } ], "specLocation": "cluster/stats/types.ts#L51-L58" }, { "kind": "interface", "name": { "name": "ClusterIngest", "namespace": "cluster.stats" }, "properties": [ { "name": "number_of_pipelines", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "processor_stats", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterProcessor", "namespace": "cluster.stats" } } } } ], "specLocation": "cluster/stats/types.ts#L270-L273" }, { "kind": "interface", "name": { "name": "ClusterJvm", "namespace": "cluster.stats" }, "properties": [ { "description": "Uptime duration, in milliseconds, since JVM last started.", "name": "max_uptime_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Contains statistics about memory used by selected nodes.", "name": "mem", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterJvmMemory", "namespace": "cluster.stats" } } }, { "description": "Number of active threads in use by JVM across all selected nodes.", "name": "threads", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Contains statistics about the JVM versions used by selected nodes.", "name": "versions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterJvmVersion", "namespace": "cluster.stats" } } } } ], "specLocation": "cluster/stats/types.ts#L275-L292" }, { "kind": "interface", "name": { "name": "ClusterJvmMemory", "namespace": "cluster.stats" }, "properties": [ { "description": "Maximum amount of memory, in bytes, available for use by the heap across all selected nodes.", "name": "heap_max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Memory, in bytes, currently in use by the heap across all selected nodes.", "name": "heap_used_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L294-L303" }, { "kind": "interface", "name": { "name": "ClusterJvmVersion", "namespace": "cluster.stats" }, "properties": [ { "description": "Always `true`. All distributions come with a bundled Java Development Kit (JDK).", "name": "bundled_jdk", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Total number of selected nodes using JVM.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, a bundled JDK is in use by JVM.", "name": "using_bundled_jdk", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Version of JVM used by one or more selected nodes.", "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "Name of the JVM.", "name": "vm_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Vendor of the JVM.", "name": "vm_vendor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Full version number of JVM.\nThe full version number includes a plus sign (+) followed by the build number.", "name": "vm_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L305-L335" }, { "kind": "interface", "name": { "name": "ClusterNetworkTypes", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about the HTTP network types used by selected nodes.", "name": "http_types", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "description": "Contains statistics about the transport network types used by selected nodes.", "name": "transport_types", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "cluster/stats/types.ts#L337-L346" }, { "kind": "interface", "name": { "name": "ClusterNodeCount", "namespace": "cluster.stats" }, "properties": [ { "name": "coordinating_only", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "data", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "data_cold", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "data_content", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "name": "data_frozen", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "data_hot", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "data_warm", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "ingest", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "master", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "ml", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "remote_cluster_client", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "transform", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "voting_only", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L348-L367" }, { "kind": "interface", "name": { "name": "ClusterNodes", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains counts for nodes selected by the request’s node filters.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterNodeCount", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the discovery types used by selected nodes.", "docId": "modules-discovery-hosts-providers", "docUrl": "https://www.elastic.co/docs/deploy-manage/distributed-architecture/discovery-cluster-formation/discovery-hosts-providers", "name": "discovery_types", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "description": "Contains statistics about file stores by selected nodes.", "name": "fs", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterFileSystem", "namespace": "cluster.stats" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "indexing_pressure", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexingPressure", "namespace": "cluster.stats" } } }, { "name": "ingest", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterIngest", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the Java Virtual Machines (JVMs) used by selected nodes.", "name": "jvm", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterJvm", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the transport and HTTP networks used by selected nodes.", "name": "network_types", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterNetworkTypes", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about the operating systems used by selected nodes.", "name": "os", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterOperatingSystem", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about Elasticsearch distributions installed on selected nodes.", "name": "packaging_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodePackagingType", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about installed plugins and modules by selected nodes.\nIf no plugins or modules are installed, this array is empty.", "name": "plugins", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PluginStats", "namespace": "_types" } } } }, { "description": "Contains statistics about processes used by selected nodes.", "name": "process", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterProcess", "namespace": "cluster.stats" } } }, { "description": "Array of Elasticsearch versions used on selected nodes.", "name": "versions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } } ], "specLocation": "cluster/stats/types.ts#L369-L402" }, { "kind": "interface", "name": { "name": "ClusterOperatingSystem", "namespace": "cluster.stats" }, "properties": [ { "description": "Number of processors used to calculate thread pool size across all selected nodes.\nThis number can be set with the processors setting of a node and defaults to the number of processors reported by the operating system.\nIn both cases, this number will never be larger than 32.", "name": "allocated_processors", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Contains statistics about processor architectures (for example, x86_64 or aarch64) used by selected nodes.", "name": "architectures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterOperatingSystemArchitecture", "namespace": "cluster.stats" } } } }, { "description": "Number of processors available to JVM across all selected nodes.", "name": "available_processors", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Contains statistics about memory used by selected nodes.", "name": "mem", "required": true, "type": { "kind": "instance_of", "type": { "name": "OperatingSystemMemoryInfo", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about operating systems used by selected nodes.", "name": "names", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterOperatingSystemName", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about operating systems used by selected nodes.", "name": "pretty_names", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterOperatingSystemPrettyName", "namespace": "cluster.stats" } } } } ], "specLocation": "cluster/stats/types.ts#L415-L442" }, { "kind": "interface", "name": { "name": "ClusterOperatingSystemArchitecture", "namespace": "cluster.stats" }, "properties": [ { "description": "Name of an architecture used by one or more selected nodes.", "name": "arch", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Number of selected nodes using the architecture.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L404-L413" }, { "kind": "interface", "name": { "name": "ClusterOperatingSystemName", "namespace": "cluster.stats" }, "properties": [ { "description": "Number of selected nodes using the operating system.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Name of an operating system used by one or more selected nodes.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L444-L453" }, { "kind": "interface", "name": { "name": "ClusterOperatingSystemPrettyName", "namespace": "cluster.stats" }, "properties": [ { "description": "Number of selected nodes using the operating system.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Human-readable name of an operating system used by one or more selected nodes.", "name": "pretty_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L455-L464" }, { "kind": "interface", "name": { "name": "ClusterProcess", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about CPU used by selected nodes.", "name": "cpu", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterProcessCpu", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about open file descriptors in selected nodes.", "name": "open_file_descriptors", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterProcessOpenFileDescriptors", "namespace": "cluster.stats" } } } ], "specLocation": "cluster/stats/types.ts#L466-L475" }, { "kind": "interface", "name": { "name": "ClusterProcessCpu", "namespace": "cluster.stats" }, "properties": [ { "description": "Percentage of CPU used across all selected nodes.\nReturns `-1` if not supported.", "name": "percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L477-L483" }, { "kind": "interface", "name": { "name": "ClusterProcessOpenFileDescriptors", "namespace": "cluster.stats" }, "properties": [ { "description": "Average number of concurrently open file descriptors.\nReturns `-1` if not supported.", "name": "avg", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Maximum number of concurrently open file descriptors allowed across all selected nodes.\nReturns `-1` if not supported.", "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Minimum number of concurrently open file descriptors across all selected nodes.\nReturns -1 if not supported.", "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L485-L501" }, { "kind": "interface", "name": { "name": "ClusterProcessor", "namespace": "cluster.stats" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L503-L509" }, { "kind": "interface", "name": { "name": "ClusterShardMetrics", "namespace": "cluster.stats" }, "properties": [ { "description": "Mean number of shards in an index, counting only shards assigned to selected nodes.", "name": "avg", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Maximum number of shards in an index, counting only shards assigned to selected nodes.", "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Minimum number of shards in an index, counting only shards assigned to selected nodes.", "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L511-L524" }, { "kind": "interface", "name": { "name": "FieldTypes", "namespace": "cluster.stats" }, "properties": [ { "description": "The name for the field type in selected nodes.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The number of occurrences of the field type in selected nodes.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of indices containing the field type in selected nodes.", "name": "index_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "For dense_vector field types, number of indexed vector types in selected nodes.", "name": "indexed_vector_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "For dense_vector field types, the maximum dimension of all indexed vector types in selected nodes.", "name": "indexed_vector_dim_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "For dense_vector field types, the minimum dimension of all indexed vector types in selected nodes.", "name": "indexed_vector_dim_min", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "description": "The number of fields that declare a script.", "name": "script_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L136-L167" }, { "kind": "interface", "name": { "name": "FieldTypesMappings", "namespace": "cluster.stats" }, "properties": [ { "description": "Contains statistics about field data types used in selected nodes.", "name": "field_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Contains statistics about runtime field data types used in selected nodes.", "name": "runtime_field_types", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RuntimeFieldTypes", "namespace": "cluster.stats" } } } }, { "description": "Total number of fields in all non-system indices.", "name": "total_field_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of fields in all non-system indices, accounting for mapping deduplication.", "name": "total_deduplicated_field_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total size of all mappings after deduplication and compression.", "name": "total_deduplicated_mapping_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total size of all mappings, in bytes, after deduplication and compression.", "name": "total_deduplicated_mapping_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L109-L134" }, { "kind": "interface", "name": { "name": "IndexingPressure", "namespace": "cluster.stats" }, "properties": [ { "name": "memory", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexingPressureMemory", "namespace": "cluster.stats" } } } ], "specLocation": "cluster/stats/types.ts#L570-L572" }, { "kind": "interface", "name": { "name": "IndexingPressureMemory", "namespace": "cluster.stats" }, "properties": [ { "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexingPressureMemorySummary", "namespace": "cluster.stats" } } }, { "name": "limit_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexingPressureMemorySummary", "namespace": "cluster.stats" } } } ], "specLocation": "cluster/stats/types.ts#L574-L578" }, { "kind": "interface", "name": { "name": "IndexingPressureMemorySummary", "namespace": "cluster.stats" }, "properties": [ { "name": "all_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "combined_coordinating_and_primary_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "coordinating_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "coordinating_rejections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_rejections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "replica_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "replica_rejections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L580-L589" }, { "kind": "interface", "name": { "name": "IndicesVersions", "namespace": "cluster.stats" }, "properties": [ { "name": "index_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "primary_shard_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_primary_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L263-L268" }, { "kind": "interface", "name": { "name": "NodePackagingType", "namespace": "cluster.stats" }, "properties": [ { "description": "Number of selected nodes using the distribution flavor and file type.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Type of Elasticsearch distribution. This is always `default`.", "name": "flavor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "File type (such as `tar` or `zip`) used for the distribution package.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "cluster/stats/types.ts#L526-L539" }, { "kind": "interface", "name": { "name": "OperatingSystemMemoryInfo", "namespace": "cluster.stats" }, "properties": [ { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "description": "Total amount, in bytes, of memory across all selected nodes, but using the value specified using the `es.total_memory_bytes` system property instead of measured total memory for those nodes where that system property was set.", "name": "adjusted_total_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Amount, in bytes, of free physical memory across all selected nodes.", "name": "free_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Percentage of free physical memory across all selected nodes.", "name": "free_percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total amount, in bytes, of physical memory across all selected nodes.", "name": "total_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Amount, in bytes, of physical memory in use across all selected nodes.", "name": "used_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Percentage of physical memory in use across all selected nodes.", "name": "used_percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L541-L568" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cluster statistics.\nGet basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "cluster.stats" }, "path": [ { "description": "Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [ { "description": "Include remote cluster data into the response", "name": "include_remotes", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "cluster/stats/ClusterStatsRequest.ts#L24-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "stats", "value": { "kind": "instance_of", "type": { "name": "StatsResponseBase", "namespace": "cluster.stats" } } }, "name": { "name": "Response", "namespace": "cluster.stats" }, "specLocation": "cluster/stats/ClusterStatsResponse.ts#L53-L56" }, { "kind": "interface", "name": { "name": "RuntimeFieldTypes", "namespace": "cluster.stats" }, "properties": [ { "description": "Maximum number of characters for a single runtime field script.", "name": "chars_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of characters for the scripts that define the current runtime field data type.", "name": "chars_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of runtime fields mapped to the field data type in selected nodes.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum number of accesses to doc_values for a single runtime field script", "name": "doc_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of accesses to doc_values for the scripts that define the current runtime field data type.", "name": "doc_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of indices containing a mapping of the runtime field data type in selected nodes.", "name": "index_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Script languages used for the runtime fields scripts.", "name": "lang", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Maximum number of lines for a single runtime field script.", "name": "lines_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of lines for the scripts that define the current runtime field data type.", "name": "lines_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Field data type used in selected nodes.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Number of runtime fields that don’t declare a script.", "name": "scriptless_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of runtime fields that shadow an indexed field.", "name": "shadowed_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum number of accesses to _source for a single runtime field script.", "name": "source_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of accesses to _source for the scripts that define the current runtime field data type.", "name": "source_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "cluster/stats/types.ts#L169-L226" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "StatsResponseBase", "namespace": "cluster.stats" }, "properties": [ { "description": "Name of the cluster, based on the cluster name setting.", "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Unique identifier for the cluster.", "name": "cluster_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "description": "Contains statistics about indices with shards assigned to selected nodes.", "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterIndices", "namespace": "cluster.stats" } } }, { "description": "Contains statistics about nodes selected by the request’s node filters.", "docId": "cluster-nodes", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#cluster-nodes", "name": "nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ClusterNodes", "namespace": "cluster.stats" } } }, { "description": "Health status of the cluster, based on the state of its primary and replica shards.", "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "description": "Unix timestamp, in milliseconds, for the last time the cluster statistics were refreshed.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "cluster/stats/ClusterStatsResponse.ts#L25-L51" }, { "kind": "interface", "name": { "name": "Connector", "namespace": "connector._types" }, "properties": [ { "name": "api_key_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "api_key_secret_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "configuration", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConnectorConfiguration", "namespace": "connector._types" } } }, { "name": "custom_scheduling", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConnectorCustomScheduling", "namespace": "connector._types" } } }, { "name": "deleted", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "error", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "features", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectorFeatures", "namespace": "connector._types" } } }, { "name": "filtering", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FilteringConfig", "namespace": "connector._types" } } } }, { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index_name", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "is_native", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "last_access_control_sync_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "last_access_control_sync_scheduled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_access_control_sync_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncStatus", "namespace": "connector._types" } } }, { "name": "last_deleted_document_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "last_incremental_sync_scheduled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_indexed_document_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "last_seen", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_sync_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "last_sync_scheduled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_sync_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncStatus", "namespace": "connector._types" } } }, { "name": "last_synced", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "IngestPipelineParams", "namespace": "connector._types" } } }, { "name": "scheduling", "required": true, "type": { "kind": "instance_of", "type": { "name": "SchedulingConfiguration", "namespace": "connector._types" } } }, { "name": "service_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConnectorStatus", "namespace": "connector._types" } } }, { "name": "sync_cursor", "required": false, "type": { "kind": "user_defined_value" } }, { "name": "sync_now", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L252-L284" }, { "kind": "interface", "name": { "name": "ConnectorConfigProperties", "namespace": "connector._types" }, "properties": [ { "name": "category", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "default_value", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScalarValue", "namespace": "_types" } } }, { "name": "depends_on", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Dependency", "namespace": "connector._types" } } } }, { "name": "display", "required": true, "type": { "kind": "instance_of", "type": { "name": "DisplayType", "namespace": "connector._types" } } }, { "name": "label", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "options", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SelectOption", "namespace": "connector._types" } } } }, { "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "placeholder", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "required", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "sensitive", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "tooltip", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectorFieldType", "namespace": "connector._types" } } }, { "name": "ui_restrictions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "validations", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Validation", "namespace": "connector._types" } } } }, { "name": "value", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "connector/_types/Connector.ts#L83-L99" }, { "kind": "type_alias", "name": { "name": "ConnectorConfiguration", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L101-L104", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ConnectorConfigProperties", "namespace": "connector._types" } } } }, { "kind": "type_alias", "name": { "name": "ConnectorCustomScheduling", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L128-L128", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CustomScheduling", "namespace": "connector._types" } } } }, { "kind": "interface", "name": { "name": "ConnectorFeatures", "namespace": "connector._types" }, "properties": [ { "description": "Indicates whether document-level security is enabled.", "name": "document_level_security", "required": false, "type": { "kind": "instance_of", "type": { "name": "FeatureEnabled", "namespace": "connector._types" } } }, { "description": "Indicates whether incremental syncs are enabled.", "name": "incremental_sync", "required": false, "type": { "kind": "instance_of", "type": { "name": "FeatureEnabled", "namespace": "connector._types" } } }, { "description": "Indicates whether managed connector API keys are enabled.", "name": "native_connector_api_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "FeatureEnabled", "namespace": "connector._types" } } }, { "name": "sync_rules", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncRulesFeature", "namespace": "connector._types" } } } ], "specLocation": "connector/_types/Connector.ts#L230-L244" }, { "kind": "enum", "members": [ { "name": "str" }, { "name": "int" }, { "name": "list" }, { "name": "bool" } ], "name": { "name": "ConnectorFieldType", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L43-L48" }, { "kind": "interface", "name": { "name": "ConnectorScheduling", "namespace": "connector._types" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The interval is expressed using the crontab syntax", "name": "interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L106-L110" }, { "kind": "enum", "members": [ { "name": "created" }, { "name": "needs_configuration" }, { "name": "configured" }, { "name": "connected" }, { "name": "error" } ], "name": { "name": "ConnectorStatus", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L130-L136" }, { "kind": "interface", "name": { "name": "ConnectorSyncJob", "namespace": "connector._types" }, "properties": [ { "name": "cancelation_requested_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "canceled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "completed_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "connector", "required": true, "type": { "kind": "instance_of", "type": { "name": "SyncJobConnectorReference", "namespace": "connector._types" } } }, { "name": "created_at", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "deleted_document_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "indexed_document_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "indexed_document_volume", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "job_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "SyncJobType", "namespace": "connector._types" } } }, { "name": "last_seen", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "metadata", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "started_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "SyncStatus", "namespace": "connector._types" } } }, { "name": "total_document_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "trigger_method", "required": true, "type": { "kind": "instance_of", "type": { "name": "SyncJobTriggerMethod", "namespace": "connector._types" } } }, { "name": "worker_hostname", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/SyncJob.ts#L53-L72" }, { "kind": "interface", "name": { "name": "CustomScheduling", "namespace": "connector._types" }, "properties": [ { "name": "configuration_overrides", "required": true, "type": { "kind": "instance_of", "type": { "name": "CustomSchedulingConfigurationOverrides", "namespace": "connector._types" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "last_synced", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L120-L126" }, { "kind": "interface", "name": { "name": "CustomSchedulingConfigurationOverrides", "namespace": "connector._types" }, "properties": [ { "name": "max_crawl_depth", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sitemap_discovery_disabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "domain_allowlist", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "sitemap_urls", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "seed_urls", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "connector/_types/Connector.ts#L112-L118" }, { "kind": "interface", "name": { "name": "Dependency", "namespace": "connector._types" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScalarValue", "namespace": "_types" } } } ], "specLocation": "connector/_types/Connector.ts#L30-L33" }, { "kind": "enum", "members": [ { "name": "textbox" }, { "name": "textarea" }, { "name": "numeric" }, { "name": "toggle" }, { "name": "dropdown" } ], "name": { "name": "DisplayType", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L35-L41" }, { "kind": "interface", "name": { "name": "FeatureEnabled", "namespace": "connector._types" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L215-L217" }, { "kind": "interface", "name": { "name": "FilteringAdvancedSnippet", "namespace": "connector._types" }, "properties": [ { "name": "created_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "updated_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "value", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "connector/_types/Connector.ts#L192-L196" }, { "kind": "interface", "name": { "name": "FilteringConfig", "namespace": "connector._types" }, "properties": [ { "name": "active", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringRules", "namespace": "connector._types" } } }, { "name": "domain", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "draft", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringRules", "namespace": "connector._types" } } } ], "specLocation": "connector/_types/Connector.ts#L209-L213" }, { "kind": "enum", "members": [ { "name": "exclude" }, { "name": "include" } ], "name": { "name": "FilteringPolicy", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L155-L158" }, { "kind": "interface", "name": { "name": "FilteringRule", "namespace": "connector._types" }, "properties": [ { "name": "created_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "order", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringPolicy", "namespace": "connector._types" } } }, { "name": "rule", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringRuleRule", "namespace": "connector._types" } } }, { "name": "updated_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L170-L179" }, { "kind": "enum", "members": [ { "name": "contains" }, { "name": "ends_with" }, { "name": "equals" }, { "name": "regex" }, { "name": "starts_with" }, { "codegenName": "greater_than", "name": ">" }, { "codegenName": "less_than", "name": "<" } ], "name": { "name": "FilteringRuleRule", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L160-L168" }, { "kind": "interface", "name": { "name": "FilteringRules", "namespace": "connector._types" }, "properties": [ { "name": "advanced_snippet", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringAdvancedSnippet", "namespace": "connector._types" } } }, { "name": "rules", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FilteringRule", "namespace": "connector._types" } } } }, { "name": "validation", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringRulesValidation", "namespace": "connector._types" } } } ], "specLocation": "connector/_types/Connector.ts#L203-L207" }, { "kind": "interface", "name": { "name": "FilteringRulesValidation", "namespace": "connector._types" }, "properties": [ { "name": "errors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FilteringValidation", "namespace": "connector._types" } } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringValidationState", "namespace": "connector._types" } } } ], "specLocation": "connector/_types/Connector.ts#L198-L201" }, { "kind": "interface", "name": { "name": "FilteringValidation", "namespace": "connector._types" }, "properties": [ { "name": "ids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "name": "messages", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "connector/_types/Connector.ts#L181-L184" }, { "kind": "enum", "members": [ { "name": "edited" }, { "name": "invalid" }, { "name": "valid" } ], "name": { "name": "FilteringValidationState", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L186-L190" }, { "kind": "interface", "name": { "name": "GreaterThanValidation", "namespace": "connector._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "greater_than" } }, { "name": "constraint", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "connector/_types/Connector.ts#L63-L66" }, { "kind": "interface", "name": { "name": "IncludedInValidation", "namespace": "connector._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "included_in" } }, { "name": "constraint", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ScalarValue", "namespace": "_types" } } } } ], "specLocation": "connector/_types/Connector.ts#L73-L76" }, { "kind": "interface", "name": { "name": "IngestPipelineParams", "namespace": "connector._types" }, "properties": [ { "name": "extract_binary_content", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reduce_whitespace", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "run_ml_inference", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L148-L153" }, { "kind": "interface", "name": { "name": "LessThanValidation", "namespace": "connector._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "less_than" } }, { "name": "constraint", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "connector/_types/Connector.ts#L58-L61" }, { "kind": "interface", "name": { "name": "ListTypeValidation", "namespace": "connector._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "list_type" } }, { "name": "constraint", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L68-L71" }, { "kind": "interface", "name": { "name": "RegexValidation", "namespace": "connector._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "regex" } }, { "name": "constraint", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/_types/Connector.ts#L78-L81" }, { "kind": "interface", "name": { "name": "SchedulingConfiguration", "namespace": "connector._types" }, "properties": [ { "name": "access_control", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectorScheduling", "namespace": "connector._types" } } }, { "name": "full", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectorScheduling", "namespace": "connector._types" } } }, { "name": "incremental", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectorScheduling", "namespace": "connector._types" } } } ], "specLocation": "connector/_types/Connector.ts#L246-L250" }, { "kind": "interface", "name": { "name": "SelectOption", "namespace": "connector._types" }, "properties": [ { "name": "label", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "ScalarValue", "namespace": "_types" } } } ], "specLocation": "connector/_types/Connector.ts#L25-L28" }, { "kind": "interface", "name": { "name": "SyncJobConnectorReference", "namespace": "connector._types" }, "properties": [ { "name": "configuration", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConnectorConfiguration", "namespace": "connector._types" } } }, { "name": "filtering", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringRules", "namespace": "connector._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "IngestPipelineParams", "namespace": "connector._types" } } }, { "name": "service_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "sync_cursor", "required": false, "type": { "kind": "user_defined_value" } } ], "specLocation": "connector/_types/SyncJob.ts#L31-L40" }, { "kind": "enum", "members": [ { "name": "on_demand" }, { "name": "scheduled" } ], "name": { "name": "SyncJobTriggerMethod", "namespace": "connector._types" }, "specLocation": "connector/_types/SyncJob.ts#L48-L51" }, { "kind": "enum", "members": [ { "name": "full" }, { "name": "incremental" }, { "name": "access_control" } ], "name": { "name": "SyncJobType", "namespace": "connector._types" }, "specLocation": "connector/_types/SyncJob.ts#L42-L46" }, { "kind": "interface", "name": { "name": "SyncRulesFeature", "namespace": "connector._types" }, "properties": [ { "description": "Indicates whether advanced sync rules are enabled.", "name": "advanced", "required": false, "type": { "kind": "instance_of", "type": { "name": "FeatureEnabled", "namespace": "connector._types" } } }, { "description": "Indicates whether basic sync rules are enabled.", "name": "basic", "required": false, "type": { "kind": "instance_of", "type": { "name": "FeatureEnabled", "namespace": "connector._types" } } } ], "specLocation": "connector/_types/Connector.ts#L219-L228" }, { "kind": "enum", "members": [ { "name": "canceling" }, { "name": "canceled" }, { "name": "completed" }, { "name": "error" }, { "name": "in_progress" }, { "name": "pending" }, { "name": "suspended" } ], "name": { "name": "SyncStatus", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L138-L146" }, { "kind": "type_alias", "name": { "name": "Validation", "namespace": "connector._types" }, "specLocation": "connector/_types/Connector.ts#L50-L56", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "LessThanValidation", "namespace": "connector._types" } }, { "kind": "instance_of", "type": { "name": "GreaterThanValidation", "namespace": "connector._types" } }, { "kind": "instance_of", "type": { "name": "ListTypeValidation", "namespace": "connector._types" } }, { "kind": "instance_of", "type": { "name": "IncludedInValidation", "namespace": "connector._types" } }, { "kind": "instance_of", "type": { "name": "RegexValidation", "namespace": "connector._types" } } ] }, "variants": { "kind": "internal_tag", "tag": "type" } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check in a connector.\n\nUpdate the `last_seen` field in the connector and set it to the current timestamp.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.check_in" }, "path": [ { "description": "The unique identifier of the connector to be checked in", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/check_in/ConnectorCheckInRequest.ts#L22-L44" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorCheckInResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.check_in" }, "specLocation": "connector/check_in/ConnectorCheckInResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a connector.\n\nRemoves a connector and associated sync jobs.\nThis is a destructive action that is not recoverable.\nNOTE: This action doesn’t delete any API keys, ingest pipelines, or data indices associated with the connector.\nThese need to be removed manually.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.delete" }, "path": [ { "description": "The unique identifier of the connector to be deleted", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "A flag indicating if associated sync jobs should be also removed. Defaults to false.", "name": "delete_sync_jobs", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A flag indicating if the connector should be hard deleted.", "name": "hard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "connector/delete/ConnectorDeleteRequest.ts#L22-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ConnectorDeleteResponseExample1": { "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "connector.delete" }, "specLocation": "connector/delete/ConnectorDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a connector.\n\nGet the details about a connector.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.get" }, "path": [ { "description": "The unique identifier of the connector", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "A flag to indicate if the desired connector should be fetched, even if it was soft-deleted.", "name": "include_deleted", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "connector/get/ConnectorGetRequest.ts#L22-L51" }, { "kind": "response", "body": { "kind": "value", "codegenName": "connector", "value": { "kind": "instance_of", "type": { "name": "Connector", "namespace": "connector._types" } } }, "name": { "name": "Response", "namespace": "connector.get" }, "specLocation": "connector/get/ConnectorGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "last_access_control_sync_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "last_access_control_sync_scheduled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_access_control_sync_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncStatus", "namespace": "connector._types" } } }, { "name": "last_deleted_document_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "last_incremental_sync_scheduled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_indexed_document_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "last_seen", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_sync_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "last_sync_scheduled_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_sync_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncStatus", "namespace": "connector._types" } } }, { "name": "last_synced", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "sync_cursor", "required": false, "type": { "kind": "user_defined_value" } } ] }, "description": "Update the connector last sync stats.\n\nUpdate the fields related to the last sync of a connector.\nThis action is used for analytics and monitoring.", "examples": { "ConnectorUpdateLastSyncRequestExample1": { "value": "{\n \"last_access_control_sync_error\": \"Houston, we have a problem!\",\n \"last_access_control_sync_scheduled_at\": \"2023-11-09T15:13:08.231Z\",\n \"last_access_control_sync_status\": \"pending\",\n \"last_deleted_document_count\": 42,\n \"last_incremental_sync_scheduled_at\": \"2023-11-09T15:13:08.231Z\",\n \"last_indexed_document_count\": 42,\n \"last_sync_error\": \"Houston, we have a problem!\",\n \"last_sync_scheduled_at\": \"2024-11-09T15:13:08.231Z\",\n \"last_sync_status\": \"completed\",\n \"last_synced\": \"2024-11-09T15:13:08.231Z\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.last_sync" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.last_sync" }, "specLocation": "connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get all connectors.\n\nGet information about all connectors.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.list" }, "path": [], "query": [ { "description": "Starting offset (default: 0)", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies a max number of results to get", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A comma-separated list of connector index names to fetch connector documents for", "name": "index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "A comma-separated list of connector names to fetch connector documents for", "name": "connector_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "A comma-separated list of connector service types to fetch connector documents for", "name": "service_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "A flag to indicate if the desired connector should be fetched, even if it was soft-deleted.", "name": "include_deleted", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A wildcard query string that filters connectors with matching name, description or index name", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "connector/list/ConnectorListRequest.ts#L23-L70" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Connector", "namespace": "connector._types" } } } } ] }, "name": { "name": "Response", "namespace": "connector.list" }, "specLocation": "connector/list/ConnectorListResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "is_native", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "service_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Create a connector.\n\nConnectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure.\nElastic managed connectors (Native connectors) are a managed service on Elastic Cloud.\nSelf-managed connectors (Connector clients) are self-managed on your infrastructure.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.post" }, "path": [], "query": [], "specLocation": "connector/post/ConnectorPostRequest.ts#L22-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.post" }, "specLocation": "connector/post/ConnectorPostResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "is_native", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "language", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "service_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Create or update a connector.", "examples": { "ConnectorPutRequestExample1": { "value": "{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\",\n \"service_type\": \"google_drive\"\n}" }, "ConnectorPutRequestExample2": { "value": "{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\",\n \"description\": \"My Connector to sync data to Elastic index from Google Drive\",\n \"service_type\": \"google_drive\",\n \"language\": \"english\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.put" }, "path": [ { "description": "The unique identifier of the connector to be created or updated. ID is auto-generated if not provided.", "name": "connector_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/put/ConnectorPutRequest.ts#L22-L58" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] }, "examples": { "ConnectorPutResponseExample1": { "value": "{\n \"result\": \"created\",\n \"id\": \"my-connector\"\n}" } }, "name": { "name": "Response", "namespace": "connector.put" }, "specLocation": "connector/put/ConnectorPutResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Cancel a connector sync job.\n\nCancel a connector sync job, which sets the status to cancelling and updates `cancellation_requested_at` to the current time.\nThe connector service is then responsible for setting the status of connector sync jobs to cancelled.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_cancel" }, "path": [ { "description": "The unique identifier of the connector sync job", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_cancel/SyncJobCancelRequest.ts#L22-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.sync_job_cancel" }, "specLocation": "connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check in a connector sync job.\nCheck in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_check_in" }, "path": [ { "description": "The unique identifier of the connector sync job to be checked in.", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_check_in/SyncJobCheckInRequest.ts#L22-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "connector.sync_job_check_in" }, "specLocation": "connector/sync_job_check_in/SyncJobCheckInResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The cursor object from the last incremental sync job.\nThis should reference the `sync_cursor` field in the connector state for which the job runs.", "name": "sync_cursor", "required": false, "type": { "kind": "user_defined_value" } }, { "description": "The host name of the current system that will run the job.", "name": "worker_hostname", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Claim a connector sync job.\nThis action updates the job status to `in_progress` and sets the `last_seen` and `started_at` timestamps to the current time.\nAdditionally, it can set the `sync_cursor` property for the sync job.\n\nThis API is not intended for direct connector management by users.\nIt supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_claim" }, "path": [ { "description": "The unique identifier of the connector sync job.", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "connector.sync_job_claim" }, "specLocation": "connector/sync_job_claim/SyncJobClaimResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a connector sync job.\n\nRemove a connector sync job and its associated data.\nThis is a destructive action that is not recoverable.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_delete" }, "path": [ { "description": "The unique identifier of the connector sync job to be deleted", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_delete/SyncJobDeleteRequest.ts#L22-L45" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "SyncJobDeleteResponseExample1": { "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "connector.sync_job_delete" }, "specLocation": "connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The error for the connector sync job error field.", "name": "error", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Set a connector sync job error.\nSet the `error` field for a connector sync job and set its `status` to `error`.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "examples": { "SyncJobErrorRequestExample1": { "value": "{\n \"error\": \"some-error\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_error" }, "path": [ { "description": "The unique identifier for the connector sync job.", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "connector.sync_job_error" }, "specLocation": "connector/sync_job_error/SyncJobErrorResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a connector sync job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_get" }, "path": [ { "description": "The unique identifier of the connector sync job", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_get/SyncJobGetRequest.ts#L22-L42" }, { "kind": "response", "body": { "kind": "value", "codegenName": "sync_job", "value": { "kind": "instance_of", "type": { "name": "ConnectorSyncJob", "namespace": "connector._types" } } }, "name": { "name": "Response", "namespace": "connector.sync_job_get" }, "specLocation": "connector/sync_job_get/SyncJobGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get all connector sync jobs.\n\nGet information about all stored connector sync jobs listed by their creation date in ascending order.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_list" }, "path": [], "query": [ { "description": "Starting offset (default: 0)", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies a max number of results to get", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A sync job status to fetch connector sync jobs for", "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncStatus", "namespace": "connector._types" } } }, { "description": "A connector id to fetch connector sync jobs for", "name": "connector_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A comma-separated list of job types to fetch the sync jobs for", "name": "job_type", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SyncJobType", "namespace": "connector._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SyncJobType", "namespace": "connector._types" } } } ] } } ], "specLocation": "connector/sync_job_list/SyncJobListRequest.ts#L25-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ConnectorSyncJob", "namespace": "connector._types" } } } } ] }, "name": { "name": "Response", "namespace": "connector.sync_job_list" }, "specLocation": "connector/sync_job_list/SyncJobListResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The id of the associated connector", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "job_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncJobType", "namespace": "connector._types" } } }, { "name": "trigger_method", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncJobTriggerMethod", "namespace": "connector._types" } } } ] }, "description": "Create a connector sync job.\n\nCreate a connector sync job document in the internal index and initialize its counters and timestamps with default values.", "examples": { "SyncJobPostRequestExample1": { "value": "{\n \"id\": \"connector-id\",\n \"job_type\": \"full\",\n \"trigger_method\": \"on_demand\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_post" }, "path": [], "query": [], "specLocation": "connector/sync_job_post/SyncJobPostRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.sync_job_post" }, "specLocation": "connector/sync_job_post/SyncJobPostResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The number of documents the sync job deleted.", "name": "deleted_document_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of documents the sync job indexed.", "name": "indexed_document_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total size of the data (in MiB) the sync job indexed.", "name": "indexed_document_volume", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The timestamp to use in the `last_seen` property for the connector sync job.", "name": "last_seen", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The connector-specific metadata.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The total number of documents in the target index after the sync job finished.", "name": "total_document_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Set the connector sync job stats.\nStats include: `deleted_document_count`, `indexed_document_count`, `indexed_document_volume`, and `total_document_count`.\nYou can also update `last_seen`.\nThis API is mainly used by the connector service for updating sync job information.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.sync_job_update_stats" }, "path": [ { "description": "The unique identifier of the connector sync job.", "name": "connector_sync_job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "connector.sync_job_update_stats" }, "specLocation": "connector/sync_job_update_stats/SyncJobUpdateStatsResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Activate the connector draft filter.\n\nActivates the valid draft filtering for a connector.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_active_filtering" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_active_filtering/ConnectorUpdateActiveFilteringRequest.ts#L22-L44" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.update_active_filtering" }, "specLocation": "connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "api_key_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "api_key_secret_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Update the connector API key ID.\n\nUpdate the `api_key_id` and `api_key_secret_id` fields of a connector.\nYou can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored.\nThe connector secret ID is required only for Elastic managed (native) connectors.\nSelf-managed connectors (connector clients) do not use this field.", "examples": { "ConnectorUpdateApiKeyIDRequestExample1": { "value": "{\n \"api_key_id\": \"my-api-key-id\",\n \"api_key_secret_id\": \"my-connector-secret-id\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_api_key_id" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateAPIKeyIDResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_api_key_id" }, "specLocation": "connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "configuration", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectorConfiguration", "namespace": "connector._types" } } }, { "name": "values", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Update the connector configuration.\n\nUpdate the configuration field in the connector document.", "examples": { "ConnectorUpdateConfigurationRequestExample1": { "value": "{\n \"values\": {\n \"tenant_id\": \"my-tenant-id\",\n \"tenant_name\": \"my-sharepoint-site\",\n \"client_id\": \"foo\",\n \"secret_value\": \"bar\",\n \"site_collections\": \"*\"\n }\n}" }, "ConnectorUpdateConfigurationRequestExample2": { "value": "{\n \"values\": {\n \"secret_value\": \"foo-bar\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_configuration" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateConfigurationResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_configuration" }, "specLocation": "connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "error", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ], "type": { "name": "WithNullValue", "namespace": "_spec_utils" } } } ] }, "description": "Update the connector error field.\n\nSet the error field for the connector.\nIf the error provided in the request body is non-null, the connector’s status is updated to error.\nOtherwise, if the error is reset to null, the connector status is updated to connected.", "examples": { "ConnectorUpdateErrorRequestExample1": { "value": "{\n \"error\": \"Houston, we have a problem!\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_error" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateErrorResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_error" }, "specLocation": "connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "features", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConnectorFeatures", "namespace": "connector._types" } } } ] }, "description": "Update the connector features.\nUpdate the connector features in the connector document.\nThis API can be used to control the following aspects of a connector:\n\n* document-level security\n* incremental syncs\n* advanced sync rules\n* basic sync rules\n\nNormally, the running connector service automatically manages these features.\nHowever, you can use this API to override the default behavior.\n\nTo sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure.\nThis service runs automatically on Elastic Cloud for Elastic managed connectors.", "examples": { "ConnectorUpdateFeaturesRequestExample1": { "value": "{\n \"features\": {\n \"document_level_security\": {\n \"enabled\": true\n },\n \"incremental_sync\": {\n \"enabled\": true\n },\n \"sync_rules\": {\n \"advanced\": {\n \"enabled\": false\n },\n \"basic\": {\n \"enabled\": true\n }\n }\n }\n}" }, "ConnectorUpdateFeaturesRequestExample2": { "value": "{\n \"features\": {\n \"document_level_security\": {\n \"enabled\": true\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_features" }, "path": [ { "description": "The unique identifier of the connector to be updated.", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateFeaturesResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_features" }, "specLocation": "connector/update_features/ConnectorUpdateFeaturesResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "filtering", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FilteringConfig", "namespace": "connector._types" } } } }, { "name": "rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FilteringRule", "namespace": "connector._types" } } } }, { "name": "advanced_snippet", "required": false, "type": { "kind": "instance_of", "type": { "name": "FilteringAdvancedSnippet", "namespace": "connector._types" } } } ] }, "description": "Update the connector filtering.\n\nUpdate the draft filtering configuration of a connector and marks the draft validation state as edited.\nThe filtering draft is activated once validated by the running Elastic connector service.\nThe filtering property is used to configure sync rules (both basic and advanced) for a connector.", "examples": { "ConnectorUpdateFilteringRequestExample1": { "value": "{\n \"rules\": [\n {\n \"field\": \"file_extension\",\n \"id\": \"exclude-txt-files\",\n \"order\": 0,\n \"policy\": \"exclude\",\n \"rule\": \"equals\",\n \"value\": \"txt\"\n },\n {\n \"field\": \"_\",\n \"id\": \"DEFAULT\",\n \"order\": 1,\n \"policy\": \"include\",\n \"rule\": \"regex\",\n \"value\": \".*\"\n }\n ]\n}" }, "ConnectorUpdateFilteringRequestExample2": { "value": "{\n \"advanced_snippet\": {\n \"value\": [{\n \"tables\": [\n \"users\",\n \"orders\"\n ],\n \"query\": \"SELECT users.id AS id, orders.order_id AS order_id FROM users JOIN orders ON users.id = orders.user_id\"\n }]\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_filtering" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateFilteringResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_filtering" }, "specLocation": "connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "validation", "required": true, "type": { "kind": "instance_of", "type": { "name": "FilteringRulesValidation", "namespace": "connector._types" } } } ] }, "description": "Update the connector draft filtering validation.\n\nUpdate the draft filtering validation info for a connector.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_filtering_validation" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.update_filtering_validation" }, "specLocation": "connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "index_name", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } ], "type": { "name": "WithNullValue", "namespace": "_spec_utils" } } } ] }, "description": "Update the connector index name.\n\nUpdate the `index_name` field of a connector, specifying the index where the data ingested by the connector is stored.", "examples": { "ConnectorUpdateIndexNameRequestExample1": { "value": "{\n \"index_name\": \"data-from-my-google-drive\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_index_name" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateIndexNameResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_index_name" }, "specLocation": "connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Update the connector name and description.", "examples": { "ConnectorUpdateNameRequestExample1": { "value": "{\n \"name\": \"Custom connector\",\n \"description\": \"This is my customized connector\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_name" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateNameResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_name" }, "specLocation": "connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "is_native", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Update the connector is_native flag.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_native" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "connector.update_native" }, "specLocation": "connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "pipeline", "required": true, "type": { "kind": "instance_of", "type": { "name": "IngestPipelineParams", "namespace": "connector._types" } } } ] }, "description": "Update the connector pipeline.\n\nWhen you create a new connector, the configuration of an ingest pipeline is populated with default settings.", "examples": { "ConnectorUpdatePipelineRequestExample1": { "value": "{\n \"pipeline\": {\n \"extract_binary_content\": true,\n \"name\": \"my-connector-pipeline\",\n \"reduce_whitespace\": true,\n \"run_ml_inference\": true\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_pipeline" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdatePipelineResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_pipeline" }, "specLocation": "connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "scheduling", "required": true, "type": { "kind": "instance_of", "type": { "name": "SchedulingConfiguration", "namespace": "connector._types" } } } ] }, "description": "Update the connector scheduling.", "examples": { "ConnectorUpdateSchedulingRequestExample1": { "value": "{\n \"scheduling\": {\n \"access_control\": {\n \"enabled\": true,\n \"interval\": \"0 10 0 * * ?\"\n },\n \"full\": {\n \"enabled\": true,\n \"interval\": \"0 20 0 * * ?\"\n },\n \"incremental\": {\n \"enabled\": false,\n \"interval\": \"0 30 0 * * ?\"\n }\n }\n}" }, "ConnectorUpdateSchedulingRequestExample2": { "value": "{\n \"scheduling\": {\n \"full\": {\n \"enabled\": true,\n \"interval\": \"0 10 0 * * ?\"\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_scheduling" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateSchedulingResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_scheduling" }, "specLocation": "connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "service_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Update the connector service type.", "examples": { "ConnectorUpdateServiceTypeRequestExample1": { "value": "{\n \"service_type\": \"sharepoint_online\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_service_type" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateServiceTypeResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_service_type" }, "specLocation": "connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConnectorStatus", "namespace": "connector._types" } } } ] }, "description": "Update the connector status.", "examples": { "ConnectorUpdateStatusRequestExample1": { "value": "{\n \"status\": \"needs_configuration\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "connector.update_status" }, "path": [ { "description": "The unique identifier of the connector to be updated", "name": "connector_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "examples": { "ConnectorUpdateStatusResponseExample1": { "value": "{\n \"result\": \"updated\"\n}" } }, "name": { "name": "Response", "namespace": "connector.update_status" }, "specLocation": "connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a dangling index.\nIf Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.\nFor example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "dangling_indices.delete_dangling_index" }, "path": [ { "description": "The UUID of the index to delete. Use the get dangling indices API to find the UUID.", "name": "index_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } } ], "query": [ { "description": "This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index.", "name": "accept_data_loss", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify timeout for connection to master", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Explicit operation timeout", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "dangling_indices/delete_dangling_index/DeleteDanglingIndexRequest.ts#L24-L55" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "dangling_indices.delete_dangling_index" }, "specLocation": "dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Import a dangling index.\n\nIf Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.\nFor example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "dangling_indices.import_dangling_index" }, "path": [ { "description": "The UUID of the index to import. Use the get dangling indices API to locate the UUID.", "name": "index_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } } ], "query": [ { "description": "This parameter must be set to true to import a dangling index.\nBecause Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster.", "name": "accept_data_loss", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify timeout for connection to master", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Explicit operation timeout", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "dangling_indices/import_dangling_index/ImportDanglingIndexRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ImportDanglingIndexResponseExample1": { "description": "A successful response from `POST /_dangling/zmM4e0JtBkeUjiHD-MihPQ?accept_data_loss=true`.\n", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "dangling_indices.import_dangling_index" }, "specLocation": "dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "DanglingIndex", "namespace": "dangling_indices.list_dangling_indices" }, "properties": [ { "name": "index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "creation_date_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "node_ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the dangling indices.\n\nIf Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling.\nFor example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline.\n\nUse this API to list dangling indices, which you can then import or delete.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "dangling_indices.list_dangling_indices" }, "path": [], "query": [], "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesRequest.ts#L22-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "dangling_indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DanglingIndex", "namespace": "dangling_indices.list_dangling_indices" } } } } ] }, "examples": { "ListDanglingIndicesResponseExample1": { "value": "{\n \"dangling_indices\": [\n {\n \"index_name\": \"my-index-000001\",\n \"index_uuid\": \"zmM4e0JtBkeUjiHD-MihPQ\",\n \"creation_date_millis\": 1589414451372,\n \"node_ids\": [\n \"pL47UN3dAb2d5RCWP6lQ3e\"\n ]\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "dangling_indices.list_dangling_indices" }, "specLocation": "dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27" }, { "kind": "interface", "name": { "name": "Policy", "namespace": "enrich._types" }, "properties": [ { "name": "enrich_fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "name": "match_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "elasticsearch_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "enrich/_types/Policy.ts#L34-L41" }, { "kind": "enum", "members": [ { "name": "geo_match" }, { "name": "match" }, { "name": "range" } ], "name": { "name": "PolicyType", "namespace": "enrich._types" }, "specLocation": "enrich/_types/Policy.ts#L28-L32" }, { "kind": "interface", "name": { "name": "Summary", "namespace": "enrich._types" }, "properties": [ { "name": "config", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "PolicyType", "namespace": "enrich._types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "enrich._types" } } } } ], "specLocation": "enrich/_types/Policy.ts#L24-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an enrich policy.\nDeletes an existing enrich policy and its enrich index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "enrich.delete_policy" }, "path": [ { "description": "Enrich policy to delete.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L52" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "enrich.delete_policy" }, "specLocation": "enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L25" }, { "kind": "enum", "members": [ { "name": "SCHEDULED" }, { "name": "RUNNING" }, { "name": "COMPLETE" }, { "name": "FAILED" }, { "name": "CANCELLED" } ], "name": { "name": "EnrichPolicyPhase", "namespace": "enrich.execute_policy" }, "specLocation": "enrich/execute_policy/types.ts#L25-L31" }, { "kind": "interface", "name": { "name": "ExecuteEnrichPolicyStatus", "namespace": "enrich.execute_policy" }, "properties": [ { "name": "phase", "required": true, "type": { "kind": "instance_of", "type": { "name": "EnrichPolicyPhase", "namespace": "enrich.execute_policy" } } }, { "name": "step", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "enrich/execute_policy/types.ts#L20-L23" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Run an enrich policy.\nCreate the enrich index for an existing enrich policy.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "enrich.execute_policy" }, "path": [ { "description": "Enrich policy to execute.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, the request blocks other enrich policy execution requests until complete.", "name": "wait_for_completion", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExecuteEnrichPolicyStatus", "namespace": "enrich.execute_policy" } } }, { "name": "task", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "enrich.execute_policy" }, "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get an enrich policy.\nReturns information about an enrich policy.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "enrich.get_policy" }, "path": [ { "description": "Comma-separated list of enrich policy names used to limit the request.\nTo return information for all enrich policies, omit this parameter.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "policies", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Summary", "namespace": "enrich._types" } } } } ] }, "name": { "name": "Response", "namespace": "enrich.get_policy" }, "specLocation": "enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Matches enrich data to incoming documents based on a `geo_shape` query.", "name": "geo_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "enrich._types" } } }, { "description": "Matches enrich data to incoming documents based on a `term` query.", "name": "match", "required": false, "type": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "enrich._types" } } }, { "description": "Matches a number, date, or IP address in incoming documents to a range in the enrich index based on a `term` query.", "name": "range", "required": false, "type": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "enrich._types" } } } ] }, "description": "Create an enrich policy.\nCreates an enrich policy.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "enrich.put_policy" }, "path": [ { "description": "Name of the enrich policy to create or update.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "enrich.put_policy" }, "specLocation": "enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "CacheStats", "namespace": "enrich.stats" }, "properties": [ { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "hits", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "hits_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "misses", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "misses_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "evictions", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "enrich/stats/types.ts#L38-L50" }, { "kind": "interface", "name": { "name": "CoordinatorStats", "namespace": "enrich.stats" }, "properties": [ { "name": "executed_searches_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "queue_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "remote_requests_current", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "remote_requests_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "enrich/stats/types.ts#L30-L36" }, { "kind": "interface", "name": { "name": "ExecutingPolicy", "namespace": "enrich.stats" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "task", "required": true, "type": { "kind": "instance_of", "type": { "name": "TaskInfo", "namespace": "tasks._types" } } } ], "specLocation": "enrich/stats/types.ts#L25-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get enrich stats.\nReturns enrich coordinator statistics and information about enrich policies that are currently executing.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "enrich.stats" }, "path": [], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "enrich/stats/EnrichStatsRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Objects containing information about each coordinating ingest node for configured enrich processors.", "name": "coordinator_stats", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CoordinatorStats", "namespace": "enrich.stats" } } } }, { "description": "Objects containing information about each enrich policy that is currently executing.", "name": "executing_policies", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExecutingPolicy", "namespace": "enrich.stats" } } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "description": "Objects containing information about the enrich cache stats on each ingest node.", "name": "cache_stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CacheStats", "namespace": "enrich.stats" } } } } ] }, "name": { "name": "Response", "namespace": "enrich.stats" }, "specLocation": "enrich/stats/EnrichStatsResponse.ts#L22-L39" }, { "kind": "interface", "generics": [ { "name": "TEvent", "namespace": "eql._types.EqlHits" } ], "name": { "name": "EqlHits", "namespace": "eql._types" }, "properties": [ { "description": "Metadata about the number of matching events or sequences.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "TotalHits", "namespace": "_global.search._types" } } }, { "description": "Contains events matching the query. Each object represents a matching event.", "name": "events", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql._types.EqlHits" } } ], "type": { "name": "HitsEvent", "namespace": "eql._types" } } } }, { "description": "Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence.", "docId": "eql-sequences", "docUrl": "https://www.elastic.co/docs/reference/query-languages/eql/eql-syntax#eql-sequences", "name": "sequences", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql._types.EqlHits" } } ], "type": { "name": "HitsSequence", "namespace": "eql._types" } } } } ], "specLocation": "eql/_types/EqlHits.ts#L25-L39" }, { "kind": "interface", "generics": [ { "name": "TEvent", "namespace": "eql._types.EqlSearchResponseBase" } ], "name": { "name": "EqlSearchResponseBase", "namespace": "eql._types" }, "properties": [ { "description": "Identifier for the search.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If true, the response does not contain complete search results.", "name": "is_partial", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the search request is still executing.", "name": "is_running", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Milliseconds it took Elasticsearch to execute the request.", "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "If true, the request timed out before completion.", "name": "timed_out", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Contains matching events and sequences. Also contains related metadata.", "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql._types.EqlSearchResponseBase" } } ], "type": { "name": "EqlHits", "namespace": "eql._types" } } }, { "description": "Contains information about shard failures (if any), in case allow_partial_search_results=true", "name": "shard_failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardFailure", "namespace": "_types" } } } } ], "specLocation": "eql/_types/EqlSearchResponseBase.ts#L25-L54" }, { "kind": "interface", "generics": [ { "name": "TEvent", "namespace": "eql._types.HitsEvent" } ], "name": { "name": "HitsEvent", "namespace": "eql._types" }, "properties": [ { "description": "Name of the index containing the event.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Unique identifier for the event. This ID is only unique within the index.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Original JSON body passed for the event at index time.", "name": "_source", "required": true, "type": { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql._types.HitsEvent" } } }, { "description": "Set to `true` for events in a timespan-constrained sequence that do not meet a given condition.", "docId": "eql-missing-events", "docUrl": "https://www.elastic.co/docs/reference/query-languages/eql/eql-syntax#eql-missing-events", "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "user_defined_value" } } } } ], "specLocation": "eql/_types/EqlHits.ts#L41-L54" }, { "kind": "interface", "generics": [ { "name": "TEvent", "namespace": "eql._types.HitsSequence" } ], "name": { "name": "HitsSequence", "namespace": "eql._types" }, "properties": [ { "description": "Contains events matching the query. Each object represents a matching event.", "name": "events", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql._types.HitsSequence" } } ], "type": { "name": "HitsEvent", "namespace": "eql._types" } } } }, { "description": "Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax.", "docId": "eql-sequences", "docUrl": "https://www.elastic.co/docs/reference/query-languages/eql/eql-syntax#eql-sequences", "name": "join_keys", "required": false, "type": { "kind": "array_of", "value": { "kind": "user_defined_value" } } } ], "specLocation": "eql/_types/EqlHits.ts#L56-L64" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an async EQL search.\nDelete an async EQL search or a stored synchronous EQL search.\nThe API also deletes results for the search.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "eql.delete" }, "path": [ { "description": "Identifier for the search to delete.\nA search ID is provided in the EQL search API's response for an async search.\nA search ID is also provided if the request’s `keep_on_completion` parameter is `true`.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "eql/delete/EqlDeleteRequest.ts#L23-L47" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "eql.delete" }, "specLocation": "eql/delete/EqlDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get async EQL search results.\nGet the current status and available results for an async EQL search or a stored synchronous EQL search.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "eql.get" }, "path": [ { "description": "Identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Period for which the search and its results are stored on the cluster.\nDefaults to the keep_alive value set by the search’s EQL search API request.", "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Timeout duration to wait for the request to finish.\nDefaults to no timeout, meaning the request waits for complete search results.", "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "eql/get/EqlGetRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql.get.Response" } } ], "type": { "name": "EqlSearchResponseBase", "namespace": "eql._types" } } }, "generics": [ { "name": "TEvent", "namespace": "eql.get.Response" } ], "name": { "name": "Response", "namespace": "eql.get" }, "specLocation": "eql/get/EqlGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the async EQL status.\nGet the current status for an async EQL search or a stored synchronous EQL search without returning results.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "eql.get_status" }, "path": [ { "description": "Identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "eql/get_status/EqlGetStatusRequest.ts#L23-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If true, the search request is still executing. If false, the search is completed.", "name": "is_partial", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the response does not contain complete search results. This could be because either the search is still running (is_running status is false), or because it is already completed (is_running status is true) and results are partial due to failures or timeouts.", "name": "is_running", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For a running search shows a timestamp when the eql search started, in milliseconds since the Unix epoch.", "name": "start_time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Shows a timestamp when the eql search will be expired, in milliseconds since the Unix epoch. When this time is reached, the search and its results are deleted, even if the search is still ongoing.", "name": "expiration_time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "For a completed search shows the http status code of the completed search.", "name": "completion_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "examples": { "EqlGetStatusResponseExample1": { "description": "A successful response for getting status information for an async EQL search.", "value": "{\n \"id\": \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_running\" : true,\n \"is_partial\" : true,\n \"start_time_in_millis\" : 1611690235000,\n \"expiration_time_in_millis\" : 1611690295000\n}" } }, "name": { "name": "Response", "namespace": "eql.get_status" }, "specLocation": "eql/get_status/EqlGetStatusResponse.ts#L24-L51" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "EQL query you wish to run.", "docId": "eql-syntax", "docUrl": "https://www.elastic.co/docs/reference/query-languages/eql/eql-syntax", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "case_sensitive", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Field containing the event classification, such as process, file, or network.", "name": "event_category_field", "required": false, "serverDefault": "event.category", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field used to sort hits with the same timestamp in ascending order", "docId": "sort-tiebreaker", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/eql#eql-search-specify-a-sort-tiebreaker", "name": "tiebreaker_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing event timestamp. Default \"@timestamp\"", "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Maximum number of events to search at a time for sequence queries.", "name": "fetch_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "Query, written in Query DSL, used to filter the events on which the EQL query runs.", "name": "filter", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] } }, { "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "keep_on_completion", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Allow query execution also in case of shard failures.\nIf true, the query will keep running and will return results based on the available shards.\nFor sequences, the behavior can be further refined using allow_partial_sequence_results", "name": "allow_partial_search_results", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "This flag applies only to sequences and has effect only if allow_partial_search_results=true.\nIf true, the sequence query will return results based on the available shards, ignoring the others.\nIf false, the sequence query will return successfully, but will always have empty results.", "name": "allow_partial_sequence_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For basic queries, the maximum number of matching events to return. Defaults to 10", "docId": "eql-basic-syntax", "docUrl": "https://www.elastic.co/docs/reference/query-languages/eql/eql-syntax#eql-basic-syntax", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit.", "name": "fields", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } ] } }, { "name": "result_position", "required": false, "serverDefault": "tail", "type": { "kind": "instance_of", "type": { "name": "ResultPosition", "namespace": "eql.search" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "By default, the response of a sample query contains up to `10` samples, with one sample per unique set of join keys. Use the `size`\nparameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the\n`max_samples_per_key` parameter. Pipes are not supported for sample queries.", "name": "max_samples_per_key", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Get EQL search results.\nReturns search results for an Event Query Language (EQL) query.\nEQL assumes each document in a data stream or index corresponds to an event.", "examples": { "EqlSearchRequestExample1": { "description": "Run `GET /my-data-stream/_eql/search` to search for events that have a `process.name` of `cmd.exe` and a `process.pid` other than `2013`.\n", "summary": "Basic query", "value": "{\n \"query\": \"\"\"\n process where (process.name == \"cmd.exe\" and process.pid != 2013)\n \"\"\"\n}" }, "EqlSearchRequestExample2": { "description": "Run `GET /my-data-stream/_eql/search` to search for a sequence of events. The sequence starts with an event with an `event.category` of `file`, a `file.name` of `cmd.exe`, and a `process.pid` other than `2013`. It is followed by an event with an `event.category` of `process` and a `process.executable` that contains the substring `regsvr32`. These events must also share the same `process.pid` value.\n", "summary": "Sequence query", "value": "{\n \"query\": \"\"\"\n sequence by process.pid\n [ file where file.name == \"cmd.exe\" and process.pid != 2013 ]\n [ process where stringContains(process.executable, \"regsvr32\") ]\n \"\"\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "eql.search" }, "path": [ { "description": "The name of the index to scope the operation", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns partial results if there are shard failures. If false, returns an error with no partial results.", "name": "allow_partial_search_results", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all.\nThis flag has effect only if allow_partial_search_results is true.", "name": "allow_partial_sequence_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If true, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period for which the search and its results are stored on the cluster.", "name": "keep_alive", "required": false, "serverDefault": "5d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If true, the search and its results are stored on the cluster.", "name": "keep_on_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results.", "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "eql/search/EqlSearchRequest.ts#L28-L161" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TEvent", "namespace": "eql.search.Response" } } ], "type": { "name": "EqlSearchResponseBase", "namespace": "eql._types" } } }, "examples": { "EqlSearchResponseExample2": { "description": "", "summary": "A successful response for performing search with an EQL query.", "value": "{\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 6,\n \"timed_out\": false,\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"sequences\": [\n {\n \"join_keys\": [\n 2012\n ],\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"AtOJ4UjUBAAx3XR5kcCM\",\n \"_source\": {\n \"@timestamp\": \"2099-12-06T11:04:07.000Z\",\n \"event\": {\n \"category\": \"file\",\n \"id\": \"dGCHwoeS\",\n \"sequence\": 2\n },\n \"file\": {\n \"accessed\": \"2099-12-07T11:07:08.000Z\",\n \"name\": \"cmd.exe\",\n \"path\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\n \"type\": \"file\",\n \"size\": 16384\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"cmd.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\"\n }\n }\n },\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"OQmfCaduce8zoHT93o4H\",\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:09.000Z\",\n \"event\": {\n \"category\": \"process\",\n \"id\": \"aR3NWVOs\",\n \"sequence\": 4\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"regsvr32.exe\",\n \"command_line\": \"regsvr32.exe /s /u /i:https://...RegSvr32.sct scrobj.dll\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n }\n }\n }\n ]\n }\n ]\n }\n}" } }, "generics": [ { "name": "TEvent", "namespace": "eql.search.Response" } ], "name": { "name": "Response", "namespace": "eql.search" }, "specLocation": "eql/search/EqlSearchResponse.ts#L22-L25" }, { "kind": "enum", "members": [ { "description": "Return the most recent matches, similar to the Unix tail command.", "name": "tail" }, { "description": "Return the earliest matches, similar to the Unix head command.", "name": "head" } ], "name": { "name": "ResultPosition", "namespace": "eql.search" }, "specLocation": "eql/search/types.ts#L20-L32" }, { "kind": "interface", "inherits": { "type": { "name": "EsqlResult", "namespace": "esql._types" } }, "name": { "name": "AsyncEsqlResult", "namespace": "esql._types" }, "properties": [ { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "is_running", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "esql/_types/EsqlResult.ts#L45-L48" }, { "kind": "interface", "name": { "name": "EsqlClusterDetails", "namespace": "esql._types" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "EsqlClusterStatus", "namespace": "esql._types" } } }, { "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "EsqlShardInfo", "namespace": "esql._types" } } } ], "specLocation": "esql/_types/EsqlResult.ts#L65-L70" }, { "kind": "interface", "name": { "name": "EsqlClusterInfo", "namespace": "esql._types" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "successful", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "running", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "skipped", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "partial", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "details", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "EsqlClusterDetails", "namespace": "esql._types" } } } } ], "specLocation": "esql/_types/EsqlResult.ts#L55-L63" }, { "kind": "enum", "members": [ { "name": "running" }, { "name": "successful" }, { "name": "partial" }, { "name": "skipped" }, { "name": "failed" } ], "name": { "name": "EsqlClusterStatus", "namespace": "esql._types" }, "specLocation": "esql/_types/EsqlResult.ts#L72-L78" }, { "kind": "interface", "name": { "name": "EsqlColumnInfo", "namespace": "esql._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "esql/_types/EsqlResult.ts#L50-L53" }, { "kind": "enum", "members": [ { "name": "csv" }, { "name": "json" }, { "name": "tsv" }, { "name": "txt" }, { "name": "yaml" }, { "name": "cbor" }, { "name": "smile" }, { "name": "arrow" } ], "name": { "name": "EsqlFormat", "namespace": "esql._types" }, "specLocation": "esql/_types/QueryParameters.ts#L20-L29" }, { "kind": "interface", "name": { "name": "EsqlResult", "namespace": "esql._types" }, "properties": [ { "name": "took", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "is_partial", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "all_columns", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "EsqlColumnInfo", "namespace": "esql._types" } } } }, { "name": "columns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "EsqlColumnInfo", "namespace": "esql._types" } } } }, { "name": "values", "required": true, "type": { "kind": "array_of", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } } }, { "description": "Cross-cluster search information. Present if `include_ccs_metadata` was `true` in the request\nand a cross-cluster search was performed.", "name": "_clusters", "required": false, "type": { "kind": "instance_of", "type": { "name": "EsqlClusterInfo", "namespace": "esql._types" } } }, { "description": "Profiling information. Present if `profile` was `true` in the request.\nThe contents of this field are currently unstable.", "name": "profile", "required": false, "type": { "kind": "user_defined_value" } } ], "specLocation": "esql/_types/EsqlResult.ts#L27-L43" }, { "kind": "interface", "name": { "name": "EsqlShardFailure", "namespace": "esql._types" }, "properties": [ { "name": "shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "esql/_types/EsqlResult.ts#L88-L93" }, { "kind": "interface", "name": { "name": "EsqlShardInfo", "namespace": "esql._types" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "successful", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "skipped", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "EsqlShardFailure", "namespace": "esql._types" } } } } ], "specLocation": "esql/_types/EsqlResult.ts#L80-L86" }, { "kind": "interface", "name": { "name": "TableValuesContainer", "namespace": "esql._types" }, "properties": [ { "name": "integer", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TableValuesIntegerValue", "namespace": "esql._types" } } } }, { "name": "keyword", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TableValuesKeywordValue", "namespace": "esql._types" } } } }, { "name": "long", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TableValuesLongValue", "namespace": "esql._types" } } } }, { "name": "double", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TableValuesLongDouble", "namespace": "esql._types" } } } } ], "specLocation": "esql/_types/TableValuesContainer.ts#L22-L28", "variants": { "kind": "container" } }, { "kind": "type_alias", "name": { "name": "TableValuesIntegerValue", "namespace": "esql._types" }, "specLocation": "esql/_types/TableValuesContainer.ts#L30-L30", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "name": { "name": "TableValuesKeywordValue", "namespace": "esql._types" }, "specLocation": "esql/_types/TableValuesContainer.ts#L31-L31", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "kind": "type_alias", "name": { "name": "TableValuesLongDouble", "namespace": "esql._types" }, "specLocation": "esql/_types/TableValuesContainer.ts#L33-L33", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ] } }, { "kind": "type_alias", "name": { "name": "TableValuesLongValue", "namespace": "esql._types" }, "specLocation": "esql/_types/TableValuesContainer.ts#L32-L32", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.", "name": "columnar", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "locale", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.", "docId": "esql-query-params", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest#esql-rest-params", "name": "params", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } }, { "description": "If provided and `true` the response will include an extra `profile` object\nwith information on how the query was executed. This information is for human debugging\nand its format can change at any time but it can give some insight into the performance\nof each part of the query.", "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Tables to use with the LOOKUP operation. The top level key is the table\nname and the next level key is the column name.", "name": "tables", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TableValuesContainer", "namespace": "esql._types" } } } } }, { "description": "When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`\nobject with information about the clusters that participated in the search along with info such as shards\ncount.", "name": "include_ccs_metadata", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The period to wait for the request to finish.\nBy default, the request waits for 1 second for the query results.\nIf the query completes during this period, results are returned\nOtherwise, a query ID is returned that can later be used to retrieve the results.", "name": "wait_for_completion_timeout", "required": false, "serverDefault": "1s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Run an async ES|QL query.\nAsynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available.\n\nThe API accepts the same parameters and request body as the synchronous query API, along with additional async related properties.", "examples": { "AsyncQueryRequestExample1": { "value": "{\n \"query\": \"\"\"\n FROM library,remote-*:library\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\n | STATS MAX(page_count) BY year\n | SORT year\n | LIMIT 5\n \"\"\",\n \"wait_for_completion_timeout\": \"2s\",\n \"include_ccs_metadata\": true\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.async_query" }, "path": [], "query": [ { "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", "name": "allow_partial_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The character to use between values within a CSV row.\nIt is valid only for the CSV format.", "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.\nIf `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.", "name": "drop_null_columns", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A short version of the Accept header, for example `json` or `yaml`.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "EsqlFormat", "namespace": "esql._types" } } }, { "description": "The period for which the query and its results are stored in the cluster.\nThe default period is five days.\nWhen this period expires, the query and its results are deleted, even if the query is still ongoing.\nIf the `keep_on_completion` parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the `wait_for_completion_timeout` parameter, regardless of this value.", "name": "keep_alive", "required": false, "serverDefault": "5d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Indicates whether the query and its results are stored in the cluster.\nIf false, the query and its results are stored in the cluster only if the request does not complete during the period set by the `wait_for_completion_timeout` parameter.", "name": "keep_on_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The period to wait for the request to finish.\nBy default, the request waits for 1 second for the query results.\nIf the query completes during this period, results are returned\nOtherwise, a query ID is returned that can later be used to retrieve the results.", "name": "wait_for_completion_timeout", "required": false, "serverDefault": "1s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L138" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data", "value": { "kind": "instance_of", "type": { "name": "AsyncEsqlResult", "namespace": "esql._types" } } }, "name": { "name": "Response", "namespace": "esql.async_query" }, "specLocation": "esql/async_query/AsyncQueryResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an async ES|QL query.\nIf the query is still running, it is cancelled.\nOtherwise, the stored results are deleted.\n\nIf the Elasticsearch security features are enabled, only the following users can use this API to delete a query:\n\n* The authenticated user that submitted the original query request\n* Users with the `cancel_task` cluster privilege", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.async_query_delete" }, "path": [ { "description": "The unique identifier of the query.\nA query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time.\nA query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "esql/async_query_delete/AsyncQueryDeleteRequest.ts#L23-L46" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "esql.async_query_delete" }, "specLocation": "esql/async_query_delete/AsyncQueryDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get async ES|QL query results.\nGet the current status and available results or stored results for an ES|QL asynchronous query.\nIf the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.async_query_get" }, "path": [ { "description": "The unique identifier of the query.\nA query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time.\nA query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.\nIf `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.", "name": "drop_null_columns", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The period for which the query and its results are stored in the cluster.\nWhen this period expires, the query and its results are deleted, even if the query is still ongoing.", "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for the request to finish.\nBy default, the request waits for complete query results.\nIf the request completes during the period specified in this parameter, complete query results are returned.\nOtherwise, the response returns an `is_running` value of `true` and no results.", "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "esql/async_query_get/AsyncQueryGetRequest.ts#L24-L62" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data", "value": { "kind": "instance_of", "type": { "name": "AsyncEsqlResult", "namespace": "esql._types" } } }, "name": { "name": "Response", "namespace": "esql.async_query_get" }, "specLocation": "esql/async_query_get/AsyncQueryGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop async ES|QL query.\n\nThis API interrupts the query execution and returns the results so far.\nIf the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.async_query_stop" }, "path": [ { "description": "The unique identifier of the query.\nA query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time.\nA query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.\nIf `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.", "name": "drop_null_columns", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "esql/async_query_stop/AsyncQueryStopRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data", "value": { "kind": "instance_of", "type": { "name": "EsqlResult", "namespace": "esql._types" } } }, "name": { "name": "Response", "namespace": "esql.async_query_stop" }, "specLocation": "esql/async_query_stop/AsyncQueryStopResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a specific running ES|QL query information.\nReturns an object extended information about a running ES|QL query.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.get_query" }, "path": [ { "description": "The query ID", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "esql/get_query/GetQueryRequest.ts#L23-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "start_time_millis", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "running_time_nanos", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "coordinating_node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "data_nodes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } } } ] }, "name": { "name": "Response", "namespace": "esql.get_query" }, "specLocation": "esql/get_query/GetQueryResponse.ts#L23-L33" }, { "kind": "interface", "name": { "name": "Body", "namespace": "esql.list_queries" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "start_time_millis", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "running_time_nanos", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "esql/list_queries/ListQueriesResponse.ts#L24-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get running ES|QL queries information.\nReturns an object containing IDs and other information about the running ES|QL queries.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.list_queries" }, "path": [], "query": [], "specLocation": "esql/list_queries/ListQueriesRequest.ts#L22-L38" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "queries", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Body", "namespace": "esql.list_queries" } } } } ] }, "name": { "name": "Response", "namespace": "esql.list_queries" }, "specLocation": "esql/list_queries/ListQueriesResponse.ts#L32-L36" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.", "name": "columnar", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "locale", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.", "docId": "esql-query-params", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest#esql-rest-params", "name": "params", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } }, { "description": "If provided and `true` the response will include an extra `profile` object\nwith information on how the query was executed. This information is for human debugging\nand its format can change at any time but it can give some insight into the performance\nof each part of the query.", "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Tables to use with the LOOKUP operation. The top level key is the table\nname and the next level key is the column name.", "name": "tables", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TableValuesContainer", "namespace": "esql._types" } } } } }, { "description": "When set to `true` and performing a cross-cluster query, the response will include an extra `_clusters`\nobject with information about the clusters that participated in the search along with info such as shards\ncount.", "name": "include_ccs_metadata", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Run an ES|QL query.\nGet search results for an ES|QL (Elasticsearch query language) query.", "examples": { "QueryRequestExample1": { "description": "Run `POST /_query` to get results for an ES|QL query.", "value": "{\n \"query\": \"\"\"\n FROM library,remote-*:library\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\n | STATS MAX(page_count) BY year\n | SORT year\n | LIMIT 5\n \"\"\",\n \"include_ccs_metadata\": true\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "esql.query" }, "path": [], "query": [ { "description": "A short version of the Accept header, e.g. json, yaml.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "EsqlFormat", "namespace": "esql._types" } } }, { "description": "The character to use between values within a CSV row. Only valid for the CSV format.", "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?\nDefaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns.", "name": "drop_null_columns", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", "name": "allow_partial_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "esql/query/QueryRequest.ts#L27-L110" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data", "value": { "kind": "instance_of", "type": { "name": "EsqlResult", "namespace": "esql._types" } } }, "name": { "name": "Response", "namespace": "esql.query" }, "specLocation": "esql/query/QueryResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "Feature", "namespace": "features._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "features/_types/Feature.ts#L20-L23" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the features.\nGet a list of features that can be included in snapshots using the `feature_states` field when creating a snapshot.\nYou can use this API to determine which feature states to include when taking a snapshot.\nBy default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not.\n\nA feature state includes one or more system indices necessary for a given feature to function.\nIn order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together.\n\nThe features listed by this API are a combination of built-in features and features defined by plugins.\nIn order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "features.get_features" }, "path": [], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "features/get_features/GetFeaturesRequest.ts#L23-L53" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "features", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "features._types" } } } } ] }, "examples": { "GetFeaturesResponseExample1": { "description": "A successful response for retrieving a list of feature states that can be included when taking a snapshot.", "value": "{\n \"features\": [\n {\n \"name\": \"tasks\",\n \"description\": \"Manages task results\"\n },\n {\n \"name\": \"kibana\",\n \"description\": \"Manages Kibana configuration and reports\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "features.get_features" }, "specLocation": "features/get_features/GetFeaturesResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Reset the features.\nClear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices.\n\nWARNING: Intended for development and testing use only. Do not reset features on a production cluster.\n\nReturn a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features.\nThis deletes all state information stored in system indices.\n\nThe response code is HTTP 200 if the state is successfully reset for all features.\nIt is HTTP 500 if the reset operation failed for any feature.\n\nNote that select features might provide a way to reset particular system indices.\nUsing this API resets all features, both those that are built-in and implemented as plugins.\n\nTo list the features that will be affected, use the get features API.\n\nIMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "features.reset_features" }, "path": [], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L23-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "features", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "features._types" } } } } ] }, "examples": { "ResetFeaturesResponseExample1": { "description": "A successful response for clearing state information stored in system indices by Elasticsearch features.", "value": "{\n \"features\" : [\n {\n \"feature_name\" : \"security\",\n \"status\" : \"SUCCESS\"\n },\n {\n \"feature_name\" : \"tasks\",\n \"status\" : \"SUCCESS\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "features.reset_features" }, "specLocation": "features/reset_features/ResetFeaturesResponse.ts#L22-L26" }, { "kind": "type_alias", "name": { "name": "Checkpoint", "namespace": "fleet._types" }, "specLocation": "fleet/_types/Checkpoints.ts#L22-L22", "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get global checkpoints.\n\nGet the current global checkpoints for an index.\nThis API is designed for internal use by the Fleet server project.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "fleet.global_checkpoints" }, "path": [ { "description": "A single index or index alias that resolves to a single index.", "name": "index", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } ] } } ], "query": [ { "description": "A boolean value which controls whether to wait (until the timeout) for the global checkpoints\nto advance past the provided `checkpoints`.", "name": "wait_for_advance", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A boolean value which controls whether to wait (until the timeout) for the target index to exist\nand all primary shards be active. Can only be true when `wait_for_advance` is true.", "name": "wait_for_index", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A comma separated list of previous global checkpoints. When used in combination with `wait_for_advance`,\nthe API will only return once the global checkpoints advances past the checkpoints. Providing an empty list\nwill cause Elasticsearch to immediately return the current global checkpoints.", "name": "checkpoints", "required": false, "serverDefault": [], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Checkpoint", "namespace": "fleet._types" } } } }, { "description": "Period to wait for a global checkpoints to advance past `checkpoints`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "fleet/global_checkpoints/GlobalCheckpointsRequest.ts#L25-L74" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "global_checkpoints", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Checkpoint", "namespace": "fleet._types" } } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "fleet.global_checkpoints" }, "specLocation": "fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "searches", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RequestItem", "namespace": "_global.msearch" } } } }, "description": "Run multiple Fleet searches.\nRun several Fleet searches with a single API request.\nThe API follows the same structure as the multi search API.\nHowever, similar to the Fleet search API, it supports the `wait_for_checkpoints` parameter.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "fleet.msearch" }, "path": [ { "description": "A single target to search. If the target is an index alias, it must resolve to a single index.", "name": "index", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } ] } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests.", "docId": "ccs-network-delays", "docUrl": "https://www.elastic.co/docs/solutions/search/cross-cluster-search#ccs-network-delays", "name": "ccs_minimize_roundtrips", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If true, concrete, expanded or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum number of concurrent searches the multi search API can execute.", "name": "max_concurrent_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum number of concurrent shard requests that each sub-search request executes per node.", "name": "max_concurrent_shard_requests", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint.", "name": "pre_filter_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Indicates whether global term and document frequencies should be used when scoring returned documents.", "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "description": "If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object.", "name": "rest_total_hits_as_int", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether aggregation and suggester names should be prefixed by their respective types in the response.", "name": "typed_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A comma separated list of checkpoints. When configured, the search API will only be executed on a shard\nafter the relevant checkpoint has become visible for search. Defaults to an empty list which will cause\nElasticsearch to immediately execute the search.", "name": "wait_for_checkpoints", "required": false, "serverDefault": [], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Checkpoint", "namespace": "fleet._types" } } } }, { "description": "If true, returns partial results if there are shard request timeouts or shard failures.\nIf false, returns an error with no partial results.\nDefaults to the configured cluster setting `search.default_allow_partial_results`, which is true by default.", "name": "allow_partial_search_results", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "fleet/msearch/MultiSearchRequest.ts#L31-L126" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "fleet.msearch.Response" } } ], "type": { "name": "ResponseItem", "namespace": "_global.msearch" } } } } ] }, "generics": [ { "name": "TDocument", "namespace": "fleet.msearch.Response" } ], "name": { "name": "Response", "namespace": "fleet.msearch" }, "specLocation": "fleet/msearch/MultiSearchResponse.ts#L25-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "aliases": [ "aggs" ], "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "name": "collapse", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldCollapse", "namespace": "_global.search._types" } } }, { "description": "If true, returns detailed information about score computation as part of a hit.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Configuration of search extensions defined by Elasticsearch plugins.", "name": "ext", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Starting document offset. By default, you cannot page through more than 10,000\nhits using the from and size parameters. To page through more hits, use the\nsearch_after parameter.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "Highlight", "namespace": "_global.search._types" } } }, { "description": "Number of hits matching the query to count accurately. If true, the exact\nnumber of hits is returned at the cost of some performance. If false, the\nresponse does not include the total number of hits matching the query.\nDefaults to 10,000 hits.", "name": "track_total_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "description": "Boosts the _score of documents from specified indices.", "name": "indices_boost", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } }, { "description": "Array of wildcard (*) patterns. The request returns doc values for field\nnames matching these patterns in the hits.fields property of the response.", "name": "docvalue_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "description": "Minimum _score for matching documents. Documents with a lower _score are\nnot included in search results and results collected by aggregations.", "name": "min_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "post_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines the search definition using the Query DSL.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "rescore", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Rescore", "namespace": "_global.search._types" } } } ] } }, { "description": "Retrieve a script evaluation (based on different fields) for each hit.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } }, { "description": "The number of hits to return. By default, you cannot page through more\nthan 10,000 hits using the from and size parameters. To page through more\nhits, use the search_after parameter.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "slice", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlicedScroll", "namespace": "_types" } } }, { "docId": "sort-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "Indicates which source fields are returned for matching documents. These\nfields are returned in the hits._source property of the search response.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "description": "Array of wildcard (*) patterns. The request returns values for field names\nmatching these patterns in the hits.fields property of the response.", "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "name": "suggest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Suggester", "namespace": "_global.search._types" } } }, { "description": "Maximum number of documents to collect for each shard. If a query reaches this\nlimit, Elasticsearch terminates the query early. Elasticsearch collects documents\nbefore sorting. Defaults to 0, which does not terminate query execution early.", "name": "terminate_after", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Specifies the period of time to wait for a response from each shard. If no response\nis received before the timeout expires, the request fails and returns an error.\nDefaults to no timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If true, calculate and return document scores, even if the scores are not used for sorting.", "name": "track_scores", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns document version as part of a hit.", "name": "version", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns sequence number and primary term of the last modification\nof each hit. See Optimistic concurrency control.", "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of stored fields to return as part of a hit. If no fields are specified,\nno stored fields are included in the response. If this field is specified, the _source\nparameter defaults to false. You can pass _source: true to return both source fields\nand stored fields in the search response.", "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Limits the search to a point in time (PIT). If you provide a PIT, you\ncannot specify an in the request path.", "name": "pit", "required": false, "type": { "kind": "instance_of", "type": { "name": "PointInTimeReference", "namespace": "_global.search._types" } } }, { "description": "Defines one or more runtime fields in the search request. These fields take\nprecedence over mapped fields with the same name.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "Stats groups to associate with the search. Each group maintains a statistics\naggregation for its associated searches. You can retrieve these stats using\nthe indices stats API.", "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Run a Fleet search.\nThe purpose of the Fleet search API is to provide an API where the search will be run only\nafter the provided checkpoint has been processed and is visible for searches inside of Elasticsearch.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "fleet.search" }, "path": [ { "description": "A single target to search. If the target is an index alias, it must resolve to a single index.", "name": "index", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } ] } } ], "query": [ { "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "analyze_wildcard", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "batched_reduce_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "ccs_minimize_roundtrips", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "default_operator", "required": false, "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "docvalue_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "name": "explain", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ignore_unavailable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "lenient", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "max_concurrent_shard_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "pre_filter_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "name": "scroll", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "name": "stats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "stored_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Specifies which field to use for suggestions.", "name": "suggest_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "suggest_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "SuggestMode", "namespace": "_types" } } }, { "name": "suggest_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The source text for which the suggestions should be returned.", "name": "suggest_text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "terminate_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "track_total_hits", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrackHits", "namespace": "_global.search._types" } } }, { "name": "track_scores", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "typed_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "rest_total_hits_as_int", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfigParam", "namespace": "_global.search._types" } } }, { "name": "_source_excludes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "_source_includes", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "seq_no_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sort", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "A comma separated list of checkpoints. When configured, the search API will only be executed on a shard\nafter the relevant checkpoint has become visible for search. Defaults to an empty list which will cause\nElasticsearch to immediately execute the search.", "name": "wait_for_checkpoints", "required": false, "serverDefault": [], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Checkpoint", "namespace": "fleet._types" } } } }, { "description": "If true, returns partial results if there are shard request timeouts or shard failures.\nIf false, returns an error with no partial results.\nDefaults to the configured cluster setting `search.default_allow_partial_results`, which is true by default.", "name": "allow_partial_search_results", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "fleet/search/SearchRequest.ts#L54-L266" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "fleet.search.Response" } } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } }, { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } } }, { "name": "_clusters", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterStatistics", "namespace": "_types" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "max_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "num_reduce_phases", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "Profile", "namespace": "_global.search._types" } } }, { "name": "pit_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_scroll_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScrollId", "namespace": "_types" } } }, { "name": "suggest", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "SuggestionName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "fleet.search.Response" } } ], "type": { "name": "Suggest", "namespace": "_global.search._types" } } } } }, { "name": "terminated_early", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "generics": [ { "name": "TDocument", "namespace": "fleet.search.Response" } ], "name": { "name": "Response", "namespace": "fleet.search" }, "specLocation": "fleet/search/SearchResponse.ts#L33-L50" }, { "kind": "interface", "name": { "name": "Connection", "namespace": "graph._types" }, "properties": [ { "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "graph/_types/Connection.ts#L22-L27" }, { "kind": "interface", "name": { "name": "ExploreControls", "namespace": "graph._types" }, "properties": [ { "description": "To avoid the top-matching documents sample being dominated by a single source of results, it is sometimes necessary to request diversity in the sample.\nYou can do this by selecting a single-value field and setting a maximum number of documents per value for that field.", "name": "sample_diversity", "required": false, "type": { "kind": "instance_of", "type": { "name": "SampleDiversity", "namespace": "graph._types" } } }, { "description": "Each hop considers a sample of the best-matching documents on each shard.\nUsing samples improves the speed of execution and keeps exploration focused on meaningfully-connected terms.\nVery small values (less than 50) might not provide sufficient weight-of-evidence to identify significant connections between terms.\nVery large sample sizes can dilute the quality of the results and increase execution times.", "name": "sample_size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The length of time in milliseconds after which exploration will be halted and the results gathered so far are returned.\nThis timeout is honored on a best-effort basis.\nExecution might overrun this timeout if, for example, a long pause is encountered while FieldData is loaded for a field.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Filters associated terms so only those that are significantly associated with your query are included.", "docId": "search-aggregations-bucket-significantterms-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-significantterms-aggregation", "name": "use_significance", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "graph/_types/ExploreControls.ts#L24-L49" }, { "kind": "interface", "name": { "name": "Hop", "namespace": "graph._types" }, "properties": [ { "description": "Specifies one or more fields from which you want to extract terms that are associated with the specified vertices.", "name": "connections", "required": false, "type": { "kind": "instance_of", "type": { "name": "Hop", "namespace": "graph._types" } } }, { "description": "An optional guiding query that constrains the Graph API as it explores connected terms.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Contains the fields you are interested in.", "name": "vertices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "VertexDefinition", "namespace": "graph._types" } } } } ], "specLocation": "graph/_types/Hop.ts#L23-L36" }, { "kind": "interface", "name": { "name": "SampleDiversity", "namespace": "graph._types" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "max_docs_per_value", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "graph/_types/ExploreControls.ts#L51-L54" }, { "kind": "interface", "name": { "name": "Vertex", "namespace": "graph._types" }, "properties": [ { "name": "depth", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "term", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "weight", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "graph/_types/Vertex.ts#L23-L28" }, { "kind": "interface", "name": { "name": "VertexDefinition", "namespace": "graph._types" }, "properties": [ { "description": "Prevents the specified terms from being included in the results.", "name": "exclude", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Identifies a field in the documents of interest.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Identifies the terms of interest that form the starting points from which you want to spider out.", "name": "include", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "VertexInclude", "namespace": "graph._types" } } } }, { "description": "Specifies how many documents must contain a pair of terms before it is considered to be a useful connection.\nThis setting acts as a certainty threshold.", "name": "min_doc_count", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration.", "name": "shard_min_doc_count", "required": false, "serverDefault": 2, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Specifies the maximum number of vertex terms returned for each field.", "name": "size", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "graph/_types/Vertex.ts#L30-L59" }, { "kind": "interface", "name": { "name": "VertexInclude", "namespace": "graph._types" }, "properties": [ { "name": "boost", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "term", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "term", "specLocation": "graph/_types/Vertex.ts#L61-L65" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Specifies or more fields from which you want to extract terms that are associated with the specified vertices.", "name": "connections", "required": false, "type": { "kind": "instance_of", "type": { "name": "Hop", "namespace": "graph._types" } } }, { "description": "Direct the Graph API how to build the graph.", "name": "controls", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExploreControls", "namespace": "graph._types" } } }, { "description": "A seed query that identifies the documents of interest. Can be any valid Elasticsearch query.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Specifies one or more fields that contain the terms you want to include in the graph as vertices.", "name": "vertices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "VertexDefinition", "namespace": "graph._types" } } } } ] }, "description": "Explore graph analytics.\nExtract and summarize information about the documents and terms in an Elasticsearch data stream or index.\nThe easiest way to understand the behavior of this API is to use the Graph UI to explore connections.\nAn initial request to the `_explore` API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph.\nSubsequent requests enable you to spider out from one more vertices of interest.\nYou can exclude vertices that have already been returned.", "examples": { "GraphExploreRequestExample1": { "description": "Run `POST clicklogs/_graph/explore` for a basic exploration An initial graph explore query typically begins with a query to identify strongly related terms. Seed the exploration with a query. This example is searching `clicklogs` for people who searched for the term `midi`.Identify the vertices to include in the graph. This example is looking for product codes that are significantly associated with searches for `midi`. Find the connections. This example is looking for other search terms that led people to click on the products that are associated with searches for `midi`.\n", "value": "{\n \"query\": {\n \"match\": {\n \"query.raw\": \"midi\"\n }\n },\n \"vertices\": [\n {\n \"field\": \"product\"\n }\n ],\n \"connections\": {\n \"vertices\": [\n {\n \"field\": \"query.raw\"\n }\n ]\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "graph.explore" }, "path": [ { "description": "Name of the index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Custom value used to route operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Specifies the period of time to wait for a response from each shard.\nIf no response is received before the timeout expires, the request fails and returns an error.\nDefaults to no timeout.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "graph/explore/GraphExploreRequest.ts#L28-L84" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "connections", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Connection", "namespace": "graph._types" } } } }, { "name": "failures", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardFailure", "namespace": "_types" } } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "vertices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Vertex", "namespace": "graph._types" } } } } ] }, "name": { "name": "Response", "namespace": "graph.explore" }, "specLocation": "graph/explore/GraphExploreResponse.ts#L25-L33" }, { "kind": "interface", "name": { "name": "Actions", "namespace": "ilm._types" }, "properties": [ { "description": "Phases allowed: warm, cold.", "name": "allocate", "required": false, "type": { "kind": "instance_of", "type": { "name": "AllocateAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: delete.", "name": "delete", "required": false, "type": { "kind": "instance_of", "type": { "name": "DeleteAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: hot, warm, cold.", "name": "downsample", "required": false, "type": { "kind": "instance_of", "type": { "name": "DownsampleAction", "namespace": "ilm._types" } } }, { "deprecation": { "description": "", "version": "7.0.0" }, "description": "The freeze action is a noop in 8.x", "name": "freeze", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } }, { "description": "Phases allowed: hot, warm.", "name": "forcemerge", "required": false, "type": { "kind": "instance_of", "type": { "name": "ForceMergeAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: warm, cold.", "name": "migrate", "required": false, "type": { "kind": "instance_of", "type": { "name": "MigrateAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: hot, warm, cold.", "name": "readonly", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } }, { "description": "Phases allowed: hot.", "name": "rollover", "required": false, "type": { "kind": "instance_of", "type": { "name": "RolloverAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: hot, warm, cold.", "name": "set_priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "SetPriorityAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: hot, cold, frozen.", "name": "searchable_snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchableSnapshotAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: hot, warm.", "name": "shrink", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShrinkAction", "namespace": "ilm._types" } } }, { "description": "Phases allowed: hot, warm, cold, frozen.", "name": "unfollow", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmptyObject", "namespace": "_types" } } }, { "description": "Phases allowed: delete.", "name": "wait_for_snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "WaitForSnapshotAction", "namespace": "ilm._types" } } } ], "specLocation": "ilm/_types/Phase.ts#L39-L93" }, { "kind": "interface", "name": { "name": "AllocateAction", "namespace": "ilm._types" }, "properties": [ { "name": "number_of_replicas", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_shards_per_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "include", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "exclude", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "require", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ilm/_types/Phase.ts#L133-L139" }, { "kind": "interface", "name": { "name": "DeleteAction", "namespace": "ilm._types" }, "properties": [ { "name": "delete_searchable_snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ilm/_types/Phase.ts#L149-L151" }, { "kind": "interface", "name": { "name": "DownsampleAction", "namespace": "ilm._types" }, "properties": [ { "name": "fixed_interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "DurationLarge", "namespace": "_types" } } }, { "name": "wait_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/_types/Phase.ts#L112-L115" }, { "kind": "interface", "name": { "name": "ForceMergeAction", "namespace": "ilm._types" }, "properties": [ { "name": "max_num_segments", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "index_codec", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ilm/_types/Phase.ts#L123-L126" }, { "kind": "interface", "name": { "name": "MigrateAction", "namespace": "ilm._types" }, "properties": [ { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ilm/_types/Phase.ts#L141-L143" }, { "kind": "interface", "name": { "name": "Phase", "namespace": "ilm._types" }, "properties": [ { "name": "actions", "required": false, "type": { "kind": "instance_of", "type": { "name": "Actions", "namespace": "ilm._types" } } }, { "name": "min_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/_types/Phase.ts#L26-L29" }, { "kind": "interface", "name": { "name": "Phases", "namespace": "ilm._types" }, "properties": [ { "name": "cold", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "ilm._types" } } }, { "name": "delete", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "ilm._types" } } }, { "name": "frozen", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "ilm._types" } } }, { "name": "hot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "ilm._types" } } }, { "name": "warm", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "ilm._types" } } } ], "specLocation": "ilm/_types/Phase.ts#L31-L37" }, { "kind": "interface", "name": { "name": "Policy", "namespace": "ilm._types" }, "properties": [ { "name": "phases", "required": true, "type": { "kind": "instance_of", "type": { "name": "Phases", "namespace": "ilm._types" } } }, { "description": "Arbitrary metadata that is not automatically generated or used by Elasticsearch.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "ilm/_types/Policy.ts#L23-L29" }, { "kind": "interface", "name": { "name": "RolloverAction", "namespace": "ilm._types" }, "properties": [ { "name": "max_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_primary_shard_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "min_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "min_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "min_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_primary_shard_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "ilm/_types/Phase.ts#L99-L110" }, { "kind": "interface", "name": { "name": "SearchableSnapshotAction", "namespace": "ilm._types" }, "properties": [ { "name": "snapshot_repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "force_merge_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ilm/_types/Phase.ts#L128-L131" }, { "kind": "interface", "name": { "name": "SetPriorityAction", "namespace": "ilm._types" }, "properties": [ { "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ilm/_types/Phase.ts#L95-L97" }, { "kind": "interface", "name": { "name": "ShrinkAction", "namespace": "ilm._types" }, "properties": [ { "name": "number_of_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "allow_write_after_shrink", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ilm/_types/Phase.ts#L117-L121" }, { "kind": "interface", "name": { "name": "WaitForSnapshotAction", "namespace": "ilm._types" }, "properties": [ { "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ilm/_types/Phase.ts#L145-L147" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a lifecycle policy.\nYou cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.delete_lifecycle" }, "path": [ { "codegenName": "name", "description": "Identifier for the policy.", "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/delete_lifecycle/DeleteLifecycleRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "DeleteLifecycleResponseExample1": { "description": "A successful response when deleting a lifecycle policy.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ilm.delete_lifecycle" }, "specLocation": "ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L25" }, { "kind": "type_alias", "name": { "name": "LifecycleExplain", "namespace": "ilm.explain_lifecycle" }, "specLocation": "ilm/explain_lifecycle/types.ts#L64-L67", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "LifecycleExplainManaged", "namespace": "ilm.explain_lifecycle" } }, { "kind": "instance_of", "type": { "name": "LifecycleExplainUnmanaged", "namespace": "ilm.explain_lifecycle" } } ] }, "variants": { "kind": "internal_tag", "tag": "managed" } }, { "kind": "interface", "name": { "name": "LifecycleExplainManaged", "namespace": "ilm.explain_lifecycle" }, "properties": [ { "name": "action", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "action_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "action_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "failed_step", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "failed_step_retry_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "index_creation_date", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "index_creation_date_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "is_auto_retryable_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "lifecycle_date", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "lifecycle_date_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "managed", "required": true, "type": { "kind": "literal_value", "value": true } }, { "name": "phase", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "phase_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "phase_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "previous_step_info", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "repository_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "snapshot_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "shrink_index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "step", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "step_info", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "step_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "step_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "phase_execution", "required": false, "type": { "kind": "instance_of", "type": { "name": "LifecycleExplainPhaseExecution", "namespace": "ilm.explain_lifecycle" } } }, { "name": "time_since_index_creation", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/explain_lifecycle/types.ts#L27-L57" }, { "kind": "interface", "name": { "name": "LifecycleExplainPhaseExecution", "namespace": "ilm.explain_lifecycle" }, "properties": [ { "name": "phase_definition", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "ilm._types" } } }, { "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "modified_date_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "ilm/explain_lifecycle/types.ts#L69-L74" }, { "kind": "interface", "name": { "name": "LifecycleExplainUnmanaged", "namespace": "ilm.explain_lifecycle" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "managed", "required": true, "type": { "kind": "literal_value", "value": false } } ], "specLocation": "ilm/explain_lifecycle/types.ts#L59-L62" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Explain the lifecycle state.\nGet the current lifecycle status for one or more indices.\nFor data streams, the API retrieves the current lifecycle status for the stream's backing indices.\n\nThe response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.explain_lifecycle" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases to target. Supports wildcards (`*`).\nTo target all data streams and indices, use `*` or `_all`.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Filters the returned indices to only indices that are managed by ILM and are in an error state, either due to an encountering an error while executing the policy, or attempting to use a policy that does not exist.", "name": "only_errors", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Filters the returned indices to only indices that are managed by ILM.", "name": "only_managed", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "LifecycleExplain", "namespace": "ilm.explain_lifecycle" } } } } ] }, "examples": { "ExplainLifecycleResponseExample1": { "description": "A successful response when retrieving the current ILM status for an index.", "value": "{\n \"indices\": {\n \"my-index-000001\": {\n \"index\": \"my-index-000001\",\n \"index_creation_date_millis\": 1538475653281,\n \"index_creation_date\": \"2018-10-15T13:45:21.981Z\",\n \"time_since_index_creation\": \"15s\",\n \"managed\": true,\n \"policy\": \"my_policy\",\n \"lifecycle_date_millis\": 1538475653281,\n \"lifecycle_date\": \"2018-10-15T13:45:21.981Z\",\n \"age\": \"15s\",\n \"phase\": \"new\",\n \"phase_time_millis\": 1538475653317,\n \"phase_time\": \"2018-10-15T13:45:22.577Z\",\n \"action\": \"complete\"\n \"action_time_millis\": 1538475653317,\n \"action_time\": \"2018-10-15T13:45:22.577Z\",\n \"step\": \"complete\",\n \"step_time_millis\": 1538475653317,\n \"step_time\": \"2018-10-15T13:45:22.577Z\"\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "ilm.explain_lifecycle" }, "specLocation": "ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28" }, { "kind": "interface", "name": { "name": "Lifecycle", "namespace": "ilm.get_lifecycle" }, "properties": [ { "name": "modified_date", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "ilm._types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "ilm/get_lifecycle/types.ts#L24-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get lifecycle policies.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.get_lifecycle" }, "path": [ { "codegenName": "name", "description": "Identifier for the policy.", "name": "policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/get_lifecycle/GetLifecycleRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "value", "codegenName": "lifecycles", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Lifecycle", "namespace": "ilm.get_lifecycle" } } } }, "examples": { "GetLifecycleResponseExample1": { "description": "A successful response when retrieving a lifecycle policy.", "value": "{\n \"my_policy\": {\n \"version\": 1,\n \"modified_date\": 82392349,\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"min_age\": \"10d\",\n \"actions\": {\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"delete\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"delete\": {\n \"delete_searchable_snapshot\": true\n }\n }\n }\n }\n },\n \"in_use_by\" : {\n \"indices\" : [],\n \"data_streams\" : [],\n \"composable_templates\" : []\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "ilm.get_lifecycle" }, "specLocation": "ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the ILM status.\n\nGet the current index lifecycle management status.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.get_status" }, "path": [], "query": [], "specLocation": "ilm/get_status/GetIlmStatusRequest.ts#L22-L38" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "operation_mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "LifecycleOperationMode", "namespace": "_types" } } } ] }, "examples": { "GetILMStatusResponseExample1": { "description": "A successful response when retrieving the current ILM status.", "value": "{\n \"operation_mode\": \"RUNNING\"\n}" } }, "name": { "name": "Response", "namespace": "ilm.get_status" }, "specLocation": "ilm/get_status/GetIlmStatusResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "legacy_template_to_delete", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "node_attribute", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Migrate to data tiers routing.\nSwitch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers.\nOptionally, delete one legacy index template.\nUsing node roles enables ILM to automatically move the indices between data tiers.\n\nMigrating away from custom node attributes routing can be manually performed.\nThis API provides an automated way of performing three out of the four manual steps listed in the migration guide:\n\n1. Stop setting the custom hot attribute on new indices.\n1. Remove custom allocation settings from existing ILM policies.\n1. Replace custom allocation settings from existing indices with the corresponding tier preference.\n\nILM must be stopped before performing the migration.\nUse the stop ILM and get ILM status APIs to wait until the reported operation mode is `STOPPED`.", "examples": { "MigrateToDataTiersRequestExample1": { "description": "Run `POST /_ilm/migrate_to_data_tiers` to migrate the indices, ILM policies, legacy templates, composable, and component templates away from defining custom allocation filtering using the `custom_attribute_name` node attribute. It also deletes the legacy template with name `global-template` if it exists in the system.\n", "value": "{\n \"legacy_template_to_delete\": \"global-template\",\n \"node_attribute\": \"custom_attribute_name\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.migrate_to_data_tiers" }, "path": [], "query": [ { "description": "If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration.\nThis provides a way to retrieve the indices and ILM policies that need to be migrated.", "name": "dry_run", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/migrate_to_data_tiers/Request.ts#L23-L69" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "dry_run", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The name of the legacy index template that was deleted.\nThis information is missing if no legacy index templates were deleted.", "name": "removed_legacy_template", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The ILM policies that were updated.", "name": "migrated_ilm_policies", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The indices that were migrated to tier preference routing.", "name": "migrated_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "The legacy index templates that were updated to not contain custom routing settings for the provided data attribute.", "name": "migrated_legacy_templates", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The composable index templates that were updated to not contain custom routing settings for the provided data attribute.", "name": "migrated_composable_templates", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The component templates that were updated to not contain custom routing settings for the provided data attribute.", "name": "migrated_component_templates", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "examples": { "MigrateToDataTiersResponseExample1": { "description": "A successful response when migrating indices, ILMs, and templates from custom node attributes to data tiers.\n", "value": "{\n \"dry_run\": false,\n \"removed_legacy_template\":\"global-template\",\n \"migrated_ilm_policies\":[\"policy_with_allocate_action\"],\n \"migrated_indices\":[\"warm-index-to-migrate-000001\"],\n \"migrated_legacy_templates\":[\"a-legacy-template\"],\n \"migrated_composable_templates\":[\"a-composable-template\"],\n \"migrated_component_templates\":[\"a-component-template\"]\n}" } }, "name": { "name": "Response", "namespace": "ilm.migrate_to_data_tiers" }, "specLocation": "ilm/migrate_to_data_tiers/Response.ts#L22-L51" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The step that the index is expected to be in.", "name": "current_step", "required": true, "type": { "kind": "instance_of", "type": { "name": "StepKey", "namespace": "ilm.move_to_step" } } }, { "description": "The step that you want to run.", "name": "next_step", "required": true, "type": { "kind": "instance_of", "type": { "name": "StepKey", "namespace": "ilm.move_to_step" } } } ] }, "description": "Move to a lifecycle step.\nManually move an index into a specific step in the lifecycle policy and run that step.\n\nWARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API.\n\nYou must specify both the current step and the step to be executed in the body of the request.\nThe request will fail if the current step does not match the step currently running for the index\nThis is to prevent the index from being moved from an unexpected step into the next step.\n\nWhen specifying the target (`next_step`) to which the index will be moved, either the name or both the action and name fields are optional.\nIf only the phase is specified, the index will move to the first step of the first action in the target phase.\nIf the phase and action are specified, the index will move to the first step of the specified action in the specified phase.\nOnly actions specified in the ILM policy are considered valid.\nAn index cannot move to a step that is not part of its policy.", "examples": { "MoveToStepRequestExample1": { "description": "Run `POST _ilm/move/my-index-000001` to move `my-index-000001` from the initial step to the `forcemerge` step.\n", "summary": "Move to forcemerge step", "value": "{\n \"current_step\": {\n \"phase\": \"new\",\n \"action\": \"complete\",\n \"name\": \"complete\"\n },\n \"next_step\": {\n \"phase\": \"warm\",\n \"action\": \"forcemerge\",\n \"name\": \"forcemerge\"\n }\n}" }, "MoveToStepRequestExample2": { "description": "Run `POST _ilm/move/my-index-000001` to move `my-index-000001` from the end of hot phase into the start of warm.\n", "summary": "Move to warm step", "value": "{\n \"current_step\": {\n \"phase\": \"hot\",\n \"action\": \"complete\",\n \"name\": \"complete\"\n },\n \"next_step\": {\n \"phase\": \"warm\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.move_to_step" }, "path": [ { "description": "The name of the index whose lifecycle step is to change", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "ilm/move_to_step/MoveToStepRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MoveToStepResponseExample1": { "description": "A successful response when running a specific step in a lifecycle policy.\n", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ilm.move_to_step" }, "specLocation": "ilm/move_to_step/MoveToStepResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "StepKey", "namespace": "ilm.move_to_step" }, "properties": [ { "description": "The optional action to which the index will be moved.", "name": "action", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The optional step name to which the index will be moved.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "phase", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ilm/move_to_step/types.ts#L20-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "ilm._types" } } } ] }, "description": "Create or update a lifecycle policy.\nIf the specified policy exists, it is replaced and the policy version is incremented.\n\nNOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.", "examples": { "PutLifecycleRequestExample1": { "description": "Run `PUT _ilm/policy/my_policy` to create a new policy with arbitrary metadata.\n", "value": "{\n \"policy\": {\n \"_meta\": {\n \"description\": \"used for nginx log\",\n \"project\": {\n \"name\": \"myProject\",\n \"department\": \"myDepartment\"\n }\n },\n \"phases\": {\n \"warm\": {\n \"min_age\": \"10d\",\n \"actions\": {\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"delete\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"delete\": {}\n }\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.put_lifecycle" }, "path": [ { "codegenName": "name", "description": "Identifier for the policy.", "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "PutLifecycleResponseExample1": { "description": "A successful response when creating a new lifecycle policy.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ilm.put_lifecycle" }, "specLocation": "ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Remove policies from an index.\nRemove the assigned lifecycle policies from an index or a data stream's backing indices.\nIt also stops managing the indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.remove_policy" }, "path": [ { "description": "The name of the index to remove policy on", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "ilm/remove_policy/RemovePolicyRequest.ts#L23-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "failed_indexes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "name": "has_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "RemovePolicyResponseExample1": { "description": "A successful response when removing a lifecycle policy from an index.", "value": "{\n \"has_failures\" : false,\n \"failed_indexes\" : []\n}" } }, "name": { "name": "Response", "namespace": "ilm.remove_policy" }, "specLocation": "ilm/remove_policy/RemovePolicyResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Retry a policy.\nRetry running the lifecycle policy for an index that is in the ERROR step.\nThe API sets the policy back to the step where the error occurred and runs the step.\nUse the explain lifecycle state API to determine whether an index is in the ERROR step.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.retry" }, "path": [ { "description": "The name of the indices (comma-separated) whose failed lifecycle step is to be retry", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "ilm/retry/RetryIlmRequest.ts#L23-L43" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ilm.retry" }, "specLocation": "ilm/retry/RetryIlmResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start the ILM plugin.\nStart the index lifecycle management plugin if it is currently stopped.\nILM is started automatically when the cluster is formed.\nRestarting ILM is necessary only when it has been stopped using the stop ILM API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.start" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/start/StartIlmRequest.ts#L23-L52" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "StartILMResponseExample1": { "description": "A successful response when stating the ILM plugin.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ilm.start" }, "specLocation": "ilm/start/StartIlmResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop the ILM plugin.\nHalt all lifecycle management operations and stop the index lifecycle management plugin.\nThis is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.\n\nThe API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.\nUse the get ILM status API to check whether ILM is running.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ilm.stop" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "StopILMResponseExample1": { "description": "A successful response when stopping the ILM plugin.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ilm.stop" }, "specLocation": "ilm/stop/StopIlmResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "Alias", "namespace": "indices._types" }, "properties": [ { "description": "Query used to limit documents the alias can access.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Value used to route indexing operations to a specific shard.\nIf specified, this overwrites the `routing` value for indexing operations.", "name": "index_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `true`, the alias is hidden.\nAll indices for the alias must have the same `is_hidden` value.", "name": "is_hidden", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the index is the write index for the alias.", "name": "is_write_index", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Value used to route indexing and search operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Value used to route search operations to a specific shard.\nIf specified, this overwrites the `routing` value for search operations.", "name": "search_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } } ], "specLocation": "indices/_types/Alias.ts#L23-L53" }, { "kind": "interface", "name": { "name": "AliasDefinition", "namespace": "indices._types" }, "properties": [ { "description": "Query used to limit documents the alias can access.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Value used to route indexing operations to a specific shard.\nIf specified, this overwrites the `routing` value for indexing operations.", "name": "index_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the index is the write index for the alias.", "name": "is_write_index", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Value used to route indexing and search operations to a specific shard.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Value used to route search operations to a specific shard.\nIf specified, this overwrites the `routing` value for search operations.", "name": "search_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "description": "If `true`, the alias is hidden.\nAll indices for the alias must have the same `is_hidden` value.", "name": "is_hidden", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/AliasDefinition.ts#L22-L54" }, { "kind": "interface", "name": { "name": "CacheQueries", "namespace": "indices._types" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L421-L423" }, { "kind": "interface", "name": { "name": "DataStream", "namespace": "indices._types" }, "properties": [ { "description": "Custom metadata for the stream, copied from the `_meta` object of the stream’s matching index template.\nIf empty, the response omits this property.", "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "If `true`, the data stream allows custom routing on write request.", "name": "allow_custom_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Information about failure store backing indices", "name": "failure_store", "required": false, "type": { "kind": "instance_of", "type": { "name": "FailureStore", "namespace": "indices._types" } } }, { "description": "Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1.", "name": "generation", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, the data stream is hidden.", "name": "hidden", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Name of the current ILM lifecycle policy in the stream’s matching index template.\nThis lifecycle policy is set in the `index.lifecycle.name` setting.\nIf the template does not include a lifecycle policy, this property is not included in the response.\nNOTE: A data stream’s backing indices may be assigned different lifecycle policies. To retrieve the lifecycle policy for individual backing indices, use the get index settings API.", "name": "ilm_policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Name of the lifecycle system that'll manage the next generation of the data stream.", "name": "next_generation_managed_by", "required": true, "type": { "kind": "instance_of", "type": { "name": "ManagedBy", "namespace": "indices._types" } } }, { "description": "Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream.", "name": "prefer_ilm", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Array of objects containing information about the data stream’s backing indices.\nThe last item in this array contains information about the stream’s current write index.", "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStreamIndex", "namespace": "indices._types" } } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Contains the configuration for the data stream lifecycle of this data stream.", "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" } } }, { "description": "Name of the data stream.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } }, { "description": "If `true`, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings.", "name": "replicated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too.", "name": "rollover_on_write", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Health status of the data stream.\nThis health status is based on the state of the primary and replica shards of the stream’s backing indices.", "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.10.0" } }, "description": "If `true`, the data stream is created and managed by an Elastic stack component and cannot be modified through normal user interaction.", "name": "system", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Name of the index template used to create the data stream’s backing indices.\nThe template’s index pattern must match the name of this data stream.", "name": "template", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Information about the `@timestamp` field in the data stream.", "name": "timestamp_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamTimestampField", "namespace": "indices._types" } } }, { "description": "The index mode for the data stream that will be used for newly created backing indices.", "name": "index_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexMode", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/DataStream.ts#L53-L139" }, { "kind": "interface", "name": { "name": "DataStreamIndex", "namespace": "indices._types" }, "properties": [ { "description": "Name of the backing index.", "name": "index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Universally unique identifier (UUID) for the index.", "name": "index_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "description": "Name of the current ILM lifecycle policy configured for this backing index.", "name": "ilm_policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Name of the lifecycle system that's currently managing this backing index.", "name": "managed_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "ManagedBy", "namespace": "indices._types" } } }, { "description": "Indicates if ILM should take precedence over DSL in case both are configured to manage this index.", "name": "prefer_ilm", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The index mode of this backing index of the data stream.", "name": "index_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexMode", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/DataStream.ts#L148-L173" }, { "kind": "interface", "description": "Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration.", "name": { "name": "DataStreamLifecycle", "namespace": "indices._types" }, "properties": [ { "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", "name": "data_retention", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The downsampling configuration to execute for the managed backing index after rollover.", "name": "downsampling", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleDownsampling", "namespace": "indices._types" } } }, { "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", "name": "enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/DataStreamLifecycle.ts#L25-L45" }, { "kind": "interface", "name": { "name": "DataStreamLifecycleDownsampling", "namespace": "indices._types" }, "properties": [ { "description": "The list of downsampling rounds to execute as part of this downsampling configuration", "name": "rounds", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DownsamplingRound", "namespace": "indices._types" } } } } ], "specLocation": "indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27" }, { "kind": "interface", "name": { "name": "DataStreamLifecycleRolloverConditions", "namespace": "indices._types" }, "properties": [ { "name": "min_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "min_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "min_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "min_primary_shard_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_primary_shard_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/_types/DataStreamLifecycle.ts#L60-L72" }, { "kind": "interface", "description": "Data stream lifecycle with rollover can be used to display the configuration including the default rollover conditions,\nif asked.", "inherits": { "type": { "name": "DataStreamLifecycle", "namespace": "indices._types" } }, "name": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" }, "properties": [ { "description": "The conditions which will trigger the rollover of a backing index as configured by the cluster setting `cluster.lifecycle.default.rollover`.\nThis property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.\nThe contents of this field are subject to change.", "name": "rollover", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleRolloverConditions", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/DataStreamLifecycle.ts#L47-L58" }, { "kind": "interface", "name": { "name": "DataStreamTimestampField", "namespace": "indices._types" }, "properties": [ { "description": "Name of the timestamp field for the data stream, which must be `@timestamp`. The `@timestamp` field must be included in every document indexed to the data stream.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "indices/_types/DataStream.ts#L141-L146" }, { "kind": "interface", "name": { "name": "DataStreamVisibility", "namespace": "indices._types" }, "properties": [ { "name": "hidden", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "allow_custom_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/DataStream.ts#L175-L178" }, { "kind": "interface", "name": { "name": "DownsampleConfig", "namespace": "indices._types" }, "properties": [ { "description": "The interval at which to aggregate the original time series index.", "name": "fixed_interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "DurationLarge", "namespace": "_types" } } } ], "specLocation": "indices/_types/Downsample.ts#L22-L27" }, { "kind": "interface", "name": { "name": "DownsamplingRound", "namespace": "indices._types" }, "properties": [ { "description": "The duration since rollover when this downsampling round should execute", "name": "after", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The downsample configuration to execute.", "name": "config", "required": true, "type": { "kind": "instance_of", "type": { "name": "DownsampleConfig", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/DownsamplingRound.ts#L23-L32" }, { "kind": "interface", "name": { "name": "FailureStore", "namespace": "indices._types" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStreamIndex", "namespace": "indices._types" } } } }, { "name": "rollover_on_write", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/DataStream.ts#L47-L51" }, { "kind": "interface", "name": { "name": "FielddataFrequencyFilter", "namespace": "indices._types" }, "properties": [ { "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "min_segment_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "indices/_types/FielddataFrequencyFilter.ts#L22-L26" }, { "kind": "enum", "esQuirk": "This is a boolean that evolved into an enum. ES also accepts plain booleans for true and false.", "members": [ { "name": "true" }, { "name": "false" }, { "name": "checksum" } ], "name": { "name": "IndexCheckOnStartup", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSettings.ts#L270-L277" }, { "kind": "enum", "members": [ { "name": "standard" }, { "name": "time_series" }, { "name": "logsdb" }, { "name": "lookup" } ], "name": { "name": "IndexMode", "namespace": "indices._types" }, "specLocation": "indices/_types/DataStream.ts#L40-L45" }, { "kind": "interface", "name": { "name": "IndexRouting", "namespace": "indices._types" }, "properties": [ { "name": "allocation", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingAllocation", "namespace": "indices._types" } } }, { "name": "rebalance", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingRebalance", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexRouting.ts#L22-L25" }, { "kind": "interface", "name": { "name": "IndexRoutingAllocation", "namespace": "indices._types" }, "properties": [ { "name": "enable", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingAllocationOptions", "namespace": "indices._types" } } }, { "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingAllocationInclude", "namespace": "indices._types" } } }, { "name": "initial_recovery", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingAllocationInitialRecovery", "namespace": "indices._types" } } }, { "name": "disk", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingAllocationDisk", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexRouting.ts#L27-L32" }, { "kind": "interface", "name": { "name": "IndexRoutingAllocationDisk", "namespace": "indices._types" }, "properties": [ { "name": "threshold_enabled", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "indices/_types/IndexRouting.ts#L62-L64" }, { "kind": "interface", "name": { "name": "IndexRoutingAllocationInclude", "namespace": "indices._types" }, "properties": [ { "name": "_tier_preference", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexRouting.ts#L52-L55" }, { "kind": "interface", "name": { "name": "IndexRoutingAllocationInitialRecovery", "namespace": "indices._types" }, "properties": [ { "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexRouting.ts#L57-L59" }, { "kind": "enum", "members": [ { "name": "all" }, { "name": "primaries" }, { "name": "new_primaries" }, { "name": "none" } ], "name": { "name": "IndexRoutingAllocationOptions", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexRouting.ts#L38-L43" }, { "kind": "interface", "name": { "name": "IndexRoutingRebalance", "namespace": "indices._types" }, "properties": [ { "name": "enable", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexRoutingRebalanceOptions", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexRouting.ts#L34-L36" }, { "kind": "enum", "members": [ { "name": "all" }, { "name": "primaries" }, { "name": "replicas" }, { "name": "none" } ], "name": { "name": "IndexRoutingRebalanceOptions", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexRouting.ts#L45-L50" }, { "kind": "interface", "name": { "name": "IndexSegmentSort", "namespace": "indices._types" }, "properties": [ { "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "order", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SegmentSortOrder", "namespace": "indices._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SegmentSortOrder", "namespace": "indices._types" } } } ] } }, { "name": "mode", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SegmentSortMode", "namespace": "indices._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SegmentSortMode", "namespace": "indices._types" } } } ] } }, { "name": "missing", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SegmentSortMissing", "namespace": "indices._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SegmentSortMissing", "namespace": "indices._types" } } } ] } } ], "specLocation": "indices/_types/IndexSegmentSort.ts#L22-L27" }, { "kind": "interface", "name": { "name": "IndexSettingBlocks", "namespace": "indices._types" }, "properties": [ { "name": "read_only", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "read_only_allow_delete", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "read", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "write", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "metadata", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L262-L268" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "user_defined_value" } ], "meta": { "description": "Additional settings not covered in this type.", "fieldname": "other_settings" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "docId": "index-modules-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/index-settings/index-modules", "name": { "name": "IndexSettings", "namespace": "indices._types" }, "properties": [ { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "name": "mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "routing_path", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "soft_deletes", "required": false, "type": { "kind": "instance_of", "type": { "name": "SoftDeletes", "namespace": "indices._types" } } }, { "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSegmentSort", "namespace": "indices._types" } } }, { "availability": { "stack": {} }, "name": "number_of_shards", "required": false, "serverDefault": "1", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "availability": { "stack": {} }, "name": "number_of_replicas", "required": false, "serverDefault": "0", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "number_of_routing_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "check_on_startup", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "IndexCheckOnStartup", "namespace": "indices._types" } } }, { "name": "codec", "required": false, "serverDefault": "LZ4", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "routing_partition_size", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "load_fixed_bitset_filters_eagerly", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "hidden", "required": false, "serverDefault": "false", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "auto_expand_replicas", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ], "type": { "name": "WithNullValue", "namespace": "_spec_utils" } } }, { "name": "merge", "required": false, "type": { "kind": "instance_of", "type": { "name": "Merge", "namespace": "indices._types" } } }, { "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "SettingsSearch", "namespace": "indices._types" } } }, { "name": "refresh_interval", "required": false, "serverDefault": "1s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max_result_window", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_inner_result_window", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_rescore_window", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_docvalue_fields_search", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_script_fields", "required": false, "serverDefault": 32, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_ngram_diff", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_shingle_diff", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "blocks", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettingBlocks", "namespace": "indices._types" } } }, { "name": "max_refresh_listeners", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Settings to define analyzers, tokenizers, token filters and character filters.", "name": "analyze", "required": false, "type": { "kind": "instance_of", "type": { "name": "SettingsAnalyze", "namespace": "indices._types" } } }, { "name": "highlight", "required": false, "type": { "kind": "instance_of", "type": { "name": "SettingsHighlight", "namespace": "indices._types" } } }, { "name": "max_terms_count", "required": false, "serverDefault": 65536, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_regex_length", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRouting", "namespace": "indices._types" } } }, { "name": "gc_deletes", "required": false, "serverDefault": "60s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "default_pipeline", "required": false, "serverDefault": "_none", "type": { "kind": "instance_of", "type": { "name": "PipelineName", "namespace": "_types" } } }, { "name": "final_pipeline", "required": false, "serverDefault": "_none", "type": { "kind": "instance_of", "type": { "name": "PipelineName", "namespace": "_types" } } }, { "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettingsLifecycle", "namespace": "indices._types" } } }, { "name": "provided_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "creation_date", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "creation_date_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "uuid", "required": false, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexVersioning", "namespace": "indices._types" } } }, { "name": "verified_before_close", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "format", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ] } }, { "name": "max_slices_per_scroll", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "translog", "required": false, "type": { "kind": "instance_of", "type": { "name": "Translog", "namespace": "indices._types" } } }, { "name": "query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "SettingsQueryString", "namespace": "indices._types" } } }, { "name": "priority", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "top_metrics_max_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "analysis", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettingsAnalysis", "namespace": "indices._types" } } }, { "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "name": "time_series", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettingsTimeSeries", "namespace": "indices._types" } } }, { "name": "queries", "required": false, "type": { "kind": "instance_of", "type": { "name": "Queries", "namespace": "indices._types" } } }, { "description": "Configure custom similarity settings to customize how search results are scored.", "name": "similarity", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "SettingsSimilarity", "namespace": "indices._types" } } } }, { "description": "Enable or disable dynamic mapping for an index.", "name": "mapping", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettings", "namespace": "indices._types" } } }, { "name": "indexing.slowlog", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingSlowlogSettings", "namespace": "indices._types" } } }, { "description": "Configure indexing back pressure limits.", "name": "indexing_pressure", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingPressure", "namespace": "indices._types" } } }, { "description": "The store module allows you to control how index data is stored and accessed on disk.", "name": "store", "required": false, "type": { "kind": "instance_of", "type": { "name": "Storage", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L70-L176" }, { "kind": "interface", "name": { "name": "IndexSettingsAnalysis", "namespace": "indices._types" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Analyzer", "namespace": "_types.analysis" } } } }, { "name": "char_filter", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CharFilter", "namespace": "_types.analysis" } } } }, { "name": "filter", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TokenFilter", "namespace": "_types.analysis" } } } }, { "name": "normalizer", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Normalizer", "namespace": "_types.analysis" } } } }, { "name": "tokenizer", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Tokenizer", "namespace": "_types.analysis" } } } } ], "specLocation": "indices/_types/IndexSettings.ts#L333-L339" }, { "kind": "interface", "name": { "name": "IndexSettingsLifecycle", "namespace": "indices._types" }, "properties": [ { "description": "The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action.\nYou can explicitly set it to skip rollover.", "name": "indexing_complete", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "description": "If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting\nif you create a new index that contains old data and want to use the original creation date to calculate the index\nage. Specified as a Unix epoch value in milliseconds.", "name": "origination_date", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Set to true to parse the origination date from the index name. This origination date is used to calculate the index age\nfor its phase transitions. The index name must match the pattern ^.*-{date_format}-\\\\d+, where the date_format is\nyyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format,\nfor example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails.", "name": "parse_origination_date", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "step", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettingsLifecycleStep", "namespace": "indices._types" } } }, { "description": "The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action.\nWhen the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more\ninformation about rolling indices, see Rollover.", "name": "rollover_alias", "required": false, "serverDefault": "", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Preference for the system that manages a data stream backing index (preferring ILM when both ILM and DLM are\napplicable for an index).", "name": "prefer_ilm", "required": false, "serverDefault": "true", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "indices/_types/IndexSettings.ts#L284-L323" }, { "kind": "interface", "name": { "name": "IndexSettingsLifecycleStep", "namespace": "indices._types" }, "properties": [ { "description": "Time to wait for the cluster to resolve allocation issues during an ILM shrink action. Must be greater than 1h (1 hour).\nSee Shard allocation for shrink.", "name": "wait_time_threshold", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L325-L331" }, { "kind": "interface", "name": { "name": "IndexSettingsTimeSeries", "namespace": "indices._types" }, "properties": [ { "name": "end_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L341-L344" }, { "kind": "interface", "name": { "name": "IndexState", "namespace": "indices._types" }, "properties": [ { "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "description": "Default settings, included when the request's `include_default` is `true`.", "name": "defaults", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "name": "data_stream", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "Data stream lifecycle applicable if this is a data stream.", "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycle", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexState.ts#L27-L40" }, { "kind": "interface", "name": { "name": "IndexTemplate", "namespace": "indices._types" }, "properties": [ { "description": "Name of the index template.", "name": "index_patterns", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", "name": "composed_of", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } }, { "description": "Template to be applied.\nIt may optionally include an `aliases`, `mappings`, or `settings` configuration.", "name": "template", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexTemplateSummary", "namespace": "indices._types" } } }, { "description": "Version number used to manage index templates externally.\nThis number is not automatically generated by Elasticsearch.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Optional user metadata about the index template. May have any contents.\nThis map is not automatically generated by Elasticsearch.", "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "allow_auto_create", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If this object is included, the template is used to create data streams and their backing indices.\nSupports an empty object.\nData streams require a matching index template with a `data_stream` object.", "name": "data_stream", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexTemplateDataStreamConfiguration", "namespace": "indices._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.12.0" } }, "description": "Marks this index template as deprecated.\nWhen creating or updating a non-deprecated index template that uses deprecated components,\nElasticsearch will emit a deprecation warning.", "name": "deprecated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.7.0" } }, "description": "A list of component template names that are allowed to be absent.", "name": "ignore_missing_component_templates", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexTemplate.ts#L28-L81" }, { "kind": "interface", "name": { "name": "IndexTemplateDataStreamConfiguration", "namespace": "indices._types" }, "properties": [ { "description": "If true, the data stream is hidden.", "name": "hidden", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the data stream supports custom routing.", "name": "allow_custom_routing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/IndexTemplate.ts#L83-L94" }, { "kind": "interface", "name": { "name": "IndexTemplateSummary", "namespace": "indices._types" }, "properties": [ { "description": "Aliases to add.\nIf the index template includes a `data_stream` object, these are data stream aliases.\nOtherwise, these are index aliases.\nData stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping parameters.", "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "Configuration options for the index.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexTemplate.ts#L96-L118" }, { "kind": "interface", "name": { "name": "IndexVersioning", "namespace": "indices._types" }, "properties": [ { "name": "created", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "created_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L279-L282" }, { "kind": "interface", "name": { "name": "IndexingPressure", "namespace": "indices._types" }, "properties": [ { "name": "memory", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexingPressureMemory", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L575-L577" }, { "kind": "interface", "name": { "name": "IndexingPressureMemory", "namespace": "indices._types" }, "properties": [ { "description": "Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded,\nthe node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit,\nthe node will reject new replica operations. Defaults to 10% of the heap.", "name": "limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L579-L586" }, { "kind": "interface", "name": { "name": "IndexingSlowlogSettings", "namespace": "indices._types" }, "properties": [ { "name": "level", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "reformat", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "threshold", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingSlowlogTresholds", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L588-L593" }, { "kind": "interface", "name": { "name": "IndexingSlowlogTresholds", "namespace": "indices._types" }, "properties": [ { "description": "The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.\nLog and the thresholds are configured in the same way as the search slowlog.", "docId": "index-modules-slowlog-slowlog", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/index-settings/slow-log#index-slow-log", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlowlogTresholdLevels", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L595-L602" }, { "kind": "enum", "members": [ { "codegenName": "ilm", "name": "Index Lifecycle Management" }, { "codegenName": "datastream", "name": "Data stream lifecycle" }, { "codegenName": "unmanaged", "name": "Unmanaged" } ], "name": { "name": "ManagedBy", "namespace": "indices._types" }, "specLocation": "indices/_types/DataStream.ts#L32-L37" }, { "kind": "interface", "description": "Mapping Limit Settings", "docId": "mapping-settings-limit", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/index-settings/mapping-limit", "name": { "name": "MappingLimitSettings", "namespace": "indices._types" }, "properties": [ { "name": "coerce", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "total_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsTotalFields", "namespace": "indices._types" } } }, { "name": "depth", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsDepth", "namespace": "indices._types" } } }, { "name": "nested_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsNestedFields", "namespace": "indices._types" } } }, { "name": "nested_objects", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsNestedObjects", "namespace": "indices._types" } } }, { "name": "field_name_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsFieldNameLength", "namespace": "indices._types" } } }, { "name": "dimension_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsDimensionFields", "namespace": "indices._types" } } }, { "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingLimitSettingsSourceFields", "namespace": "indices._types" } } }, { "name": "ignore_malformed", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "indices/_types/IndexSettings.ts#L425-L439" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsDepth", "namespace": "indices._types" }, "properties": [ { "description": "The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined\nat the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.", "name": "limit", "required": false, "serverDefault": 20, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L460-L467" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsDimensionFields", "namespace": "indices._types" }, "properties": [ { "description": "[preview] This functionality is in technical preview and may be changed or removed in a future release.\nElastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.", "name": "limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L497-L503" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsFieldNameLength", "namespace": "indices._types" }, "properties": [ { "description": "Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but\nmight still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The\ndefault is okay unless a user starts to add a huge number of fields with really long names. Default is `Long.MAX_VALUE` (no limit).", "name": "limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L488-L495" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsNestedFields", "namespace": "indices._types" }, "properties": [ { "description": "The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when\narrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this\nsetting limits the number of unique nested types per index.", "name": "limit", "required": false, "serverDefault": 50, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L469-L477" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsNestedObjects", "namespace": "indices._types" }, "properties": [ { "description": "The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps\nto prevent out of memory errors when a document contains too many nested objects.", "name": "limit", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L479-L486" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsSourceFields", "namespace": "indices._types" }, "properties": [ { "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "SourceMode", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L505-L507" }, { "kind": "interface", "name": { "name": "MappingLimitSettingsTotalFields", "namespace": "indices._types" }, "properties": [ { "description": "The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.\nThe limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance\ndegradations and memory issues, especially in clusters with a high load or few resources.", "name": "limit", "required": false, "serverDefault": "1000", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "description": "This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set\nto false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail\nwith the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail.\nInstead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false.\nThe fields that were not added to the mapping will be added to the _ignored field.", "name": "ignore_dynamic_beyond_limit", "required": false, "serverDefault": "false", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "indices/_types/IndexSettings.ts#L441-L458" }, { "kind": "interface", "name": { "name": "Merge", "namespace": "indices._types" }, "properties": [ { "name": "scheduler", "required": false, "type": { "kind": "instance_of", "type": { "name": "MergeScheduler", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L346-L348" }, { "kind": "interface", "name": { "name": "MergeScheduler", "namespace": "indices._types" }, "properties": [ { "name": "max_thread_count", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "max_merge_count", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L350-L353" }, { "kind": "interface", "name": { "name": "NumericFielddata", "namespace": "indices._types" }, "properties": [ { "name": "format", "required": true, "type": { "kind": "instance_of", "type": { "name": "NumericFielddataFormat", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/NumericFielddata.ts#L22-L24" }, { "kind": "enum", "members": [ { "name": "array" }, { "name": "disabled" } ], "name": { "name": "NumericFielddataFormat", "namespace": "indices._types" }, "specLocation": "indices/_types/NumericFielddataFormat.ts#L20-L23" }, { "kind": "interface", "name": { "name": "Queries", "namespace": "indices._types" }, "properties": [ { "name": "cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "CacheQueries", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L417-L419" }, { "kind": "interface", "name": { "name": "RetentionLease", "namespace": "indices._types" }, "properties": [ { "name": "period", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L66-L68" }, { "kind": "interface", "name": { "name": "SearchIdle", "namespace": "indices._types" }, "properties": [ { "name": "after", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L253-L256" }, { "kind": "enum", "members": [ { "codegenName": "last", "name": "_last" }, { "codegenName": "first", "name": "_first" } ], "name": { "name": "SegmentSortMissing", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSegmentSort.ts#L43-L46" }, { "kind": "enum", "members": [ { "aliases": [ "MIN" ], "name": "min" }, { "aliases": [ "MAX" ], "name": "max" } ], "name": { "name": "SegmentSortMode", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSegmentSort.ts#L36-L41" }, { "kind": "enum", "members": [ { "aliases": [ "ASC" ], "name": "asc" }, { "aliases": [ "DESC" ], "name": "desc" } ], "name": { "name": "SegmentSortOrder", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSegmentSort.ts#L29-L34" }, { "kind": "interface", "name": { "name": "SettingsAnalyze", "namespace": "indices._types" }, "properties": [ { "name": "max_token_count", "required": false, "serverDefault": "10000", "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L243-L246" }, { "kind": "interface", "name": { "name": "SettingsHighlight", "namespace": "indices._types" }, "properties": [ { "name": "max_analyzed_offset", "required": false, "serverDefault": 1000000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L238-L241" }, { "kind": "interface", "name": { "name": "SettingsQueryString", "namespace": "indices._types" }, "properties": [ { "name": "lenient", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L258-L260" }, { "kind": "interface", "name": { "name": "SettingsSearch", "namespace": "indices._types" }, "properties": [ { "name": "idle", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchIdle", "namespace": "indices._types" } } }, { "name": "slowlog", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlowlogSettings", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L248-L251" }, { "kind": "type_alias", "name": { "name": "SettingsSimilarity", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSettings.ts#L178-L190", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SettingsSimilarityBm25", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityBoolean", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityDfi", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityDfr", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityIb", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityLmd", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityLmj", "namespace": "indices._types" } }, { "kind": "instance_of", "type": { "name": "SettingsSimilarityScripted", "namespace": "indices._types" } } ] }, "variants": { "kind": "internal_tag", "nonExhaustive": true, "tag": "type" } }, { "kind": "interface", "name": { "name": "SettingsSimilarityBm25", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "BM25" } }, { "name": "b", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "discount_overlaps", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "k1", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L196-L201" }, { "kind": "interface", "name": { "name": "SettingsSimilarityBoolean", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "boolean" } } ], "specLocation": "indices/_types/IndexSettings.ts#L192-L194" }, { "kind": "interface", "name": { "name": "SettingsSimilarityDfi", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "DFI" } }, { "name": "independence_measure", "required": true, "type": { "kind": "instance_of", "type": { "name": "DFIIndependenceMeasure", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L203-L206" }, { "kind": "interface", "name": { "name": "SettingsSimilarityDfr", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "DFR" } }, { "name": "after_effect", "required": true, "type": { "kind": "instance_of", "type": { "name": "DFRAfterEffect", "namespace": "_types" } } }, { "name": "basic_model", "required": true, "type": { "kind": "instance_of", "type": { "name": "DFRBasicModel", "namespace": "_types" } } }, { "name": "normalization", "required": true, "type": { "kind": "instance_of", "type": { "name": "Normalization", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L208-L213" }, { "kind": "interface", "name": { "name": "SettingsSimilarityIb", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "IB" } }, { "name": "distribution", "required": true, "type": { "kind": "instance_of", "type": { "name": "IBDistribution", "namespace": "_types" } } }, { "name": "lambda", "required": true, "type": { "kind": "instance_of", "type": { "name": "IBLambda", "namespace": "_types" } } }, { "name": "normalization", "required": true, "type": { "kind": "instance_of", "type": { "name": "Normalization", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L215-L220" }, { "kind": "interface", "name": { "name": "SettingsSimilarityLmd", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "LMDirichlet" } }, { "name": "mu", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L222-L225" }, { "kind": "interface", "name": { "name": "SettingsSimilarityLmj", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "LMJelinekMercer" } }, { "name": "lambda", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L227-L230" }, { "kind": "interface", "name": { "name": "SettingsSimilarityScripted", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "literal_value", "value": "scripted" } }, { "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "name": "weight_script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L232-L236" }, { "kind": "interface", "name": { "name": "SlowlogSettings", "namespace": "indices._types" }, "properties": [ { "name": "level", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "reformat", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "threshold", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlowlogTresholds", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L515-L520" }, { "kind": "interface", "name": { "name": "SlowlogTresholdLevels", "namespace": "indices._types" }, "properties": [ { "name": "warn", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "info", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "debug", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "trace", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L527-L532" }, { "kind": "interface", "name": { "name": "SlowlogTresholds", "namespace": "indices._types" }, "properties": [ { "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlowlogTresholdLevels", "namespace": "indices._types" } } }, { "name": "fetch", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlowlogTresholdLevels", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L522-L525" }, { "kind": "interface", "name": { "name": "SoftDeletes", "namespace": "indices._types" }, "properties": [ { "description": "Indicates whether soft deletes are enabled on the index.", "name": "enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum period to retain a shard history retention lease before it is considered expired.\nShard history retention leases ensure that soft deletes are retained during merges on the Lucene\nindex. If a soft delete is merged away before it can be replicated to a follower the following\nprocess will fail due to incomplete history on the leader.", "name": "retention_lease", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetentionLease", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L51-L64" }, { "kind": "enum", "members": [ { "name": "disabled" }, { "name": "stored" }, { "name": "synthetic" } ], "name": { "name": "SourceMode", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSettings.ts#L509-L513" }, { "kind": "interface", "name": { "name": "Storage", "namespace": "indices._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "StorageType", "namespace": "indices._types" } } }, { "description": "You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap.\nThis is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This\nsetting is useful, for example, if you are in an environment where you can not control the ability to create a lot\nof memory maps so you need disable the ability to use memory-mapping.", "name": "allow_mmap", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L534-L543" }, { "kind": "enum", "isOpen": true, "members": [ { "description": "Default file system implementation. This will pick the best implementation depending on the operating environment, which\nis currently hybridfs on all supported systems but is subject to change.", "name": "fs" }, { "description": "The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO. It allows multiple\nthreads to read from the same file concurrently. It is not recommended on Windows because of a bug in the SUN Java\nimplementation and disables some optimizations for heap memory usage.", "name": "niofs" }, { "description": "The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into\nmemory (mmap). Memory mapping uses up a portion of the virtual memory address space in your process equal to the size\nof the file being mapped. Before using this class, be sure you have allowed plenty of virtual address space.", "name": "mmapfs" }, { "description": "The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file\nbased on the read access pattern. Currently only the Lucene term dictionary, norms and doc values files are memory\nmapped. All other files are opened using Lucene NIOFSDirectory. Similarly to mmapfs be sure you have allowed\nplenty of virtual address space.", "name": "hybridfs" } ], "name": { "name": "StorageType", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSettings.ts#L545-L573" }, { "kind": "interface", "name": { "name": "TemplateMapping", "namespace": "indices._types" }, "properties": [ { "name": "aliases", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "name": "index_patterns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } }, { "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "order", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "settings", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "indices/_types/TemplateMapping.ts#L27-L34" }, { "kind": "interface", "name": { "name": "Translog", "namespace": "indices._types" }, "properties": [ { "description": "How often the translog is fsynced to disk and committed, regardless of write operations.\nValues less than 100ms are not allowed.", "name": "sync_interval", "required": false, "serverDefault": "5s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Whether or not to `fsync` and commit the translog after every index, delete, update, or bulk request.", "name": "durability", "required": false, "serverDefault": "string", "type": { "kind": "instance_of", "type": { "name": "TranslogDurability", "namespace": "indices._types" } } }, { "description": "The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not\npart of a Lucene commit point). Although these operations are available for reads, they will need\nto be replayed if the shard was stopped and had to be recovered. This setting controls the\nmaximum total size of these operations, to prevent recoveries from taking too long. Once the\nmaximum size has been reached a flush will happen, generating a new Lucene commit point.", "name": "flush_threshold_size", "required": false, "serverDefault": "512mb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "retention", "required": false, "type": { "kind": "instance_of", "type": { "name": "TranslogRetention", "namespace": "indices._types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L355-L377" }, { "kind": "enum", "members": [ { "aliases": [ "REQUEST" ], "description": "(default) fsync and commit after every request. In the event of hardware failure, all acknowledged writes\nwill already have been committed to disk.", "name": "request" }, { "aliases": [ "ASYNC" ], "description": "fsync and commit in the background every sync_interval. In the event of a failure, all acknowledged writes\nsince the last automatic commit will be discarded.", "name": "async" } ], "name": { "name": "TranslogDurability", "namespace": "indices._types" }, "specLocation": "indices/_types/IndexSettings.ts#L379-L394" }, { "kind": "interface", "name": { "name": "TranslogRetention", "namespace": "indices._types" }, "properties": [ { "description": "This controls the total size of translog files to keep for each shard. Keeping more translog files increases\nthe chance of performing an operation based sync when recovering a replica. If the translog files are not\nsufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be\nset, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch\nversions 7.0.0 and later.", "name": "size", "required": false, "serverDefault": "512mb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "This controls the maximum duration for which translog files are kept by each shard. Keeping more\ntranslog files increases the chance of performing an operation based sync when recovering replicas. If\nthe translog files are not sufficient, replica recovery will fall back to a file based sync. This setting\nis ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in\nindices created in Elasticsearch versions 7.0.0 and later.", "name": "age", "required": false, "serverDefault": "12h", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/_types/IndexSettings.ts#L396-L415" }, { "kind": "enum", "members": [ { "description": "Disable metadata changes, such as closing the index.", "name": "metadata" }, { "description": "Disable read operations.", "name": "read" }, { "description": "Disable write operations and metadata changes.", "name": "read_only" }, { "description": "Disable write operations. However, metadata changes are still allowed.", "name": "write" } ], "name": { "name": "IndicesBlockOptions", "namespace": "indices.add_block" }, "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L91-L100" }, { "kind": "interface", "name": { "name": "IndicesBlockStatus", "namespace": "indices.add_block" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "blocked", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/add_block/IndicesAddBlockResponse.ts#L30-L33" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Add an index block.\n\nAdd an index block to an index.\nIndex blocks limit the operations allowed on an index by blocking specific operation types.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.add_block" }, "path": [ { "description": "A comma-separated list or wildcard expression of index names used to limit the request.\nBy default, you must explicitly name the indices you are adding blocks to.\nTo allow the adding of blocks to indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`.\nYou can update this setting in the `elasticsearch.yml` file or by using the cluster update settings API.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The block type to add to the index.", "name": "block", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndicesBlockOptions", "namespace": "indices.add_block" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nIt supports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.\nIt can also be set to `-1` to indicate that the request should never timeout.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/add_block/IndicesAddBlockRequest.ts#L24-L89" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesBlockStatus", "namespace": "indices.add_block" } } } } ] }, "examples": { "IndicesAddBlockResponseExample1": { "description": "A successful response from `PUT /my-index-000001/_block/write`, which adds an index block to an index.'", "value": "{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true,\n \"indices\" : [ {\n \"name\" : \"my-index-000001\",\n \"blocked\" : true\n } ]\n}" } }, "name": { "name": "Response", "namespace": "indices.add_block" }, "specLocation": "indices/add_block/IndicesAddBlockResponse.ts#L22-L28" }, { "kind": "interface", "name": { "name": "AnalyzeDetail", "namespace": "indices.analyze" }, "properties": [ { "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalyzerDetail", "namespace": "indices.analyze" } } }, { "name": "charfilters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CharFilterDetail", "namespace": "indices.analyze" } } } }, { "name": "custom_analyzer", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "tokenfilters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TokenDetail", "namespace": "indices.analyze" } } } }, { "name": "tokenizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenDetail", "namespace": "indices.analyze" } } } ], "specLocation": "indices/analyze/types.ts#L24-L30" }, { "kind": "interface", "name": { "name": "AnalyzeToken", "namespace": "indices.analyze" }, "properties": [ { "name": "end_offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "position", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "positionLength", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "start_offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/analyze/types.ts#L37-L44" }, { "kind": "interface", "name": { "name": "AnalyzerDetail", "namespace": "indices.analyze" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tokens", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExplainAnalyzeToken", "namespace": "indices.analyze" } } } } ], "specLocation": "indices/analyze/types.ts#L32-L35" }, { "kind": "interface", "name": { "name": "CharFilterDetail", "namespace": "indices.analyze" }, "properties": [ { "name": "filtered_text", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/analyze/types.ts#L46-L49" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "user_defined_value" } ], "meta": { "description": "Additional tokenizer-specific attributes", "fieldname": "attributes" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "name": { "name": "ExplainAnalyzeToken", "namespace": "indices.analyze" }, "properties": [ { "name": "bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "end_offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "keyword", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "position", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "positionLength", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "start_offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "termFrequency", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/analyze/types.ts#L52-L67" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The name of the analyzer that should be applied to the provided `text`.\nThis could be a built-in analyzer, or an analyzer that’s been configured in the index.", "docId": "analysis-analyzers", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/analyzer-reference", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Array of token attributes used to filter the output of the `explain` parameter.", "name": "attributes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Array of character filters used to preprocess characters before the tokenizer.", "docId": "analysis-charfilters", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/character-filter-reference", "name": "char_filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CharFilter", "namespace": "_types.analysis" } } } }, { "description": "If `true`, the response includes token attributes and additional details.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Field used to derive the analyzer.\nTo use this parameter, you must specify an index.\nIf specified, the `analyzer` parameter overrides this value.", "name": "field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Array of token filters used to apply after the tokenizer.", "docId": "analysis-tokenfilters", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/token-filter-reference", "name": "filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TokenFilter", "namespace": "_types.analysis" } } } }, { "description": "Normalizer to use to convert text into a single token.", "docId": "analysis-normalizers", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/normalizers", "name": "normalizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Text to analyze.\nIf an array of strings is provided, it is analyzed as a multi-value field.", "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextToAnalyze", "namespace": "indices.analyze" } } }, { "description": "Tokenizer to use to convert text into tokens.", "docId": "analysis-tokenizers", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/tokenizer-reference", "name": "tokenizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "Tokenizer", "namespace": "_types.analysis" } } } ] }, "description": "Get tokens from text analysis.\nThe analyze API performs analysis on a text string and returns the resulting tokens.\n\nGenerating excessive amount of tokens may cause a node to run out of memory.\nThe `index.analyze.max_token_count` setting enables you to limit the number of tokens that can be produced.\nIf more than this limit of tokens gets generated, an error occurs.\nThe `_analyze` endpoint without a specified index will always use `10000` as its limit.", "examples": { "indicesAnalyzeRequestExample1": { "description": "You can apply any of the built-in analyzers to the text string without specifying an index.", "summary": "No index specified", "value": "{\n \"analyzer\": \"standard\",\n \"text\": \"this is a test\"\n}" }, "indicesAnalyzeRequestExample2": { "description": "If the text parameter is provided as array of strings, it is analyzed as a multi-value field.", "summary": "An array of text strings", "value": "{\n \"analyzer\": \"standard\",\n \"text\": [\n \"this is a test\",\n \"the second text\"\n ]\n}" }, "indicesAnalyzeRequestExample3": { "description": "You can test a custom transient analyzer built from tokenizers, token filters, and char filters. Token filters use the filter parameter.", "summary": "Custom analyzer example 1", "value": "{\n \"tokenizer\": \"keyword\",\n \"filter\": [\n \"lowercase\"\n ],\n \"char_filter\": [\n \"html_strip\"\n ],\n \"text\": \"this is a test\"\n}" }, "indicesAnalyzeRequestExample4": { "description": "Custom tokenizers, token filters, and character filters can be specified in the request body.", "summary": "Custom analyzer example 2", "value": "{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"lowercase\",\n {\n \"type\": \"stop\",\n \"stopwords\": [\n \"a\",\n \"is\",\n \"this\"\n ]\n }\n ],\n \"text\": \"this is a test\"\n}" }, "indicesAnalyzeRequestExample5": { "description": "Run `GET /analyze_sample/_analyze` to run an analysis on the text using the default index analyzer associated with the `analyze_sample` index. Alternatively, the analyzer can be derived based on a field mapping.", "summary": "Derive analyzer from field mapping", "value": "{\n \"field\": \"obj1.field1\",\n \"text\": \"this is a test\"\n}" }, "indicesAnalyzeRequestExample6": { "description": "Run `GET /analyze_sample/_analyze` and supply a normalizer for a keyword field if there is a normalizer associated with the specified index.", "summary": "Normalizer", "value": "{\n \"normalizer\": \"my_normalizer\",\n \"text\": \"BaR\"\n}" }, "indicesAnalyzeRequestExample7": { "description": "If you want to get more advanced details, set `explain` to `true`. It will output all token attributes for each token. You can filter token attributes you want to output by setting the `attributes` option. NOTE: The format of the additional detail information is labelled as experimental in Lucene and it may change in the future.\n", "summary": "Explain analysis", "value": "{\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"snowball\"\n ],\n \"text\": \"detailed output\",\n \"explain\": true,\n \"attributes\": [\n \"keyword\"\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.analyze" }, "path": [ { "description": "Index used to derive the analyzer.\nIf specified, the `analyzer` or field parameter overrides this value.\nIf no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer.", "docId": "analysis-standard-analyzer", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/analysis-standard-analyzer", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Index used to derive the analyzer.\nIf specified, the `analyzer` or field parameter overrides this value.\nIf no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer.", "docId": "analysis-standard-analyzer", "docUrl": "https://www.elastic.co/docs/reference/text-analysis/analysis-standard-analyzer", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "indices/analyze/IndicesAnalyzeRequest.ts#L27-L119" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "detail", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalyzeDetail", "namespace": "indices.analyze" } } }, { "name": "tokens", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AnalyzeToken", "namespace": "indices.analyze" } } } } ] }, "examples": { "indicesAnalyzeResponseExample7": { "description": "A successful response for an analysis with `explain` set to `true`.", "value": "{\n \"detail\": {\n \"custom_analyzer\": true,\n \"charfilters\": [],\n \"tokenizer\": {\n \"name\": \"standard\",\n \"tokens\": [\n {\n \"token\": \"detailed\",\n \"start_offset\": 0,\n \"end_offset\": 8,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"output\",\n \"start_offset\": 9,\n \"end_offset\": 15,\n \"type\": \"\",\n \"position\": 1\n }\n ]\n },\n \"tokenfilters\": [\n {\n \"name\": \"snowball\",\n \"tokens\": [\n {\n \"token\": \"detail\",\n \"start_offset\": 0,\n \"end_offset\": 8,\n \"type\": \"\",\n \"position\": 0,\n \"keyword\": false\n },\n {\n \"token\": \"output\",\n \"start_offset\": 9,\n \"end_offset\": 15,\n \"type\": \"\",\n \"position\": 1,\n \"keyword\": false\n }\n ]\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.analyze" }, "specLocation": "indices/analyze/IndicesAnalyzeResponse.ts#L22-L27" }, { "kind": "type_alias", "name": { "name": "TextToAnalyze", "namespace": "indices.analyze" }, "specLocation": "indices/analyze/types.ts#L69-L69", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "kind": "interface", "name": { "name": "TokenDetail", "namespace": "indices.analyze" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tokens", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExplainAnalyzeToken", "namespace": "indices.analyze" } } } } ], "specLocation": "indices/analyze/types.ts#L71-L74" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Cancel a migration reindex operation.\n\nCancel a migration reindex attempt for a data stream or index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.cancel_migrate_reindex" }, "path": [ { "description": "The index or data stream name", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [], "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexRequest.ts#L23-L38" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.cancel_migrate_reindex" }, "specLocation": "indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the cache.\nClear the cache of one or more indices.\nFor data streams, the API clears the caches of the stream's backing indices.\n\nBy default, the clear cache API clears all caches.\nTo clear only specific caches, use the `fielddata`, `query`, or `request` parameters.\nTo clear the cache only of specific fields, use the `fields` parameter.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.clear_cache" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, clears the fields cache.\nUse the `fields` parameter to clear the cache of specific fields only.", "name": "fielddata", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Comma-separated list of field names used to limit the `fielddata` parameter.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, clears the query cache.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, clears the request cache.", "name": "request", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/clear_cache/IndicesClearCacheRequest.ts#L23-L100" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "ShardsOperationResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.clear_cache" }, "specLocation": "indices/clear_cache/IndicesClearCacheResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Aliases for the resulting index.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Configuration options for the target index.", "docId": "index-modules-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/index-settings/index-modules", "name": "settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Clone an index.\nClone an existing index into a new index.\nEach original primary shard is cloned into a new primary shard in the new index.\n\nIMPORTANT: Elasticsearch does not apply index templates to the resulting index.\nThe API also does not copy index metadata from the original index.\nIndex metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information.\nFor example, if you clone a CCR follower index, the resulting clone will not be a follower index.\n\nThe clone API copies most index settings from the source index to the resulting index, with the exception of `index.number_of_replicas` and `index.auto_expand_replicas`.\nTo set the number of replicas in the resulting index, configure these settings in the clone request.\n\nCloning works as follows:\n\n* First, it creates a new target index with the same definition as the source index.\n* Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process.\n* Finally, it recovers the target index as though it were a closed index which had just been re-opened.\n\nIMPORTANT: Indices can only be cloned if they meet the following requirements:\n\n* The index must be marked as read-only and have a cluster health status of green.\n* The target index must not exist.\n* The source index must have the same number of primary shards as the target index.\n* The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index.\n\nThe current write index on a data stream cannot be cloned.\nIn order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned.\n\nNOTE: Mappings cannot be specified in the `_clone` request. The mappings of the source index will be used for the target index.\n\n**Monitor the cloning process**\n\nThe cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the `wait_for_status` parameter to `yellow`.\n\nThe `_clone` API returns as soon as the target index has been added to the cluster state, before any shards have been allocated.\nAt this point, all shards are in the state unassigned.\nIf, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node.\n\nOnce the primary shard is allocated, it moves to state initializing, and the clone process begins.\nWhen the clone operation completes, the shard will become active.\nAt that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node.\n\n**Wait for active shards**\n\nBecause the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well.", "examples": { "indicesCloneRequestExample1": { "description": "Clone `my_source_index` into a new index called `my_target_index` with `POST /my_source_index/_clone/my_target_index`. The API accepts `settings` and `aliases` parameters for the target index.\n", "summary": "Clone an existing index.", "value": "{\n \"settings\": {\n \"index.number_of_shards\": 5\n },\n \"aliases\": {\n \"my_search_indices\": {}\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.clone" }, "path": [ { "description": "Name of the source index to clone.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Name of the target index to create.", "docId": "indices-clone-index", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clone", "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "indices/clone/IndicesCloneRequest.ts#L27-L127" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "indices.clone" }, "specLocation": "indices/clone/IndicesCloneResponse.ts#L22-L28" }, { "kind": "interface", "name": { "name": "CloseIndexResult", "namespace": "indices.close" }, "properties": [ { "name": "closed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "shards", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CloseShardResult", "namespace": "indices.close" } } } } ], "specLocation": "indices/close/CloseIndexResponse.ts#L32-L35" }, { "kind": "interface", "name": { "name": "CloseShardResult", "namespace": "indices.close" }, "properties": [ { "name": "failures", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardFailure", "namespace": "_types" } } } } ], "specLocation": "indices/close/CloseIndexResponse.ts#L37-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Close an index.\nA closed index is blocked for read or write operations and does not allow all operations that opened indices allow.\nIt is not possible to index documents or to search for documents in a closed index.\nClosed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster.\n\nWhen opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index.\nThe shards will then go through the normal recovery process.\nThe data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.\n\nYou can open and close multiple indices.\nAn error is thrown if the request explicitly refers to a missing index.\nThis behaviour can be turned off using the `ignore_unavailable=true` parameter.\n\nBy default, you must explicitly name the indices you are opening or closing.\nTo open or close indices with `_all`, `*`, or other wildcard expressions, change the` action.destructive_requires_name` setting to `false`. This setting can also be changed with the cluster update settings API.\n\nClosed indices consume a significant amount of disk-space which can cause problems in managed environments.\nClosing indices can be turned off with the cluster settings API by setting `cluster.indices.close.enable` to `false`.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.close" }, "path": [ { "description": "Comma-separated list or wildcard expression of index names used to limit the request.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "indices/close/CloseIndexRequest.ts#L24-L101" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CloseIndexResult", "namespace": "indices.close" } } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "CloseIndexResponseExample1": { "description": "A successful response for closing an index.", "value": "{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"indices\": {\n \"my-index-000001\": {\n \"closed\": true\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.close" }, "specLocation": "indices/close/CloseIndexResponse.ts#L24-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Aliases for the index.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Mapping for fields in the index. If specified, this mapping can include:\n- Field names\n- Field data types\n- Mapping parameters", "docId": "mapping", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/mapping", "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "Configuration options for the index.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } } ] }, "description": "Create an index.\nYou can use the create index API to add a new index to an Elasticsearch cluster.\nWhen creating an index, you can specify the following:\n\n* Settings for the index.\n* Mappings for fields in the index.\n* Index aliases\n\n**Wait for active shards**\n\nBy default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out.\nThe index creation response will indicate what happened.\nFor example, `acknowledged` indicates whether the index was successfully created in the cluster, `while shards_acknowledged` indicates whether the requisite number of shard copies were started for each shard in the index before timing out.\nNote that it is still possible for either `acknowledged` or `shards_acknowledged` to be `false`, but for the index creation to be successful.\nThese values simply indicate whether the operation completed before the timeout.\nIf `acknowledged` is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon.\nIf `shards_acknowledged` is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, `acknowledged` is `true`).\n\nYou can change the default of only waiting for the primary shards to start through the index setting `index.write.wait_for_active_shards`.\nNote that changing this setting will also affect the `wait_for_active_shards` value on all subsequent write operations.", "examples": { "indicesCreateRequestExample1": { "description": "This request specifies the `number_of_shards` and `number_of_replicas`.", "summary": "Create an index.", "value": "{\n \"settings\": {\n \"number_of_shards\": 3,\n \"number_of_replicas\": 2\n }\n}" }, "indicesCreateRequestExample2": { "description": "You can provide mapping definitions in the create index API requests.", "summary": "Create an index with mappings.", "value": "{\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"properties\": {\n \"field1\": { \"type\": \"text\" }\n }\n }\n}" }, "indicesCreateRequestExample3": { "description": "You can provide mapping definitions in the create index API requests. Index alias names also support date math.\n", "summary": "Create an index with aliases.", "value": "{\n \"aliases\": {\n \"alias_1\": {},\n \"alias_2\": {\n \"filter\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"routing\": \"shard-1\"\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.create" }, "path": [ { "description": "Name of the index you wish to create.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "indices/create/IndicesCreateRequest.ts#L28-L108" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "indices.create" }, "specLocation": "indices/create/IndicesCreateResponse.ts#L22-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Create a data stream.\n\nYou must have a matching index template with data stream enabled.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.create_data_stream" }, "path": [ { "description": "Name of the data stream, which must meet the following criteria:\nLowercase only;\nCannot include `\\`, `/`, `*`, `?`, `\"`, `<`, `>`, `|`, `,`, `#`, `:`, or a space character;\nCannot start with `-`, `_`, `+`, or `.ds-`;\nCannot be `.` or `..`;\nCannot be longer than 255 bytes. Multi-byte characters count towards this limit faster.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/create_data_stream/IndicesCreateDataStreamRequest.ts#L24-L65" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.create_data_stream" }, "specLocation": "indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "CreateFrom", "namespace": "indices.create_from" }, "properties": [ { "description": "Mappings overrides to be applied to the destination index (optional)", "name": "mappings_override", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "Settings overrides to be applied to the destination index (optional)", "name": "settings_override", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "description": "If index blocks should be removed when creating destination index (optional)", "name": "remove_index_blocks", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L46-L60" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "create_from", "value": { "kind": "instance_of", "type": { "name": "CreateFrom", "namespace": "indices.create_from" } } }, "description": "Create an index from a source index.\n\nCopy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.create_from" }, "path": [ { "description": "The source index or data stream name", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The destination index or data stream name", "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "indices/create_from/MigrateCreateFromRequest.ts#L25-L44" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "indices.create_from" }, "specLocation": "indices/create_from/MigrateCreateFromResponse.ts#L22-L28" }, { "kind": "interface", "name": { "name": "DataStreamsStatsItem", "namespace": "indices.data_streams_stats" }, "properties": [ { "description": "Current number of backing indices for the data stream.", "name": "backing_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Name of the data stream.", "name": "data_stream", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The data stream’s highest `@timestamp` value, converted to milliseconds since the Unix epoch.\nNOTE: This timestamp is provided as a best effort.\nThe data stream may contain `@timestamp` values higher than this if one or more of the following conditions are met:\nThe stream contains closed backing indices;\nBacking indices with a lower generation contain higher `@timestamp` values.", "name": "maximum_timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Total size of all shards for the data stream’s backing indices.\nThis parameter is only returned if the `human` query parameter is `true`.", "name": "store_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total size, in bytes, of all shards for the data stream’s backing indices.", "name": "store_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data stream stats.\n\nGet statistics for one or more data streams.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.data_streams_stats" }, "path": [ { "description": "Comma-separated list of data streams used to limit the request.\nWildcard expressions (`*`) are supported.\nTo target all data streams in a cluster, omit this parameter or use `*`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "Type of data stream that wildcard patterns can match.\nSupports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } } ], "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Contains information about shards that attempted to execute the request.", "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "description": "Total number of backing indices for the selected data streams.", "name": "backing_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of selected data streams.", "name": "data_stream_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Contains statistics for the selected data streams.", "name": "data_streams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStreamsStatsItem", "namespace": "indices.data_streams_stats" } } } }, { "description": "Total size of all shards for the selected data streams.\nThis property is included only if the `human` query parameter is `true`", "name": "total_store_sizes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total size, in bytes, of all shards for the selected data streams.", "name": "total_store_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "examples": { "indicesDataStreamStatsResponseExample1": { "description": "A successful response for retrieving statistics for a data stream.", "value": "{\n \"_shards\": {\n \"total\": 10,\n \"successful\": 5,\n \"failed\": 0\n },\n \"data_stream_count\": 2,\n \"backing_indices\": 5,\n \"total_store_size\": \"7kb\",\n \"total_store_size_bytes\": 7268,\n \"data_streams\": [\n {\n \"data_stream\": \"my-data-stream\",\n \"backing_indices\": 3,\n \"store_size\": \"3.7kb\",\n \"store_size_bytes\": 3772,\n \"maximum_timestamp\": 1607512028000\n },\n {\n \"data_stream\": \"my-data-stream-two\",\n \"backing_indices\": 2,\n \"store_size\": \"3.4kb\",\n \"store_size_bytes\": 3496,\n \"maximum_timestamp\": 1607425567000\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.data_streams_stats" }, "specLocation": "indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete indices.\nDeleting an index deletes its documents, shards, and metadata.\nIt does not delete related Kibana components, such as data views, visualizations, or dashboards.\n\nYou cannot delete the current write index of a data stream.\nTo delete the index, you must roll over the data stream so a new write index is created.\nYou can then use the delete index API to delete the previous write index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.delete" }, "path": [ { "description": "Comma-separated list of indices to delete.\nYou cannot specify index aliases.\nBy default, this parameter does not support wildcards (`*`) or `_all`.\nTo use wildcards or `_all`, set the `action.destructive_requires_name` cluster setting to `false`.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/delete/IndicesDeleteRequest.ts#L24-L87" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "IndicesResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.delete" }, "specLocation": "indices/delete/IndicesDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an alias.\nRemoves a data stream or index from an alias.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.delete_alias" }, "path": [ { "description": "Comma-separated list of data streams or indices used to limit the request.\nSupports wildcards (`*`).", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Comma-separated list of aliases to remove.\nSupports wildcards (`*`). To remove all aliases, use `*` or `_all`.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/delete_alias/IndicesDeleteAliasRequest.ts#L24-L70" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.delete_alias" }, "specLocation": "indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete data stream lifecycles.\nRemoves the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.delete_data_lifecycle" }, "path": [ { "description": "A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamNames", "namespace": "_types" } } } ], "query": [ { "description": "Whether wildcard expressions should get expanded to open or closed indices (default: open)", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Specify timeout for connection to master", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Explicit timestamp for the document", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts#L24-L47" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "IndicesDeleteDataLifecycleResponseExample1": { "description": "A successful response for deleting a data stream lifecycle.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "indices.delete_data_lifecycle" }, "specLocation": "indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete data streams.\nDeletes one or more data streams and their backing indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.delete_data_stream" }, "path": [ { "description": "Comma-separated list of data streams to delete. Wildcard (`*`) expressions are supported.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamNames", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Type of data stream that wildcard patterns can match. Supports comma-separated values,such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } } ], "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.delete_data_stream" }, "specLocation": "indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an index template.\nThe provided may contain multiple template names separated by a comma. If multiple template\nnames are specified then there is no wildcard support and the provided names should match completely with\nexisting templates.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.delete_index_template" }, "path": [ { "description": "Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/delete_index_template/IndicesDeleteIndexTemplateRequest.ts#L24-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.delete_index_template" }, "specLocation": "indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a legacy index template.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.delete_template" }, "path": [ { "description": "The name of the legacy index template to delete.\nWildcard (`*`) expressions are supported.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/delete_template/IndicesDeleteTemplateRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.delete_template" }, "specLocation": "indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Analyze the index disk usage.\nAnalyze the disk usage of each field of an index or data stream.\nThis API might not support indices created in previous Elasticsearch versions.\nThe result of a small index can be inaccurate as some parts of an index might not be analyzed by the API.\n\nNOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index `store_size` value because some small metadata files are ignored and some parts of data files might not be scanned by the API.\nSince stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate.\nThe stored size of the `_id` field is likely underestimated while the `_source` field is overestimated.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.disk_usage" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nIt’s recommended to execute this API with a single index (or the latest backing index of a data stream) as the API consumes resources significantly.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, the API performs a flush before analysis.\nIf `false`, the response may not include uncommitted data.", "name": "flush", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Analyzing field disk usage is resource-intensive.\nTo use the API, this parameter must be set to `true`.", "name": "run_expensive_tasks", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/disk_usage/IndicesDiskUsageRequest.ts#L23-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "disk_usage", "value": { "kind": "user_defined_value" } }, "name": { "name": "Response", "namespace": "indices.disk_usage" }, "specLocation": "indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "config", "value": { "kind": "instance_of", "type": { "name": "DownsampleConfig", "namespace": "indices._types" } } }, "description": "Downsample an index.\nAggregate a time series (TSDS) index and store pre-computed statistical summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric field grouped by a configured time interval.\nFor example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.\nAll documents within an hour interval are summarized and stored as a single document in the downsample index.\n\nNOTE: Only indices in a time series data stream are supported.\nNeither field nor document level security can be defined on the source index.\nThe source index must be read only (`index.blocks.write: true`).", "examples": { "DownsampleRequestExample1": { "value": "{\n \"fixed_interval\": \"1d\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.downsample" }, "path": [ { "description": "Name of the time series index to downsample.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Name of the index to create.", "name": "target_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "indices/downsample/Request.ts#L24-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "user_defined_value" } }, "name": { "name": "Response", "namespace": "indices.downsample" }, "specLocation": "indices/downsample/Response.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check indices.\nCheck if one or more indices, index aliases, or data streams exist.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.exists" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`).", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, return all default settings in the response.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request retrieves information from the local node only.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/exists/IndicesExistsRequest.ts#L23-L80" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "indices.exists" }, "specLocation": "indices/exists/IndicesExistsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check aliases.\n\nCheck if one or more data stream or index aliases exist.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.exists_alias" }, "path": [ { "description": "Comma-separated list of aliases to check. Supports wildcards (`*`).", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Comma-separated list of data streams or indices used to limit the request. Supports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, requests that include a missing data stream or index in the target indices or data streams return an error.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/exists_alias/IndicesExistsAliasRequest.ts#L24-L82" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "indices.exists_alias" }, "specLocation": "indices/exists_alias/IndicesExistsAliasResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check index templates.\n\nCheck whether index templates exist.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.exists_index_template" }, "path": [ { "description": "Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "indices.exists_index_template" }, "specLocation": "indices/exists_index_template/IndicesExistsIndexTemplateResponse.ts#L22-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Check existence of index templates.\nGet information about whether index templates exist.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.exists_template" }, "path": [ { "description": "A comma-separated list of index template names used to limit the request.\nWildcard (`*`) expressions are supported.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "Indicates whether to use a flat format for the response.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether to get information from the local node only.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/exists_template/IndicesExistsTemplateRequest.ts#L24-L69" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "indices.exists_template" }, "specLocation": "indices/exists_template/IndicesExistsTemplateResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "DataStreamLifecycleExplain", "namespace": "indices.explain_data_lifecycle" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "managed_by_lifecycle", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index_creation_date_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "time_since_index_creation", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "rollover_date_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "time_since_rollover", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" } } }, { "name": "generation_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the status for a data stream lifecycle.\nGet information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.explain_data_lifecycle" }, "path": [ { "description": "The name of the index to explain", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "indicates if the API should return the default values the system uses for the index's lifecycle", "name": "include_defaults", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify timeout for connection to master", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleRequest.ts#L24-L47" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleExplain", "namespace": "indices.explain_data_lifecycle" } } } } ] }, "examples": { "IndicesExplainDataLifecycleResponseExample1": { "description": "A successful response from `GET .ds-metrics-2023.03.22-000001/_lifecycle/explain`, which retrieves the lifecycle status for a data stream backing index. If the index is managed by a data stream lifecycle, the API will show the `managed_by_lifecycle` field set to `true` and the rest of the response will contain information about the lifecycle execution status for this index.\n", "summary": "Successful response", "value": "{\n \"indices\": {\n \".ds-metrics-2023.03.22-000001\": {\n \"index\" : \".ds-metrics-2023.03.22-000001\",\n \"managed_by_lifecycle\" : true,\n \"index_creation_date_millis\" : 1679475563571,\n \"time_since_index_creation\" : \"843ms\",\n \"rollover_date_millis\" : 1679475564293,\n \"time_since_rollover\" : \"121ms\",\n \"lifecycle\" : { },\n \"generation_time\" : \"121ms\"\n }\n}" }, "IndicesExplainDataLifecycleResponseExample2": { "description": "The API reports any errors related to the lifecycle execution for the target index.", "summary": "Successful response with error messages", "value": "{\n \"indices\": {\n \".ds-metrics-2023.03.22-000001\": {\n \"index\" : \".ds-metrics-2023.03.22-000001\",\n \"managed_by_lifecycle\" : true,\n \"index_creation_date_millis\" : 1679475563571,\n \"time_since_index_creation\" : \"843ms\",\n \"lifecycle\" : {\n \"enabled\": true\n },\n \"error\": \"{\\\"type\\\":\\\"validation_exception\\\",\\\"reason\\\":\\\"Validation Failed: 1: this action would add [2] shards, but this cluster\ncurrently has [4]/[3] maximum normal shards open;\\\"}\"\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.explain_data_lifecycle" }, "specLocation": "indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29" }, { "kind": "interface", "name": { "name": "FieldSummary", "namespace": "indices.field_usage_stats" }, "properties": [ { "name": "any", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "stored_fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "doc_values", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "points", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "norms", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "term_vectors", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "knn_vectors", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "inverted_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "InvertedIndex", "namespace": "indices.field_usage_stats" } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L58-L67" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "UsageStatsIndex", "namespace": "indices.field_usage_stats" } } ], "meta": { "description": "Per index statistics", "fieldname": "stats" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "name": { "name": "FieldsUsageBody", "namespace": "indices.field_usage_stats" }, "properties": [ { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L33-L40" }, { "kind": "interface", "name": { "name": "InvertedIndex", "namespace": "indices.field_usage_stats" }, "properties": [ { "name": "terms", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "postings", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "proximity", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "positions", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "term_frequencies", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "offsets", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "payloads", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L69-L77" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get field usage stats.\nGet field usage information for each shard and field of an index.\nField usage statistics are automatically captured when queries are running on a cluster.\nA shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use.\n\nThe response body reports the per-shard usage count of the data structures that back the fields in the index.\nA given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.field_usage_stats" }, "path": [ { "description": "Comma-separated list or wildcard expression of index names used to limit the request.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Comma-separated list or wildcard expressions of fields to include in the statistics.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L23-L73" }, { "kind": "response", "body": { "kind": "value", "codegenName": "stats", "value": { "kind": "instance_of", "type": { "name": "FieldsUsageBody", "namespace": "indices.field_usage_stats" } } }, "examples": { "indicesFieldUsageStatsResponseExample1": { "description": "An abbreviated response from `GET /my-index-000001/_field_usage_stats`. The `all_fields` object reports the sums of the usage counts for all fields in the index (on the listed shard).\n", "value": "{\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"my-index-000001\": {\n \"shards\": [\n {\n \"tracking_id\": \"MpOl0QlTQ4SYYhEe6KgJoQ\",\n \"tracking_started_at_millis\": 1625558985010,\n \"routing\": {\n \"state\": \"STARTED\",\n \"primary\": true,\n \"node\": \"gA6KeeVzQkGURFCUyV-e8Q\",\n \"relocating_node\": null\n },\n \"stats\": {\n \"all_fields\": {\n \"any\": \"6\",\n \"inverted_index\": {\n \"terms\": 1,\n \"postings\": 1,\n \"proximity\": 1,\n \"positions\": 0,\n \"term_frequencies\": 1,\n \"offsets\": 0,\n \"payloads\": 0\n },\n \"stored_fields\": 2,\n \"doc_values\": 1,\n \"points\": 0,\n \"norms\": 1,\n \"term_vectors\": 0,\n \"knn_vectors\": 0\n },\n \"fields\": {\n \"_id\": {\n \"any\": 1,\n \"inverted_index\": {\n \"terms\": 1,\n \"postings\": 1,\n \"proximity\": 1,\n \"positions\": 0,\n \"term_frequencies\": 1,\n \"offsets\": 0,\n \"payloads\": 0\n },\n \"stored_fields\": 1,\n \"doc_values\": 0,\n \"points\": 0,\n \"norms\": 0,\n \"term_vectors\": 0,\n \"knn_vectors\": 0\n },\n \"_source\": {},\n \"context\": {},\n \"message.keyword\": {}\n }\n }\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.field_usage_stats" }, "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L31" }, { "kind": "interface", "name": { "name": "ShardsStats", "namespace": "indices.field_usage_stats" }, "properties": [ { "name": "all_fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldSummary", "namespace": "indices.field_usage_stats" } } }, { "name": "fields", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldSummary", "namespace": "indices.field_usage_stats" } } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L53-L56" }, { "kind": "interface", "name": { "name": "UsageStatsIndex", "namespace": "indices.field_usage_stats" }, "properties": [ { "name": "shards", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UsageStatsShards", "namespace": "indices.field_usage_stats" } } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L44" }, { "kind": "interface", "name": { "name": "UsageStatsShards", "namespace": "indices.field_usage_stats" }, "properties": [ { "name": "routing", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardRouting", "namespace": "indices.stats" } } }, { "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStats", "namespace": "indices.field_usage_stats" } } }, { "name": "tracking_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tracking_started_at_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L46-L51" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Flush data streams or indices.\nFlushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index.\nWhen restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart.\nElasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush.\n\nAfter each operation has been flushed it is permanently stored in the Lucene index.\nThis may mean that there is no need to maintain an additional copy of it in the transaction log.\nThe transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space.\n\nIt is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly.\nIf you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.flush" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases to flush.\nSupports wildcards (`*`).\nTo flush all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, the request forces a flush even if there are no changes to commit to the index.", "name": "force", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the flush operation blocks until execution when another flush operation is running.\nIf `false`, Elasticsearch returns an error if you request a flush when another flush operation is running.", "name": "wait_if_ongoing", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/flush/IndicesFlushRequest.ts#L23-L92" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "ShardsOperationResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.flush" }, "specLocation": "indices/flush/IndicesFlushResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Force a merge.\nPerform the force merge operation on the shards of one or more indices.\nFor data streams, the API forces a merge on the shards of the stream's backing indices.\n\nMerging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents.\nMerging normally happens automatically, but sometimes it is useful to trigger a merge manually.\n\nWARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes).\nWhen documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a \"tombstone\".\nThese soft-deleted documents are automatically cleaned up during regular segment merges.\nBut force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges.\nSo the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance.\nIf you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally.\n\n**Blocks during a force merge**\n\nCalls to this API block until the merge is complete (unless request contains `wait_for_completion=false`).\nIf the client connection is lost before completion then the force merge process will continue in the background.\nAny new requests to force merge the same indices will also block until the ongoing force merge is complete.\n\n**Running force merge asynchronously**\n\nIf the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task.\nHowever, you can not cancel this task as the force merge task is not cancelable.\nElasticsearch creates a record of this task as a document at `_tasks/`.\nWhen you are done with a task, you should delete the task document so Elasticsearch can reclaim the space.\n\n**Force merging multiple indices**\n\nYou can force merge multiple indices with a single request by targeting:\n\n* One or more data streams that contain multiple backing indices\n* Multiple indices\n* One or more aliases\n* All data streams and indices in a cluster\n\nEach targeted shard is force-merged separately using the force_merge threadpool.\nBy default each node only has a single `force_merge` thread which means that the shards on that node are force-merged one at a time.\nIf you expand the `force_merge` threadpool on a node then it will force merge its shards in parallel\n\nForce merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case `max_num_segments parameter` is set to `1`, to rewrite all segments into a new one.\n\n**Data streams and time-based indices**\n\nForce-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover.\nIn these cases, each index only receives indexing traffic for a certain period of time.\nOnce an index receive no more writes, its shards can be force-merged to a single segment.\nThis can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches.\nFor example:\n\n```\nPOST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1\n```", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.forcemerge" }, "path": [ { "description": "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Specify whether the index should be flushed after performing the operation (default: true)", "name": "flush", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", "name": "ignore_unavailable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of segments the index should be merged into (default: dynamic)", "name": "max_num_segments", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Specify whether the operation should only expunge deleted documents", "name": "only_expunge_deletes", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Should the request wait until the force merge is completed.", "name": "wait_for_completion", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/forcemerge/IndicesForceMergeRequest.ts#L24-L108" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "ForceMergeResponseBody", "namespace": "indices.forcemerge._types" } } }, "name": { "name": "Response", "namespace": "indices.forcemerge" }, "specLocation": "indices/forcemerge/IndicesForceMergeResponse.ts#L22-L25" }, { "kind": "interface", "inherits": { "type": { "name": "ShardsOperationResponseBase", "namespace": "_types" } }, "name": { "name": "ForceMergeResponseBody", "namespace": "indices.forcemerge._types" }, "properties": [ { "description": "task contains a task id returned when wait_for_completion=false,\nyou can use the task_id to get the status of the task at _tasks/", "name": "task", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/forcemerge/_types/response.ts#L22-L28" }, { "kind": "enum", "members": [ { "name": "aliases" }, { "name": "mappings" }, { "name": "settings" } ], "name": { "name": "Feature", "namespace": "indices.get" }, "specLocation": "indices/get/IndicesGetRequest.ts#L98-L102" }, { "kind": "type_alias", "name": { "name": "Features", "namespace": "indices.get" }, "specLocation": "indices/get/IndicesGetRequest.ts#L103-L103", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Feature", "namespace": "indices.get" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "indices.get" } } } ] } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index information.\nGet information about one or more indices. For data streams, the API returns information about the\nstream’s backing indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get" }, "path": [ { "description": "Comma-separated list of data streams, indices, and index aliases used to limit the request.\nWildcard expressions (*) are supported.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or _all value targets only\nmissing or closed indices. This behavior applies even if the request targets other open indices. For example,\na request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard expressions can match. If the request can target data streams, this argument\ndetermines whether wildcard expressions match hidden data streams. Supports comma-separated values,\nsuch as open,hidden.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If true, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If false, requests that target a missing index return an error.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, return all default settings in the response.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.1.0" } }, "description": "Return only information on specified index features", "name": "features", "required": false, "serverDefault": "['aliases', 'mappings', 'settings']", "type": { "kind": "instance_of", "type": { "name": "Features", "namespace": "indices.get" } } } ], "specLocation": "indices/get/IndicesGetRequest.ts#L24-L96" }, { "kind": "response", "body": { "kind": "value", "codegenName": "indices", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexState", "namespace": "indices._types" } } } }, "name": { "name": "Response", "namespace": "indices.get" }, "specLocation": "indices/get/IndicesGetResponse.ts#L24-L27" }, { "kind": "interface", "name": { "name": "IndexAliases", "namespace": "indices.get_alias" }, "properties": [ { "name": "aliases", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AliasDefinition", "namespace": "indices._types" } } } } ], "specLocation": "indices/get_alias/IndicesGetAliasResponse.ts#L37-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get aliases.\nRetrieves information for one or more data stream or index aliases.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_alias" }, "path": [ { "description": "Comma-separated list of aliases to retrieve.\nSupports wildcards (`*`).\nTo retrieve all aliases, omit this parameter or use `*` or `_all`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "Comma-separated list of data streams or indices used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/get_alias/IndicesGetAliasRequest.ts#L24-L93" }, { "kind": "response", "body": { "kind": "value", "codegenName": "aliases", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexAliases", "namespace": "indices.get_alias" } } } }, "exceptions": [ { "body": { "kind": "value", "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "NotFoundAliases", "namespace": "indices.get_alias" } }, { "kind": "instance_of", "type": { "name": "ErrorResponseBase", "namespace": "_types" } } ] } }, "statusCodes": [ 404 ] } ], "name": { "name": "Response", "namespace": "indices.get_alias" }, "specLocation": "indices/get_alias/IndicesGetAliasResponse.ts#L26-L35" }, { "kind": "interface", "name": { "name": "DataStreamWithLifecycle", "namespace": "indices.get_data_lifecycle" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } }, { "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleWithRollover", "namespace": "indices._types" } } } ], "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data stream lifecycles.\n\nGet the data stream lifecycle configuration of one or more data streams.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_data_lifecycle" }, "path": [ { "description": "Comma-separated list of data streams to limit the request.\nSupports wildcards (`*`).\nTo target all data streams, omit this parameter or use `*` or `_all`.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamNames", "namespace": "_types" } } } ], "query": [ { "description": "Type of data stream that wildcard patterns can match.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, return all default settings in the response.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleRequest.ts#L24-L68" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "data_streams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStreamWithLifecycle", "namespace": "indices.get_data_lifecycle" } } } } ] }, "examples": { "IndicesGetDataLifecycleResponseExample1": { "description": "A successful response from `GET _lifecycle/stats?human&pretty`.", "value": "{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream-1\",\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\"\n }\n },\n {\n \"name\": \"my-data-stream-2\",\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\"\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.get_data_lifecycle" }, "specLocation": "indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25" }, { "kind": "interface", "name": { "name": "DataStreamStats", "namespace": "indices.get_data_lifecycle_stats" }, "properties": [ { "description": "The count of the backing indices for the data stream.", "name": "backing_indices_in_error", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The count of the backing indices for the data stream that have encountered an error.", "name": "backing_indices_in_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The name of the data stream.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } } ], "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data stream lifecycle stats.\nGet statistics about the data streams that are managed by a data stream lifecycle.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_data_lifecycle_stats" }, "path": [], "query": [], "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsRequest.ts#L22-L38" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The count of data streams currently being managed by the data stream lifecycle.", "name": "data_stream_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Information about the data streams that are managed by the data stream lifecycle.", "name": "data_streams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStreamStats", "namespace": "indices.get_data_lifecycle_stats" } } } }, { "description": "The duration of the last data stream lifecycle execution.", "name": "last_run_duration_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The time that passed between the start of the last two data stream lifecycle executions.\nThis value should amount approximately to `data_streams.lifecycle.poll_interval`.", "name": "time_between_starts_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ] }, "examples": { "IndicesGetDataLifecycleStatsResponseExample1": { "description": "A successful response for `GET _lifecycle/stats?human&pretty`", "value": "{\n \"last_run_duration_in_millis\": 2,\n \"last_run_duration\": \"2ms\",\n \"time_between_starts_in_millis\": 9998,\n \"time_between_starts\": \"9.99s\",\n \"data_streams_count\": 2,\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \"backing_indices_in_total\": 2,\n \"backing_indices_in_error\": 0\n },\n {\n \"name\": \"my-other-stream\",\n \"backing_indices_in_total\": 2,\n \"backing_indices_in_error\": 1\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.get_data_lifecycle_stats" }, "specLocation": "indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L24-L44" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data streams.\n\nGet information about one or more data streams.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_data_stream" }, "path": [ { "description": "Comma-separated list of data stream names used to limit the request.\nWildcard (`*`) expressions are supported. If omitted, all data streams are returned.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamNames", "namespace": "_types" } } } ], "query": [ { "description": "Type of data stream that wildcard patterns can match.\nSupports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "If true, returns all relevant default configurations for the index template.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Whether the maximum timestamp for each data stream should be calculated and returned.", "name": "verbose", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L78" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "data_streams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataStream", "namespace": "indices._types" } } } } ] }, "examples": { "indicesGetDataStreamResponseExample1": { "description": "A successful response for retrieving information about a data stream.", "value": "{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-my-data-stream-2099.03.07-000001\",\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n },\n {\n \"index_name\": \".ds-my-data-stream-2099.03.08-000002\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8DJ5gw\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n }\n ],\n \"generation\": 2,\n \"_meta\": {\n \"my-meta-field\": \"foo\"\n },\n \"status\": \"GREEN\",\n \"next_generation_managed_by\": \"Index Lifecycle Management\",\n \"prefer_ilm\": true,\n \"template\": \"my-index-template\",\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"hidden\": false,\n \"system\": false,\n \"allow_custom_routing\": false,\n \"replicated\": false,\n \"rollover_on_write\": false\n },\n {\n \"name\": \"my-data-stream-two\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-my-data-stream-two-2099.03.08-000001\",\n \"index_uuid\": \"3liBu2SYS5axasRt6fUIpA\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n }\n ],\n \"generation\": 1,\n \"_meta\": {\n \"my-meta-field\": \"foo\"\n },\n \"status\": \"YELLOW\",\n \"next_generation_managed_by\": \"Index Lifecycle Management\",\n \"prefer_ilm\": true,\n \"template\": \"my-index-template\",\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"hidden\": false,\n \"system\": false,\n \"allow_custom_routing\": false,\n \"replicated\": false,\n \"rollover_on_write\": false\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.get_data_stream" }, "specLocation": "indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get mapping definitions.\nRetrieves mapping definitions for one or more fields.\nFor data streams, the API retrieves field mappings for the stream’s backing indices.\n\nThis API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_field_mapping" }, "path": [ { "description": "Comma-separated list or wildcard expression of fields used to limit returned information.\nSupports wildcards (`*`).", "name": "fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, return all default settings in the response.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/get_field_mapping/IndicesGetFieldMappingRequest.ts#L23-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "field_mappings", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TypeFieldMappings", "namespace": "indices.get_field_mapping" } } } }, "examples": { "indicesGetFieldMappingResponseExample1": { "description": "A sucessful response from `GET publications/_mapping/field/title`, which returns the mapping of a field called `title`.\n", "summary": "A single field mapping", "value": "{\n \"publications\": {\n \"mappings\": {\n \"title\": {\n \"full_name\": \"title\",\n \"mapping\": {\n \"title\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}" }, "indicesGetFieldMappingResponseExample2": { "description": "A successful response from `GET publications/_mapping/field/author.id,abstract,name`. The get field mapping API also supports wildcard notation.\n", "summary": "Multiple field mappings", "value": "{\n \"publications\": {\n \"mappings\": {\n \"author.id\": {\n \"full_name\": \"author.id\",\n \"mapping\": {\n \"id\": {\n \"type\": \"text\"\n }\n }\n },\n \"abstract\": {\n \"full_name\": \"abstract\",\n \"mapping\": {\n \"abstract\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}" }, "indicesGetFieldMappingResponseExample3": { "description": "A successful response from `GET publications/_mapping/field/a*`.\n", "summary": "Wildcards", "value": "{\n \"publications\": {\n \"mappings\": {\n \"author.name\": {\n \"full_name\": \"author.name\",\n \"mapping\": {\n \"name\": {\n \"type\": \"text\"\n }\n }\n },\n \"abstract\": {\n \"full_name\": \"abstract\",\n \"mapping\": {\n \"abstract\": {\n \"type\": \"text\"\n }\n }\n },\n \"author.id\": {\n \"full_name\": \"author.id\",\n \"mapping\": {\n \"id\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.get_field_mapping" }, "specLocation": "indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27" }, { "kind": "interface", "name": { "name": "TypeFieldMappings", "namespace": "indices.get_field_mapping" }, "properties": [ { "name": "mappings", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldMapping", "namespace": "_types.mapping" } } } } ], "specLocation": "indices/get_field_mapping/types.ts#L24-L26" }, { "kind": "interface", "name": { "name": "IndexTemplateItem", "namespace": "indices.get_index_template" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "index_template", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexTemplate", "namespace": "indices._types" } } } ], "specLocation": "indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index templates.\nGet information about one or more index templates.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_index_template" }, "path": [ { "description": "Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "If true, returns all relevant default configurations for the index template.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/get_index_template/IndicesGetIndexTemplateRequest.ts#L24-L72" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "index_templates", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexTemplateItem", "namespace": "indices.get_index_template" } } } } ] }, "name": { "name": "Response", "namespace": "indices.get_index_template" }, "specLocation": "indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27" }, { "kind": "interface", "name": { "name": "IndexMappingRecord", "namespace": "indices.get_mapping" }, "properties": [ { "name": "item", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } } ], "specLocation": "indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get mapping definitions.\nFor data streams, the API retrieves mappings for the stream’s backing indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_mapping" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "deprecation": { "description": "This parameter is a no-op and field mappings are always retrieved locally.", "version": "7.8.0" }, "description": "If `true`, the request retrieves information from the local node only.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/get_mapping/IndicesGetMappingRequest.ts#L24-L85" }, { "kind": "response", "body": { "kind": "value", "codegenName": "mappings", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexMappingRecord", "namespace": "indices.get_mapping" } } } }, "name": { "name": "Response", "namespace": "indices.get_mapping" }, "specLocation": "indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the migration reindexing status.\n\nGet the status of a migration reindex attempt for a data stream or index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_migrate_reindex_status" }, "path": [ { "description": "The index or data stream name.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [], "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusRequest.ts#L23-L38" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "start_time_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "complete", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "total_indices_in_data_stream", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_indices_requiring_upgrade", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "successes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "in_progress", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "StatusInProgress", "namespace": "indices.get_migrate_reindex_status" } } } }, { "name": "pending", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "errors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "StatusError", "namespace": "indices.get_migrate_reindex_status" } } } }, { "name": "exception", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "indices.get_migrate_reindex_status" }, "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36" }, { "kind": "interface", "name": { "name": "StatusError", "namespace": "indices.get_migrate_reindex_status" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47" }, { "kind": "interface", "name": { "name": "StatusInProgress", "namespace": "indices.get_migrate_reindex_status" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "reindexed_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index settings.\nGet setting information for one or more indices.\nFor data streams, it returns setting information for the stream's backing indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_settings" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit\nthe request. Supports wildcards (`*`). To target all data streams and\nindices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Comma-separated list or wildcard expression of settings to retrieve.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index\nalias, or `_all` value targets only missing or closed indices. This\nbehavior applies even if the request targets other open indices. For\nexample, a request targeting `foo*,bar*` returns an error if an index\nstarts with foo but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, return all default settings in the response.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request retrieves information from the local node only. If\n`false`, information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an\nerror.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/get_settings/IndicesGetSettingsRequest.ts#L24-L111" }, { "kind": "response", "body": { "kind": "value", "codegenName": "settings", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexState", "namespace": "indices._types" } } } }, "name": { "name": "Response", "namespace": "indices.get_settings" }, "specLocation": "indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index templates.\nGet information about one or more index templates.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.get_template" }, "path": [ { "description": "Comma-separated list of index template names used to limit the request.\nWildcard (`*`) expressions are supported.\nTo return all index templates, omit this parameter or use a value of `_all` or `*`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request retrieves information from the local node only.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/get_template/IndicesGetTemplateRequest.ts#L24-L72" }, { "kind": "response", "body": { "kind": "value", "codegenName": "templates", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TemplateMapping", "namespace": "indices._types" } } } }, "name": { "name": "Response", "namespace": "indices.get_template" }, "specLocation": "indices/get_template/IndicesGetTemplateResponse.ts#L23-L26" }, { "kind": "interface", "name": { "name": "MigrateReindex", "namespace": "indices.migrate_reindex" }, "properties": [ { "description": "Reindex mode. Currently only 'upgrade' is supported.", "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "ModeEnum", "namespace": "indices.migrate_reindex" } } }, { "description": "The source index or data stream (only data streams are currently supported).", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "SourceIndex", "namespace": "indices.migrate_reindex" } } } ], "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48" }, { "kind": "enum", "members": [ { "name": "upgrade" } ], "name": { "name": "ModeEnum", "namespace": "indices.migrate_reindex" }, "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "reindex", "value": { "kind": "instance_of", "type": { "name": "MigrateReindex", "namespace": "indices.migrate_reindex" } } }, "description": "Reindex legacy backing indices.\n\nReindex all legacy backing indices for a data stream.\nThis operation occurs in a persistent task.\nThe persistent task ID is returned immediately and the reindexing work is completed in that task.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.migrate_reindex" }, "path": [], "query": [], "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.migrate_reindex" }, "specLocation": "indices/migrate_reindex/MigrateReindexResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "SourceIndex", "namespace": "indices.migrate_reindex" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Convert an index alias to a data stream.\nConverts an index alias to a data stream.\nYou must have a matching index template that is data stream enabled.\nThe alias must meet the following criteria:\nThe alias must have a write index;\nAll indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type;\nThe alias must not have any filters;\nThe alias must not use custom routing.\nIf successful, the request removes the alias and creates a data stream with the same name.\nThe indices for the alias become hidden backing indices for the stream.\nThe write index for the alias becomes the write index for the stream.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.migrate_to_data_stream" }, "path": [ { "description": "Name of the index alias to convert to a data stream.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamRequest.ts#L24-L66" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.migrate_to_data_stream" }, "specLocation": "indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "Action", "namespace": "indices.modify_data_stream" }, "properties": [ { "description": "Adds an existing index as a backing index for a data stream.\nThe index is hidden as part of this operation.\nWARNING: Adding indices with the `add_backing_index` action can potentially result in improper data stream behavior.\nThis should be considered an expert level API.", "name": "add_backing_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexAndDataStreamAction", "namespace": "indices.modify_data_stream" } } }, { "description": "Removes a backing index from a data stream.\nThe index is unhidden as part of this operation.\nA data stream’s write index cannot be removed.", "name": "remove_backing_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexAndDataStreamAction", "namespace": "indices.modify_data_stream" } } } ], "specLocation": "indices/modify_data_stream/types.ts#L22-L37", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "IndexAndDataStreamAction", "namespace": "indices.modify_data_stream" }, "properties": [ { "description": "Data stream targeted by the action.", "name": "data_stream", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } }, { "description": "Index for the action.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "indices/modify_data_stream/types.ts#L39-L44" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Actions to perform.", "name": "actions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Action", "namespace": "indices.modify_data_stream" } } } } ] }, "description": "Update data streams.\nPerforms one or more data stream modification actions in a single atomic operation.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.modify_data_stream" }, "path": [], "query": [], "specLocation": "indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.modify_data_stream" }, "specLocation": "indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Open a closed index.\nFor data streams, the API opens any closed backing indices.\n\nA closed index is blocked for read/write operations and does not allow all operations that opened indices allow.\nIt is not possible to index documents or to search for documents in a closed index.\nThis allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster.\n\nWhen opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index.\nThe shards will then go through the normal recovery process.\nThe data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times.\n\nYou can open and close multiple indices.\nAn error is thrown if the request explicitly refers to a missing index.\nThis behavior can be turned off by using the `ignore_unavailable=true` parameter.\n\nBy default, you must explicitly name the indices you are opening or closing.\nTo open or close indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`.\nThis setting can also be changed with the cluster update settings API.\n\nClosed indices consume a significant amount of disk-space which can cause problems in managed environments.\nClosing indices can be turned off with the cluster settings API by setting `cluster.indices.close.enable` to `false`.\n\nBecause opening or closing an index allocates its shards, the `wait_for_active_shards` setting on index creation applies to the `_open` and `_close` index actions as well.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.open" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nBy default, you must explicitly name the indices you using to limit the request.\nTo limit a request using `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to false.\nYou can update this setting in the `elasticsearch.yml` file or using the cluster update settings API.", "docId": "cluster-update-settings", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "indices/open/IndicesOpenRequest.ts#L24-L111" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "indicesOpenResponseExample1": { "description": "A successful response for opening an index.", "value": "{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "indices.open" }, "specLocation": "indices/open/IndicesOpenResponse.ts#L20-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Promote a data stream.\nPromote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream.\n\nWith CCR auto following, a data stream from a remote cluster can be replicated to the local cluster.\nThese data streams can't be rolled over in the local cluster.\nThese replicated data streams roll over only if the upstream data stream rolls over.\nIn the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster.\n\nNOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream.\nIf this is missing, the data stream will not be able to roll over until a matching index template is created.\nThis will affect the lifecycle management of the data stream and interfere with the data stream size and retention.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.promote_data_stream" }, "path": [ { "description": "The name of the data stream", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "user_defined_value" } }, "name": { "name": "Response", "namespace": "indices.promote_data_stream" }, "specLocation": "indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Query used to limit documents the alias can access.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Value used to route indexing operations to a specific shard.\nIf specified, this overwrites the `routing` value for indexing operations.\nData stream aliases don’t support this parameter.", "name": "index_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `true`, sets the write index or data stream for the alias.\nIf an alias points to multiple indices or data streams and `is_write_index` isn’t set, the alias rejects write requests.\nIf an index alias points to one index and `is_write_index` isn’t set, the index automatically acts as the write index.\nData stream aliases don’t automatically set a write data stream, even if the alias points to one data stream.", "name": "is_write_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Value used to route indexing and search operations to a specific shard.\nData stream aliases don’t support this parameter.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Value used to route search operations to a specific shard.\nIf specified, this overwrites the `routing` value for search operations.\nData stream aliases don’t support this parameter.", "name": "search_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } } ] }, "description": "Create or update an alias.\nAdds a data stream or index to an alias.", "examples": { "indicesPutAliasRequestExample1": { "value": "{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"my-data-stream\",\n \"alias\": \"my-alias\"\n }\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.put_alias" }, "path": [ { "description": "Comma-separated list of data streams or indices to add.\nSupports wildcards (`*`).\nWildcard patterns that match both data streams and indices return an error.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Alias to update.\nIf the alias doesn’t exist, the request creates it.\nIndex alias names support date math.", "docId": "api-date-math-index-names", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#api-date-math-index-names", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/put_alias/IndicesPutAliasRequest.ts#L25-L103" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.put_alias" }, "specLocation": "indices/put_alias/IndicesPutAliasResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", "name": "data_retention", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The downsampling configuration to execute for the managed backing index after rollover.", "name": "downsampling", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycleDownsampling", "namespace": "indices._types" } } }, { "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", "name": "enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Update data stream lifecycles.\nUpdate the data stream lifecycle of the specified data streams.", "examples": { "IndicesPutDataLifecycleRequestExample1": { "summary": "Set the data stream lifecycle retention", "value": "{\n \"data_retention\": \"7d\"\n}" }, "IndicesPutDataLifecycleRequestExample2": { "description": "This example configures two downsampling rounds.", "summary": "Set the data stream lifecycle downsampling", "value": "{\n \"downsampling\": [\n {\n \"after\": \"1d\",\n \"fixed_interval\": \"10m\"\n },\n {\n \"after\": \"7d\",\n \"fixed_interval\": \"1d\"\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.put_data_lifecycle" }, "path": [ { "description": "Comma-separated list of data streams used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams use `*` or `_all`.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamNames", "namespace": "_types" } } } ], "query": [ { "description": "Type of data stream that wildcard patterns can match.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `hidden`, `open`, `closed`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an\nerror.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "IndicesPutDataLifecycleResponseExample1": { "description": "A successful response for configuring a data stream lifecycle.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "indices.put_data_lifecycle" }, "specLocation": "indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "IndexTemplateMapping", "namespace": "indices.put_index_template" }, "properties": [ { "description": "Aliases to add.\nIf the index template includes a `data_stream` object, these are data stream aliases.\nOtherwise, these are index aliases.\nData stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping parameters.", "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "Configuration options for the index.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "name": "lifecycle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamLifecycle", "namespace": "indices._types" } } } ], "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Name of the index template to create.", "name": "index_patterns", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", "name": "composed_of", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } }, { "description": "Template to be applied.\nIt may optionally include an `aliases`, `mappings`, or `settings` configuration.", "name": "template", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexTemplateMapping", "namespace": "indices.put_index_template" } } }, { "description": "If this object is included, the template is used to create data streams and their backing indices.\nSupports an empty object.\nData streams require a matching index template with a `data_stream` object.", "name": "data_stream", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamVisibility", "namespace": "indices._types" } } }, { "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Version number used to manage index templates externally.\nThis number is not automatically generated by Elasticsearch.\nExternal systems can use these version numbers to simplify template management.\nTo unset a version, replace the template without specifying one.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Optional user metadata about the index template.\nIt may have any contents.\nIt is not automatically generated or used by Elasticsearch.\nThis user-defined object is stored in the cluster state, so keeping it short is preferable\nTo unset the metadata, replace the template without specifying it.", "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.", "name": "allow_auto_create", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The configuration option ignore_missing_component_templates can be used when an index template\nreferences a component template that might not exist", "name": "ignore_missing_component_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Marks this index template as deprecated. When creating or updating a non-deprecated index template\nthat uses deprecated components, Elasticsearch will emit a deprecation warning.", "name": "deprecated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\n\nElasticsearch applies templates to new indices based on an wildcard pattern that matches the index name.\nIndex templates are applied during data stream or index creation.\nFor data streams, these settings and mappings are applied when the stream's backing indices are created.\nSettings and mappings specified in a create index API request override any settings or mappings specified in an index template.\nChanges to index templates do not affect existing indices, including the existing backing indices of a data stream.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Multiple matching templates**\n\nIf multiple index templates match the name of a new index or data stream, the template with the highest priority is used.\n\nMultiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities.\n\n**Composing aliases, mappings, and settings**\n\nWhen multiple component templates are specified in the `composed_of` field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates.\nAny mappings, settings, or aliases from the parent index template are merged in next.\nFinally, any configuration on the index request itself is merged.\nMapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration.\nIf a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one.\nThis recursive merging strategy applies not only to field mappings, but also root options like `dynamic_templates` and `meta`.\nIf an earlier component contains a `dynamic_templates` block, then by default new `dynamic_templates` entries are appended onto the end.\nIf an entry already exists with the same key, then it is overwritten by the new definition.", "examples": { "IndicesPutIndexTemplateRequestExample1": { "summary": "Create a template", "value": "{\n \"index_patterns\" : [\"template*\"],\n \"priority\" : 1,\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 2\n }\n }\n}" }, "IndicesPutIndexTemplateRequestExample2": { "description": "You can include index aliases in an index template.\nDuring index creation, the `{index}` placeholder in the alias name will be replaced with the actual index name that the template gets applied to.\n", "summary": "Create a template with aliases", "value": "{\n \"index_patterns\": [\n \"template*\"\n ],\n \"template\": {\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"aliases\": {\n \"alias1\": {},\n \"alias2\": {\n \"filter\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"routing\": \"shard-1\"\n },\n \"{index}-alias\": {}\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.put_index_template" }, "path": [ { "description": "Index or template name", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, this request cannot replace or update existing index templates.", "name": "create", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "User defined reason for creating/updating the index template", "name": "cause", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L157" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.put_index_template" }, "specLocation": "indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Controls whether dynamic date detection is enabled.", "name": "date_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls whether new fields are added dynamically.", "name": "dynamic", "required": false, "type": { "kind": "instance_of", "type": { "name": "DynamicMapping", "namespace": "_types.mapping" } } }, { "description": "If date detection is enabled then new string fields are checked\nagainst 'dynamic_date_formats' and if the value matches then\na new date field is added instead of string.", "name": "dynamic_date_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Specify dynamic templates for the mapping.", "name": "dynamic_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "DynamicTemplate", "namespace": "_types.mapping" } } } } }, { "description": "Control whether field names are enabled for the index.", "name": "_field_names", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldNamesField", "namespace": "_types.mapping" } } }, { "description": "A mapping type can have custom meta data associated with it. These are\nnot used at all by Elasticsearch, but can be used to store\napplication-specific metadata.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "Automatically map strings into numeric data types for all fields.", "name": "numeric_detection", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Mapping for a field. For new fields, this mapping can include:\n\n- Field name\n- Field data type\n- Mapping parameters", "name": "properties", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "PropertyName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Property", "namespace": "_types.mapping" } } } }, { "description": "Enable making a routing value required on indexed documents.", "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoutingField", "namespace": "_types.mapping" } } }, { "description": "Control whether the _source field is enabled on the index.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceField", "namespace": "_types.mapping" } } }, { "description": "Mapping of runtime fields for the index.", "name": "runtime", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } } ] }, "description": "Update field mappings.\nAdd new fields to an existing data stream or index.\nYou can also use this API to change the search settings of existing fields and add new properties to existing object fields.\nFor data streams, these changes are applied to all backing indices by default.\n\n**Add multi-fields to an existing field**\n\nMulti-fields let you index the same field in different ways.\nYou can use this API to update the fields mapping parameter and enable multi-fields for an existing field.\nWARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field.\nYou can populate the new multi-field with the update by query API.\n\n**Change supported mapping parameters for an existing field**\n\nThe documentation for each mapping parameter indicates whether you can update it for an existing field using this API.\nFor example, you can use the update mapping API to update the `ignore_above` parameter.\n\n**Change the mapping of an existing field**\n\nExcept for supported mapping parameters, you can't change the mapping or field type of an existing field.\nChanging an existing field could invalidate data that's already indexed.\n\nIf you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams.\nIf you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index.\n\n**Rename a field**\n\nRenaming a field would invalidate data already indexed under the old field name.\nInstead, add an alias field to create an alternate field name.", "examples": { "indicesPutMappingRequestExample1": { "description": "The update mapping API can be applied to multiple data streams or indices with a single request. For example, run `PUT /my-index-000001,my-index-000002/_mapping` to update mappings for the `my-index-000001` and `my-index-000002` indices at the same time.\n", "summary": "Update multiple targets", "value": "{\n \"properties\": {\n \"user\": {\n \"properties\": {\n \"name\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.put_mapping" }, "path": [ { "description": "A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, the mappings are applied only to the current write index for the target.", "name": "write_index_only", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/put_mapping/IndicesPutMappingRequest.ts#L41-L181" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "IndicesResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.put_mapping" }, "specLocation": "indices/put_mapping/IndicesPutMappingResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "settings", "value": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, "description": "Update index settings.\nChanges dynamic index settings in real time.\nFor data streams, index setting changes are applied to all backing indices by default.\n\nTo revert a setting to the default value, use a null value.\nThe list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.\nTo preserve existing settings from being updated, set the `preserve_existing` parameter to `true`.\n\nNOTE: You can only define new analyzers on closed indices.\nTo add an analyzer, you must close the index, define the analyzer, and reopen the index.\nYou cannot close the write index of a data stream.\nTo update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream.\nThen roll over the data stream to apply the new analyzer to the stream's write index and future backing indices.\nThis affects searches and any new data added to the stream after the rollover.\nHowever, it does not affect the data stream's backing indices or their existing data.\nTo change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it.", "examples": { "IndicesPutSettingsRequestExample1": { "summary": "Change a dynamic index setting", "value": "{\n \"index\" : {\n \"number_of_replicas\" : 2\n }\n}" }, "indicesPutSettingsRequestExample2": { "description": "To revert a setting to the default value, use `null`.", "summary": "Reset an index setting", "value": "{\n \"index\" : {\n \"refresh_interval\" : null\n }\n}" }, "indicesPutSettingsRequestExample3": { "description": "To add an analyzer, you must close the index, define the analyzer, then reopen the index.", "summary": "Update index analysis", "value": "{\n \"analysis\" : {\n \"analyzer\":{\n \"content\":{\n \"type\":\"custom\",\n \"tokenizer\":\"whitespace\"\n }\n }\n }\n}\n\nPOST /my-index-000001/_open" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.put_settings" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit\nthe request. Supports wildcards (`*`). To target all data streams and\nindices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index\nalias, or `_all` value targets only missing or closed indices. This\nbehavior applies even if the request targets other open indices. For\nexample, a request targeting `foo*,bar*` returns an error if an index\nstarts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target\ndata streams, this argument determines whether wildcard expressions match\nhidden data streams. Supports comma-separated values, such as\n`open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns settings in flat format.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an\nerror.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, existing index settings remain unchanged.", "name": "preserve_existing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether to close and reopen the index to apply non-dynamic settings.\nIf set to `true` the indices to which the settings are being applied\nwill be closed temporarily and then reopened in order to apply the changes.", "name": "reopen", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the\n timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/put_settings/IndicesPutSettingsRequest.ts#L25-L125" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.put_settings" }, "specLocation": "indices/put_settings/IndicesPutSettingsResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Aliases for the index.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Array of wildcard expressions used to match the names\nof indices during creation.", "name": "index_patterns", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Mapping for fields in the index.", "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "Order in which Elasticsearch applies this template if index\nmatches multiple templates.\n\nTemplates with lower 'order' values are merged first. Templates with higher\n'order' values are merged later, overriding templates with lower values.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Configuration options for the index.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "description": "Version number used to manage index templates externally. This number\nis not automatically generated by Elasticsearch.\nTo unset a version, replace the template without specifying one.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ] }, "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.\nElasticsearch applies templates to new indices based on an index pattern that matches the index name.\n\nIMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.\n\nComposable templates always take precedence over legacy templates.\nIf no composable template matches a new index, matching legacy templates are applied according to their order.\n\nIndex templates are only applied during index creation.\nChanges to index templates do not affect existing indices.\nSettings and mappings specified in create index API requests override any settings or mappings specified in an index template.\n\nYou can use C-style `/* *\\/` block comments in index templates.\nYou can include comments anywhere in the request body, except before the opening curly bracket.\n\n**Indices matching multiple templates**\n\nMultiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index.\nThe order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them.\nNOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order.", "examples": { "indicesPutTemplateRequestExample1": { "summary": "Create an index template", "value": "{\n \"index_patterns\": [\n \"te*\",\n \"bar*\"\n ],\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"_source\": {\n \"enabled\": false\n }\n },\n \"properties\": {\n \"host_name\": {\n \"type\": \"keyword\"\n },\n \"created_at\": {\n \"type\": \"date\",\n \"format\": \"EEE MMM dd HH:mm:ss Z yyyy\"\n }\n }\n}" }, "indicesPutTemplateRequestExample2": { "description": "You can include index aliases in an index template. During index creation, the `{index}` placeholder in the alias name will be replaced with the actual index name that the template gets applied to.\n", "summary": "Create an index template with aliases", "value": "{\n \"index_patterns\": [\n \"te*\"\n ],\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"aliases\": {\n \"alias1\": {},\n \"alias2\": {\n \"filter\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"routing\": \"shard-1\"\n },\n \"{index}-alias\": {}\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.put_template" }, "path": [ { "description": "The name of the template", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If true, this request cannot replace or update existing index templates.", "name": "create", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an error.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Order in which Elasticsearch applies this template if index\nmatches multiple templates.\n\nTemplates with lower 'order' values are merged first. Templates with higher\n'order' values are merged later, overriding templates with lower values.", "name": "order", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "User defined reason for creating/updating the index template", "name": "cause", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L123" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.put_template" }, "specLocation": "indices/put_template/IndicesPutTemplateResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "FileDetails", "namespace": "indices.recovery" }, "properties": [ { "name": "length", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "recovered", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L50-L54" }, { "kind": "interface", "name": { "name": "RecoveryBytes", "namespace": "indices.recovery" }, "properties": [ { "name": "percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "name": "recovered", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "recovered_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "recovered_from_snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "recovered_from_snapshot_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "reused", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "reused_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "total_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L38-L48" }, { "kind": "interface", "name": { "name": "RecoveryFiles", "namespace": "indices.recovery" }, "properties": [ { "name": "details", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FileDetails", "namespace": "indices.recovery" } } } }, { "name": "percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "name": "recovered", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "reused", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L56-L62" }, { "kind": "interface", "name": { "name": "RecoveryIndexStatus", "namespace": "indices.recovery" }, "properties": [ { "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "RecoveryBytes", "namespace": "indices.recovery" } } }, { "name": "files", "required": true, "type": { "kind": "instance_of", "type": { "name": "RecoveryFiles", "namespace": "indices.recovery" } } }, { "name": "size", "required": true, "type": { "kind": "instance_of", "type": { "name": "RecoveryBytes", "namespace": "indices.recovery" } } }, { "name": "source_throttle_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "source_throttle_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "target_throttle_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "target_throttle_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L64-L74" }, { "kind": "interface", "name": { "name": "RecoveryOrigin", "namespace": "indices.recovery" }, "properties": [ { "name": "hostname", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "transport_address", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "bootstrap_new_history_uuid", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "restoreUUID", "required": false, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L76-L89" }, { "kind": "interface", "name": { "name": "RecoveryStartStatus", "namespace": "indices.recovery" }, "properties": [ { "name": "check_index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "check_index_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L91-L96" }, { "kind": "interface", "name": { "name": "RecoveryStatus", "namespace": "indices.recovery" }, "properties": [ { "name": "shards", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardRecovery", "namespace": "indices.recovery" } } } } ], "specLocation": "indices/recovery/types.ts#L98-L100" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index recovery information.\nGet information about ongoing and completed shard recoveries for one or more indices.\nFor data streams, the API returns information for the stream's backing indices.\n\nAll recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time.\n\nShard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard.\nWhen a shard recovery completes, the recovered shard is available for search and indexing.\n\nRecovery automatically occurs during the following processes:\n\n* When creating an index for the first time.\n* When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path.\n* Creation of new replica shard copies from the primary.\n* Relocation of a shard copy to a different node in the same cluster.\n* A snapshot restore operation.\n* A clone, shrink, or split operation.\n\nYou can determine the cause of a shard recovery using the recovery or cat recovery APIs.\n\nThe index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster.\nIt only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist.\nThis means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.recovery" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, the response only includes ongoing shard recoveries.", "name": "active_only", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes detailed information about shard recoveries.", "name": "detailed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/recovery/IndicesRecoveryRequest.ts#L23-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "statuses", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RecoveryStatus", "namespace": "indices.recovery" } } } }, "examples": { "indicesRecoveryResponseExample1": { "description": "A successful response from `GET /_recovery?human`, which gets information about ongoing and completed shard recoveries for all data streams and indices in a cluster. This example includes information about a single index recovering a single shard. The source of the recovery is a snapshot repository and the target of the recovery is the `my_es_node` node. The response also includes the number and percentage of files and bytes recovered.\n", "summary": "Get segment information", "value": "{\n \"index1\" : {\n \"shards\" : [ {\n \"id\" : 0,\n \"type\" : \"SNAPSHOT\",\n \"stage\" : \"INDEX\",\n \"primary\" : true,\n \"start_time\" : \"2014-02-24T12:15:59.716\",\n \"start_time_in_millis\": 1393244159716,\n \"stop_time\" : \"0s\",\n \"stop_time_in_millis\" : 0,\n \"total_time\" : \"2.9m\",\n \"total_time_in_millis\" : 175576,\n \"source\" : {\n \"repository\" : \"my_repository\",\n \"snapshot\" : \"my_snapshot\",\n \"index\" : \"index1\",\n \"version\" : \"{version}\",\n \"restoreUUID\": \"PDh1ZAOaRbiGIVtCvZOMww\"\n },\n \"target\" : {\n \"id\" : \"ryqJ5lO5S4-lSFbGntkEkg\",\n \"host\" : \"my.fqdn\",\n \"transport_address\" : \"my.fqdn\",\n \"ip\" : \"10.0.1.7\",\n \"name\" : \"my_es_node\"\n },\n \"index\" : {\n \"size\" : {\n \"total\" : \"75.4mb\",\n \"total_in_bytes\" : 79063092,\n \"reused\" : \"0b\",\n \"reused_in_bytes\" : 0,\n \"recovered\" : \"65.7mb\",\n \"recovered_in_bytes\" : 68891939,\n \"recovered_from_snapshot\" : \"0b\",\n \"recovered_from_snapshot_in_bytes\" : 0,\n \"percent\" : \"87.1%\"\n },\n \"files\" : {\n \"total\" : 73,\n \"reused\" : 0,\n \"recovered\" : 69,\n \"percent\" : \"94.5%\"\n },\n \"total_time\" : \"0s\",\n \"total_time_in_millis\" : 0,\n \"source_throttle_time\" : \"0s\",\n \"source_throttle_time_in_millis\" : 0,\n \"target_throttle_time\" : \"0s\",\n \"target_throttle_time_in_millis\" : 0\n },\n \"translog\" : {\n \"recovered\" : 0,\n \"total\" : 0,\n \"percent\" : \"100.0%\",\n \"total_on_start\" : 0,\n \"total_time\" : \"0s\",\n \"total_time_in_millis\" : 0\n },\n \"verify_index\" : {\n \"check_index_time\" : \"0s\",\n \"check_index_time_in_millis\" : 0,\n \"total_time\" : \"0s\",\n \"total_time_in_millis\" : 0\n }\n } ]\n }\n}" }, "indicesRecoveryResponseExample2": { "description": "A successful response from `GET _recovery?human&detailed=true`. The response includes a listing of any physical files recovered and their sizes. The response also includes timings in milliseconds of the various stages of recovery: index retrieval, translog replay, and index start time. This response indicates the recovery is done.\n", "summary": "Get detailed recovery information", "value": "{\n \"index1\" : {\n \"shards\" : [ {\n \"id\" : 0,\n \"type\" : \"EXISTING_STORE\",\n \"stage\" : \"DONE\",\n \"primary\" : true,\n \"start_time\" : \"2014-02-24T12:38:06.349\",\n \"start_time_in_millis\" : \"1393245486349\",\n \"stop_time\" : \"2014-02-24T12:38:08.464\",\n \"stop_time_in_millis\" : \"1393245488464\",\n \"total_time\" : \"2.1s\",\n \"total_time_in_millis\" : 2115,\n \"source\" : {\n \"id\" : \"RGMdRc-yQWWKIBM4DGvwqQ\",\n \"host\" : \"my.fqdn\",\n \"transport_address\" : \"my.fqdn\",\n \"ip\" : \"10.0.1.7\",\n \"name\" : \"my_es_node\"\n },\n \"target\" : {\n \"id\" : \"RGMdRc-yQWWKIBM4DGvwqQ\",\n \"host\" : \"my.fqdn\",\n \"transport_address\" : \"my.fqdn\",\n \"ip\" : \"10.0.1.7\",\n \"name\" : \"my_es_node\"\n },\n \"index\" : {\n \"size\" : {\n \"total\" : \"24.7mb\",\n \"total_in_bytes\" : 26001617,\n \"reused\" : \"24.7mb\",\n \"reused_in_bytes\" : 26001617,\n \"recovered\" : \"0b\",\n \"recovered_in_bytes\" : 0,\n \"recovered_from_snapshot\" : \"0b\",\n \"recovered_from_snapshot_in_bytes\" : 0,\n \"percent\" : \"100.0%\"\n },\n \"files\" : {\n \"total\" : 26,\n \"reused\" : 26,\n \"recovered\" : 0,\n \"percent\" : \"100.0%\",\n \"details\" : [ {\n \"name\" : \"segments.gen\",\n \"length\" : 20,\n \"recovered\" : 20\n }, {\n \"name\" : \"_0.cfs\",\n \"length\" : 135306,\n \"recovered\" : 135306,\n \"recovered_from_snapshot\": 0\n }, {\n \"name\" : \"segments_2\",\n \"length\" : 251,\n \"recovered\" : 251,\n \"recovered_from_snapshot\": 0\n }\n ]\n },\n \"total_time\" : \"2ms\",\n \"total_time_in_millis\" : 2,\n \"source_throttle_time\" : \"0s\",\n \"source_throttle_time_in_millis\" : 0,\n \"target_throttle_time\" : \"0s\",\n \"target_throttle_time_in_millis\" : 0\n },\n \"translog\" : {\n \"recovered\" : 71,\n \"total\" : 0,\n \"percent\" : \"100.0%\",\n \"total_on_start\" : 0,\n \"total_time\" : \"2.0s\",\n \"total_time_in_millis\" : 2025\n },\n \"verify_index\" : {\n \"check_index_time\" : 0,\n \"check_index_time_in_millis\" : 0,\n \"total_time\" : \"88ms\",\n \"total_time_in_millis\" : 88\n }\n } ]\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.recovery" }, "specLocation": "indices/recovery/IndicesRecoveryResponse.ts#L24-L27" }, { "kind": "interface", "name": { "name": "ShardRecovery", "namespace": "indices.recovery" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "RecoveryIndexStatus", "namespace": "indices.recovery" } } }, { "name": "primary", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "RecoveryOrigin", "namespace": "indices.recovery" } } }, { "name": "stage", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "RecoveryStartStatus", "namespace": "indices.recovery" } } }, { "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "stop_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "stop_time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "RecoveryOrigin", "namespace": "indices.recovery" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "translog", "required": true, "type": { "kind": "instance_of", "type": { "name": "TranslogStatus", "namespace": "indices.recovery" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "verify_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "VerifyIndex", "namespace": "indices.recovery" } } } ], "specLocation": "indices/recovery/types.ts#L118-L135" }, { "kind": "interface", "name": { "name": "TranslogStatus", "namespace": "indices.recovery" }, "properties": [ { "name": "percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } }, { "name": "recovered", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_on_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L102-L109" }, { "kind": "interface", "name": { "name": "VerifyIndex", "namespace": "indices.recovery" }, "properties": [ { "name": "check_index_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "check_index_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "indices/recovery/types.ts#L111-L116" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Refresh an index.\nA refresh makes recent operations performed on one or more indices available for search.\nFor data streams, the API runs the refresh operation on the stream’s backing indices.\n\nBy default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds.\nYou can change this default interval with the `index.refresh_interval` setting.\n\nRefresh requests are synchronous and do not return a response until the refresh operation completes.\n\nRefreshes are resource-intensive.\nTo ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible.\n\nIf your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's `refresh=wait_for` query parameter option.\nThis option ensures the indexing operation waits for a periodic refresh before running the search.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.refresh" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/refresh/IndicesRefreshRequest.ts#L23-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "ShardsOperationResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.refresh" }, "specLocation": "indices/refresh/IndicesRefreshResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "ReloadDetails", "namespace": "indices.reload_search_analyzers" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "reloaded_analyzers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "reloaded_node_ids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "indices/reload_search_analyzers/types.ts#L27-L31" }, { "kind": "interface", "name": { "name": "ReloadResult", "namespace": "indices.reload_search_analyzers" }, "properties": [ { "name": "reload_details", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ReloadDetails", "namespace": "indices.reload_search_analyzers" } } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ], "specLocation": "indices/reload_search_analyzers/types.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Reload search analyzers.\nReload an index's search analyzers and their resources.\nFor data streams, the API reloads search analyzers and resources for the stream's backing indices.\n\nIMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer.\n\nYou can use the reload search analyzers API to pick up changes to synonym files used in the `synonym_graph` or `synonym` token filter of a search analyzer.\nTo be eligible, the token filter must have an `updateable` flag of `true` and only be used in search analyzers.\n\nNOTE: This API does not perform a reload for each shard of an index.\nInstead, it performs a reload for each node containing index shards.\nAs a result, the total shard count returned by the API can differ from the number of index shards.\nBecause reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API.\nThis ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future.", "examples": { "ReloadSearchAnalyzersRequestExample1": { "value": "{\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"my-index-000001\",\n \"reloaded_analyzers\": [\n \"my_synonyms\"\n ],\n \"reloaded_node_ids\": [\n \"mfdqTXn_T7SGr2Ho2KT8uw\"\n ]\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.reload_search_analyzers" }, "path": [ { "description": "A comma-separated list of index names to reload analyzers for", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", "name": "ignore_unavailable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Changed resource to reload analyzers from if applicable", "name": "resource", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/reload_search_analyzers/ReloadSearchAnalyzersRequest.ts#L23-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "ReloadResult", "namespace": "indices.reload_search_analyzers" } } }, "name": { "name": "Response", "namespace": "indices.reload_search_analyzers" }, "specLocation": "indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Resolve the cluster.\n\nResolve the specified index expressions to return information about each cluster, including the local \"querying\" cluster, if included.\nIf no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster.\n\nThis endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search.\n\nYou use the same index expression with this endpoint as you would for cross-cluster search.\nIndex and cluster exclusions are also supported with this endpoint.\n\nFor each cluster in the index expression, information is returned about:\n\n* Whether the querying (\"local\") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the `remote/info` endpoint.\n* Whether each remote cluster is configured with `skip_unavailable` as `true` or `false`.\n* Whether there are any indices, aliases, or data streams on that cluster that match the index expression.\n* Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index).\n* Cluster version information, including the Elasticsearch server version.\n\nFor example, `GET /_resolve/cluster/my-index-*,cluster*:my-index-*` returns information about the local cluster and all remotely configured clusters that start with the alias `cluster*`.\nEach cluster returns information about whether it has any indices, aliases or data streams that match `my-index-*`.\n\n## Note on backwards compatibility\nThe ability to query without an index expression was added in version 8.18, so when\nquerying remote clusters older than that, the local cluster will send the index\nexpression `dummy*` to those remote clusters. Thus, if an errors occur, you may see a reference\nto that index expression even though you didn't request it. If it causes a problem, you can\ninstead include an index expression like `*:*` to bypass the issue.\n\n## Advantages of using this endpoint before a cross-cluster search\n\nYou may want to exclude a cluster or index from a search when:\n\n* A remote cluster is not currently connected and is configured with `skip_unavailable=false`. Running a cross-cluster search under those conditions will cause the entire search to fail.\n* A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is `logs*,remote1:logs*` and the remote1 cluster has no indices, aliases or data streams that match `logs*`. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search.\n* The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the \"error\" field in the `_resolve/cluster` response will be present. (This is also where security/permission errors will be shown.)\n* A remote cluster is an older version that does not support the feature you want to use in your search.\n\n## Test availability of remote clusters\n\nThe `remote/info` endpoint is commonly used to test whether the \"local\" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not.\nThe remote cluster may be available, while the local cluster is not currently connected to it.\n\nYou can use the `_resolve/cluster` API to attempt to reconnect to remote clusters.\nFor example with `GET _resolve/cluster` or `GET _resolve/cluster/*:*`.\nThe `connected` field in the response will indicate whether it was successful.\nIf a connection was (re-)established, this will also cause the `remote/info` endpoint to now indicate a connected status.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.resolve_cluster" }, "path": [ { "description": "A comma-separated list of names or index patterns for the indices, aliases, and data streams to resolve.\nResources on remote clusters can be specified using the ``:`` syntax.\nIndex and cluster exclusions (e.g., `-cluster1:*`) are also supported.\nIf no index expression is specified, information about all remote clusters configured on the local cluster\nis returned without doing any index matching", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing\nor closed indices. This behavior applies even if the request targets other open indices. For example, a request\ntargeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.\nNOTE: This option is only supported when specifying an index expression. You will get an error if you specify index\noptions to the `_resolve/cluster` API endpoint that takes no index expression.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.\nNOTE: This option is only supported when specifying an index expression. You will get an error if you specify index\noptions to the `_resolve/cluster` API endpoint that takes no index expression.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If true, concrete, expanded, or aliased indices are ignored when frozen.\nNOTE: This option is only supported when specifying an index expression. You will get an error if you specify index\noptions to the `_resolve/cluster` API endpoint that takes no index expression.", "name": "ignore_throttled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If false, the request returns an error if it targets a missing or closed index.\nNOTE: This option is only supported when specifying an index expression. You will get an error if you specify index\noptions to the `_resolve/cluster` API endpoint that takes no index expression.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum time to wait for remote clusters to respond.\nIf a remote cluster does not respond within this timeout period, the API response\nwill show the cluster as not connected and include an error message that the\nrequest timed out.\n\nThe default timeout is unset and the query can take\nas long as the networking layer is configured to wait for remote clusters that are\nnot responding (typically 30 seconds).", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/resolve_cluster/ResolveClusterRequest.ts#L24-L144" }, { "kind": "interface", "description": "Provides information about each cluster request relevant to doing a cross-cluster search.", "name": { "name": "ResolveClusterInfo", "namespace": "indices.resolve_cluster" }, "properties": [ { "description": "Whether the remote cluster is connected to the local (querying) cluster.", "name": "connected", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The `skip_unavailable` setting for a remote cluster.", "name": "skip_unavailable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether the index expression provided in the request matches any indices, aliases or data streams\non the cluster.", "name": "matching_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Provides error messages that are likely to occur if you do a search with this index expression\non the specified cluster (for example, lack of security privileges to query an index).", "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Provides version information about the cluster.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "ElasticsearchVersionMinInfo", "namespace": "_types" } } } ], "specLocation": "indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55" }, { "kind": "response", "body": { "kind": "value", "codegenName": "infos", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "ClusterAlias", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ResolveClusterInfo", "namespace": "indices.resolve_cluster" } } } }, "examples": { "ResolveClusterResponseExample1": { "description": "A successful response from `GET /_resolve/cluster/my-index*,clust*:my-index*`. Each cluster has its own response section. The cluster you sent the request to is labelled as \"(local)\".\n", "summary": "Resolve with wildcards", "value": "{\n \"(local)\": {\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true,\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n },\n \"cluster_one\": {\n \"connected\": true,\n \"skip_unavailable\": true,\n \"matching_indices\": true,\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n },\n \"cluster_two\": {\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true,\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n }\n}" }, "ResolveClusterResponseExample2": { "description": "A successful response from `GET /_resolve/cluster/not-present,clust*:my-index*,oldcluster:*?ignore_unavailable=false&timeout=5s`. This type of request can be used to identify potential problems with your cross-cluster search. Note also that a `timeout` of 5 seconds is sent, which sets the maximum time the query will wait for remote clusters to respond. The local cluster has no index called `not_present`. Searching with `ignore_unavailable=false` would return a \"no such index\" error. The `cluster_one` remote cluster has no indices that match the pattern `my-index*`. There may be no indices that match the pattern or the index could be closed. The `cluster_two` remote cluster is not connected (the attempt to connect failed). Since this cluster is marked as `skip_unavailable=false`, you should probably exclude this cluster from the search by adding `-cluster_two:*` to the search index expression. For `cluster_three`, the error message indicates that this remote cluster did not respond within the 5-second timeout window specified, so it is also marked as not connected. The `oldcluster` remote cluster shows that it has matching indices, but no version information is included. This indicates that the cluster version predates the introduction of the `_resolve/cluster` API, so you may want to exclude it from your cross-cluster search.\n", "summary": "Identify search problems", "value": "{\n \"(local)\": {\n \"connected\": true,\n \"skip_unavailable\": false,\n \"error\": \"no such index [not_present]\"\n },\n \"cluster_one\": {\n \"connected\": true,\n \"skip_unavailable\": true,\n \"matching_indices\": false,\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n },\n \"cluster_two\": {\n \"connected\": false,\n \"skip_unavailable\": false\n },\n \"cluster_three\": {\n \"connected\": false,\n \"skip_unavailable\": false,\n \"error\": \"Request timed out before receiving a response from the remote cluster\"\n },\n \"oldcluster\": {\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.resolve_cluster" }, "specLocation": "indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Resolve indices.\nResolve the names and/or index patterns for indices, aliases, and data streams.\nMultiple patterns and remote clusters are supported.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.resolve_index" }, "path": [ { "description": "Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.\nResources on remote clusters can be specified using the ``:`` syntax.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.\nFor example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/resolve_index/ResolveIndexRequest.ts#L23-L69" }, { "kind": "interface", "name": { "name": "ResolveIndexAliasItem", "namespace": "indices.resolve_index" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "specLocation": "indices/resolve_index/ResolveIndexResponse.ts#L37-L40" }, { "kind": "interface", "name": { "name": "ResolveIndexDataStreamsItem", "namespace": "indices.resolve_index" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } }, { "name": "timestamp_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "backing_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "specLocation": "indices/resolve_index/ResolveIndexResponse.ts#L42-L46" }, { "kind": "interface", "name": { "name": "ResolveIndexItem", "namespace": "indices.resolve_index" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "aliases", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "attributes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "data_stream", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamName", "namespace": "_types" } } } ], "specLocation": "indices/resolve_index/ResolveIndexResponse.ts#L30-L35" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ResolveIndexItem", "namespace": "indices.resolve_index" } } } }, { "name": "aliases", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ResolveIndexAliasItem", "namespace": "indices.resolve_index" } } } }, { "name": "data_streams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ResolveIndexDataStreamsItem", "namespace": "indices.resolve_index" } } } } ] }, "examples": { "ResolveIndexResponseExample1": { "description": "A successful response from `GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all`.", "value": "{\n \"indices\": [\n {\n \"name\": \"foo_closed\",\n \"attributes\": [\n \"closed\"\n ]\n },\n {\n \"name\": \"freeze-index\",\n \"aliases\": [\n \"f-alias\"\n ],\n \"attributes\": [\n \"open\"\n ]\n },\n {\n \"name\": \"remoteCluster1:bar-01\",\n \"attributes\": [\n \"open\"\n ]\n }\n ],\n \"aliases\": [\n {\n \"name\": \"f-alias\",\n \"indices\": [\n \"freeze-index\",\n \"my-index-000001\"\n ]\n }\n ],\n \"data_streams\": [\n {\n \"name\": \"foo\",\n \"backing_indices\": [\n \".ds-foo-2099.03.07-000001\"\n ],\n \"timestamp_field\": \"@timestamp\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.resolve_index" }, "specLocation": "indices/resolve_index/ResolveIndexResponse.ts#L22-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Aliases for the target index.\nData streams do not support this parameter.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Conditions for the rollover.\nIf specified, Elasticsearch only performs the rollover if the current index satisfies these conditions.\nIf this parameter is not specified, Elasticsearch performs the rollover unconditionally.\nIf conditions are specified, at least one of them must be a `max_*` condition.\nThe index will rollover if any `max_*` condition is satisfied and all `min_*` conditions are satisfied.", "name": "conditions", "required": false, "type": { "kind": "instance_of", "type": { "name": "RolloverConditions", "namespace": "indices.rollover" } } }, { "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping paramaters.", "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "Configuration options for the index.\nData streams do not support this parameter.", "name": "settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Roll over to a new index.\nTIP: It is recommended to use the index lifecycle rollover action to automate rollovers.\n\nThe rollover API creates a new index for a data stream or index alias.\nThe API behavior depends on the rollover target.\n\n**Roll over a data stream**\n\nIf you roll over a data stream, the API creates a new write index for the stream.\nThe stream's previous write index becomes a regular backing index.\nA rollover also increments the data stream's generation.\n\n**Roll over an index alias with a write index**\n\nTIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data.\nData streams replace this functionality, require less maintenance, and automatically integrate with data tiers.\n\nIf an index alias points to multiple indices, one of the indices must be a write index.\nThe rollover API creates a new write index for the alias with `is_write_index` set to `true`.\nThe API also `sets is_write_index` to `false` for the previous write index.\n\n**Roll over an index alias with one index**\n\nIf you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias.\n\nNOTE: A rollover creates a new index and is subject to the `wait_for_active_shards` setting.\n\n**Increment index names for an alias**\n\nWhen you roll over an index alias, you can specify a name for the new index.\nIf you don't specify a name and the current index ends with `-` and a number, such as `my-index-000001` or `my-index-3`, the new index name increments that number.\nFor example, if you roll over an alias with a current index of `my-index-000001`, the rollover creates a new index named `my-index-000002`.\nThis number is always six characters and zero-padded, regardless of the previous index's name.\n\nIf you use an index alias for time series data, you can use date math in the index name to track the rollover date.\nFor example, you can create an alias that points to an index named ``.\nIf you create the index on May 6, 2099, the index's name is `my-index-2099.05.06-000001`.\nIf you roll over the alias on May 7, 2099, the new index's name is `my-index-2099.05.07-000002`.", "examples": { "indicesRolloverRequestExample1": { "summary": "Create a new index for a data stream.", "value": "{\n \"conditions\": {\n \"max_age\": \"7d\",\n \"max_docs\": 1000,\n \"max_primary_shard_size\": \"50gb\",\n \"max_primary_shard_docs\": \"2000\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.rollover" }, "path": [ { "description": "Name of the data stream or index alias to roll over.", "name": "alias", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } }, { "description": "Name of the index to create.\nSupports date math.\nData streams do not support this parameter.", "name": "new_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, checks whether the current index satisfies the specified conditions but does not perform a rollover.", "name": "dry_run", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } }, { "description": "If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write.\nOnly allowed on data streams.", "name": "lazy", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/rollover/IndicesRolloverRequest.ts#L29-L153" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "conditions", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } }, { "name": "dry_run", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "new_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "old_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "rolled_over", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "indicesRolloverResponseExample1": { "description": "An abbreviated response from `GET /_segments`.\n", "value": "{\n \"_shards\": {},\n \"indices\": {\n \"test\": {\n \"shards\": {\n \"0\": [\n {\n \"routing\": {\n \"state\": \"STARTED\",\n \"primary\": true,\n \"node\": \"zDC_RorJQCao9xf9pg3Fvw\"\n },\n \"num_committed_segments\": 0,\n \"num_search_segments\": 1,\n \"segments\": {\n \"_0\": {\n \"generation\": 0,\n \"num_docs\": 1,\n \"deleted_docs\": 0,\n \"size_in_bytes\": 3800,\n \"committed\": false,\n \"search\": true,\n \"version\": \"7.0.0\",\n \"compound\": true,\n \"attributes\": {}\n }\n }\n }\n ]\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.rollover" }, "specLocation": "indices/rollover/IndicesRolloverResponse.ts#L22-L32" }, { "kind": "interface", "name": { "name": "RolloverConditions", "namespace": "indices.rollover" }, "properties": [ { "name": "min_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max_age", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max_age_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "min_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "min_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_primary_shard_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_primary_shard_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "min_primary_shard_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_primary_shard_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_primary_shard_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/rollover/types.ts#L24-L40" }, { "kind": "interface", "name": { "name": "IndexSegment", "namespace": "indices.segments" }, "properties": [ { "name": "shards", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ShardsSegment", "namespace": "indices.segments" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardsSegment", "namespace": "indices.segments" } } } ] } } } ], "specLocation": "indices/segments/types.ts#L24-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index segments.\nGet low-level information about the Lucene segments in index shards.\nFor data streams, the API returns information about the stream's backing indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.segments" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases used to limit the request.\nSupports wildcards (`*`).\nTo target all data streams and indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/segments/IndicesSegmentsRequest.ts#L23-L73" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexSegment", "namespace": "indices.segments" } } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ] }, "examples": { "indicesSegmentsResponseExample1": { "description": "A successful response for creating a new index for a data stream.", "value": "{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"old_index\": \".ds-my-data-stream-2099.05.06-000001\",\n \"new_index\": \".ds-my-data-stream-2099.05.07-000002\",\n \"rolled_over\": true,\n \"dry_run\": false,\n \"lazy\": false,\n \"conditions\": {\n \"[max_age: 7d]\": false,\n \"[max_docs: 1000]\": true,\n \"[max_primary_shard_size: 50gb]\": false,\n \"[max_primary_shard_docs: 2000]\": false\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.segments" }, "specLocation": "indices/segments/IndicesSegmentsResponse.ts#L24-L29" }, { "kind": "interface", "name": { "name": "Segment", "namespace": "indices.segments" }, "properties": [ { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "committed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "compound", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "deleted_docs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "generation", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "search", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "num_docs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "indices/segments/types.ts#L28-L38" }, { "kind": "interface", "name": { "name": "ShardSegmentRouting", "namespace": "indices.segments" }, "properties": [ { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "primary", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/segments/types.ts#L40-L44" }, { "kind": "interface", "name": { "name": "ShardsSegment", "namespace": "indices.segments" }, "properties": [ { "name": "num_committed_segments", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "routing", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardSegmentRouting", "namespace": "indices.segments" } } }, { "name": "num_search_segments", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "segments", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Segment", "namespace": "indices.segments" } } } } ], "specLocation": "indices/segments/types.ts#L46-L51" }, { "kind": "interface", "name": { "name": "IndicesShardStores", "namespace": "indices.shard_stores" }, "properties": [ { "name": "shards", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ShardStoreWrapper", "namespace": "indices.shard_stores" } } } } ], "specLocation": "indices/shard_stores/types.ts#L25-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index shard stores.\nGet store information about replica shards in one or more indices.\nFor data streams, the API retrieves store information for the stream's backing indices.\n\nThe index shard stores API returns the following information:\n\n* The node on which each replica shard exists.\n* The allocation ID for each replica shard.\n* A unique ID for each replica shard.\n* Any errors encountered while opening the shard index or from an earlier failure.\n\nBy default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.shard_stores" }, "path": [ { "description": "List of data streams, indices, and aliases used to limit the request.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If false, the request returns an error if any wildcard expression, index alias, or _all\nvalue targets only missing or closed indices. This behavior applies even if the request\ntargets other open indices.", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target data streams,\nthis argument determines whether wildcard expressions match hidden data streams.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If true, missing or closed indices are not included in the response.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of shard health statuses used to limit the request.", "name": "status", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ShardStoreStatus", "namespace": "indices.shard_stores" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardStoreStatus", "namespace": "indices.shard_stores" } } } ] } } ], "specLocation": "indices/shard_stores/IndicesShardStoresRequest.ts#L24-L82" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndicesShardStores", "namespace": "indices.shard_stores" } } } } ] }, "examples": { "indicesShardStoresResponseExample1": { "description": "An abbreviated response from `GET /_shard_stores?status=green`.\n", "value": "{\n \"indices\": {\n \"my-index-000001\": {\n \"shards\": {\n \"0\": {\n \"stores\": [\n {\n \"sPa3OgxLSYGvQ4oPs-Tajw\": {\n \"name\": \"node_t0\",\n \"ephemeral_id\": \"9NlXRFGCT1m8tkvYCMK-8A\",\n \"transport_address\": \"local[1]\",\n \"external_id\": \"node_t0\",\n \"attributes\": {},\n \"roles\": [],\n \"version\": \"8.10.0\",\n \"min_index_version\": 7000099,\n \"max_index_version\": 8100099\n },\n \"allocation_id\": \"2iNySv_OQVePRX-yaRH_lQ\",\n \"allocation\": \"primary\",\n \"store_exception\": {}\n }\n ]\n }\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "indices.shard_stores" }, "specLocation": "indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "ShardStoreNode", "namespace": "indices.shard_stores" } } ], "meta": { "key": "node_id", "value": "node" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "name": { "name": "ShardStore", "namespace": "indices.shard_stores" }, "properties": [ { "name": "allocation", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStoreAllocation", "namespace": "indices.shard_stores" } } }, { "name": "allocation_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "store_exception", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStoreException", "namespace": "indices.shard_stores" } } } ], "specLocation": "indices/shard_stores/types.ts#L29-L36" }, { "kind": "enum", "members": [ { "name": "primary" }, { "name": "replica" }, { "name": "unused" } ], "name": { "name": "ShardStoreAllocation", "namespace": "indices.shard_stores" }, "specLocation": "indices/shard_stores/types.ts#L47-L51" }, { "kind": "interface", "name": { "name": "ShardStoreException", "namespace": "indices.shard_stores" }, "properties": [ { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/shard_stores/types.ts#L53-L56" }, { "kind": "interface", "name": { "name": "ShardStoreNode", "namespace": "indices.shard_stores" }, "properties": [ { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "ephemeral_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "external_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } } ], "specLocation": "indices/shard_stores/types.ts#L38-L45" }, { "kind": "enum", "members": [ { "description": "The primary shard and all replica shards are assigned.", "name": "green" }, { "description": "One or more replica shards are unassigned.", "name": "yellow" }, { "description": "The primary shard is unassigned.", "name": "red" }, { "description": "Return all shards, regardless of health status.", "name": "all" } ], "name": { "name": "ShardStoreStatus", "namespace": "indices.shard_stores" }, "specLocation": "indices/shard_stores/types.ts#L62-L71" }, { "kind": "interface", "name": { "name": "ShardStoreWrapper", "namespace": "indices.shard_stores" }, "properties": [ { "name": "stores", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardStore", "namespace": "indices.shard_stores" } } } } ], "specLocation": "indices/shard_stores/types.ts#L58-L60" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The key is the alias name.\nIndex alias names support date math.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Configuration options for the target index.", "name": "settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Shrink an index.\nShrink an index into a new index with fewer primary shards.\n\nBefore you can shrink an index:\n\n* The index must be read-only.\n* A copy of every shard in the index must reside on the same node.\n* The index must have a green health status.\n\nTo make shard allocation easier, we recommend you also remove the index's replica shards.\nYou can later re-add replica shards as part of the shrink operation.\n\nThe requested number of primary shards in the target index must be a factor of the number of shards in the source index.\nFor example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1.\nIf the number of shards in the index is a prime number it can only be shrunk into a single primary shard\n Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node.\n\nThe current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk.\n\nA shrink operation:\n\n* Creates a new target index with the same definition as the source index, but with a smaller number of primary shards.\n* Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks.\n* Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the `.routing.allocation.initial_recovery._id` index setting.\n\nIMPORTANT: Indices can only be shrunk if they satisfy the following requirements:\n\n* The target index must not exist.\n* The source index must have more primary shards than the target index.\n* The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index.\n* The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard.\n* The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index.", "examples": { "indicesShrinkRequestExample1": { "summary": "Shrink an existing index into a new index with fewer primary shards.", "value": "{\n \"settings\": {\n \"index.routing.allocation.require._name\": null,\n \"index.blocks.write\": null\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.shrink" }, "path": [ { "description": "Name of the source index to shrink.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Name of the target index to create.", "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "indices/shrink/IndicesShrinkRequest.ts#L27-L113" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "indices.shrink" }, "specLocation": "indices/shrink/IndicesShrinkResponse.ts#L22-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Simulate an index.\nGet the index configuration that would be applied to the specified index from an existing index template.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.simulate_index_template" }, "path": [ { "description": "Name of the index to simulate", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one", "name": "create", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "User defined reason for dry-run creating the new template for simulation purposes", "name": "cause", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "If true, returns all relevant default configurations for the index template.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateRequest.ts#L24-L67" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "overlapping", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Overlapping", "namespace": "indices.simulate_template" } } } }, { "name": "template", "required": true, "type": { "kind": "instance_of", "type": { "name": "Template", "namespace": "indices.simulate_template" } } } ] }, "examples": { "indicesSimulateIndexTemplateResponseExample1": { "description": "A successful response from `POST /_index_template/_simulate_index/my-index-000001`.", "value": "{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_shards\" : \"2\",\n \"number_of_replicas\" : \"0\",\n \"routing\" : {\n \"allocation\" : {\n \"include\" : {\n \"_tier_preference\" : \"data_content\"\n }\n }\n }\n }\n },\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n {\n \"name\" : \"template_1\",\n \"index_patterns\" : [\n \"my-index-*\"\n ]\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.simulate_index_template" }, "specLocation": "indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30" }, { "kind": "interface", "name": { "name": "Overlapping", "namespace": "indices.simulate_template" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "index_patterns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false`, then indices or data streams matching the template must always be explicitly created, and may never be automatically created.", "name": "allow_auto_create", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation.", "docId": "avoid-index-pattern-collisions", "docUrl": "https://www.elastic.co/docs/manage-data/data-store/templates#avoid-index-pattern-collisions", "name": "index_patterns", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "An ordered list of component template names.\nComponent templates are merged in the order specified, meaning that the last component template specified has the highest precedence.", "name": "composed_of", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } }, { "description": "Template to be applied.\nIt may optionally include an `aliases`, `mappings`, or `settings` configuration.", "name": "template", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexTemplateMapping", "namespace": "indices.put_index_template" } } }, { "description": "If this object is included, the template is used to create data streams and their backing indices.\nSupports an empty object.\nData streams require a matching index template with a `data_stream` object.", "name": "data_stream", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreamVisibility", "namespace": "indices._types" } } }, { "description": "Priority to determine index template precedence when a new data stream or index is created.\nThe index template with the highest priority is chosen.\nIf no priority is specified the template is treated as though it is of priority 0 (lowest priority).\nThis number is not automatically generated by Elasticsearch.", "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Version number used to manage index templates externally.\nThis number is not automatically generated by Elasticsearch.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Optional user metadata about the index template.\nMay have any contents.\nThis map is not automatically generated by Elasticsearch.", "docId": "mapping-meta-field", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/mapping-meta-field", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The configuration option ignore_missing_component_templates can be used when an index template\nreferences a component template that might not exist", "name": "ignore_missing_component_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Marks this index template as deprecated. When creating or updating a non-deprecated index template\nthat uses deprecated components, Elasticsearch will emit a deprecation warning.", "name": "deprecated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Simulate an index template.\nGet the index configuration that would be applied by a particular index template.", "examples": { "indicesSimulateTemplateRequestExample1": { "description": "To see what settings will be applied by a template before you add it to the cluster, you can pass a template configuration in the request body. The specified template is used for the simulation if it has a higher priority than existing templates.\n", "value": "{\n \"index_patterns\": [\"my-index-*\"],\n \"composed_of\": [\"ct2\"],\n \"priority\": 10,\n \"template\": {\n \"settings\": {\n \"index.number_of_replicas\": 1\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.simulate_template" }, "path": [ { "description": "Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit\nthis parameter and specify the template configuration in the request body.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.", "name": "create", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "User defined reason for dry-run creating the new template for simulation purposes", "name": "cause", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "availability": { "serverless": { "stability": "stable" }, "stack": { "since": "8.11.0", "stability": "stable" } }, "description": "If true, returns all relevant default configurations for the index template.", "name": "include_defaults", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L135" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "overlapping", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Overlapping", "namespace": "indices.simulate_template" } } } }, { "name": "template", "required": true, "type": { "kind": "instance_of", "type": { "name": "Template", "namespace": "indices.simulate_template" } } } ] }, "examples": { "indicesSimulateTemplateResponseExample2": { "description": "A successful response from `POST /_index_template/_simulate` with a template configuration in the request body. The response shows any overlapping templates with a lower priority.\n", "value": "{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_replicas\" : \"1\",\n \"routing\" : {\n \"allocation\" : {\n \"include\" : {\n \"_tier_preference\" : \"data_content\"\n }\n }\n }\n }\n },\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n {\n \"name\" : \"final-template\",\n \"index_patterns\" : [\n \"my-index-*\"\n ]\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "indices.simulate_template" }, "specLocation": "indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31" }, { "kind": "interface", "name": { "name": "Template", "namespace": "indices.simulate_template" }, "properties": [ { "name": "aliases", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } } ], "specLocation": "indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Aliases for the resulting index.", "name": "aliases", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Alias", "namespace": "indices._types" } } } }, { "description": "Configuration options for the target index.", "name": "settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Split an index.\nSplit an index into a new index with more primary shards.\n* Before you can split an index:\n\n* The index must be read-only.\n* The cluster health status must be green.\n\nYou can do make an index read-only with the following request using the add index block API:\n\n```\nPUT /my_source_index/_block/write\n```\n\nThe current write index on a data stream cannot be split.\nIn order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split.\n\nThe number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the `index.number_of_routing_shards` setting.\nThe number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing.\nFor instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3.\n\nA split operation:\n\n* Creates a new target index with the same definition as the source index, but with a larger number of primary shards.\n* Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process.\n* Hashes all documents again, after low level files are created, to delete documents that belong to a different shard.\n* Recovers the target index as though it were a closed index which had just been re-opened.\n\nIMPORTANT: Indices can only be split if they satisfy the following requirements:\n\n* The target index must not exist.\n* The source index must have fewer primary shards than the target index.\n* The number of primary shards in the target index must be a multiple of the number of primary shards in the source index.\n* The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index.", "examples": { "indicesSplitRequestExample1": { "description": "Split an existing index into a new index with more primary shards.", "value": "{\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.split" }, "path": [ { "description": "Name of the source index to split.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Name of the target index to create.", "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", "required": false, "serverDefault": "1", "type": { "kind": "instance_of", "type": { "name": "WaitForActiveShards", "namespace": "_types" } } } ], "specLocation": "indices/split/IndicesSplitRequest.ts#L27-L113" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "shards_acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "indices.split" }, "specLocation": "indices/split/IndicesSplitResponse.ts#L22-L28" }, { "kind": "enum", "members": [ { "name": "open" }, { "name": "close" } ], "name": { "name": "IndexMetadataState", "namespace": "indices.stats" }, "specLocation": "indices/stats/types.ts#L225-L232" }, { "kind": "interface", "name": { "name": "IndexStats", "namespace": "indices.stats" }, "properties": [ { "description": "Contains statistics about completions across all shards assigned to the node.", "name": "completion", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompletionStats", "namespace": "_types" } } }, { "description": "Contains statistics about documents across all primary shards assigned to the node.", "name": "docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "DocStats", "namespace": "_types" } } }, { "description": "Contains statistics about the field data cache across all shards assigned to the node.", "name": "fielddata", "required": false, "type": { "kind": "instance_of", "type": { "name": "FielddataStats", "namespace": "_types" } } }, { "description": "Contains statistics about flush operations for the node.", "name": "flush", "required": false, "type": { "kind": "instance_of", "type": { "name": "FlushStats", "namespace": "_types" } } }, { "description": "Contains statistics about get operations for the node.", "name": "get", "required": false, "type": { "kind": "instance_of", "type": { "name": "GetStats", "namespace": "_types" } } }, { "description": "Contains statistics about indexing operations for the node.", "name": "indexing", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingStats", "namespace": "_types" } } }, { "description": "Contains statistics about indices operations for the node.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesStats", "namespace": "indices.stats" } } }, { "description": "Contains statistics about merge operations for the node.", "name": "merges", "required": false, "type": { "kind": "instance_of", "type": { "name": "MergesStats", "namespace": "_types" } } }, { "description": "Contains statistics about the query cache across all shards assigned to the node.", "name": "query_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryCacheStats", "namespace": "_types" } } }, { "description": "Contains statistics about recovery operations for the node.", "name": "recovery", "required": false, "type": { "kind": "instance_of", "type": { "name": "RecoveryStats", "namespace": "_types" } } }, { "description": "Contains statistics about refresh operations for the node.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "RefreshStats", "namespace": "_types" } } }, { "description": "Contains statistics about the request cache across all shards assigned to the node.", "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "RequestCacheStats", "namespace": "_types" } } }, { "description": "Contains statistics about search operations for the node.", "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchStats", "namespace": "_types" } } }, { "description": "Contains statistics about segments across all shards assigned to the node.", "name": "segments", "required": false, "type": { "kind": "instance_of", "type": { "name": "SegmentsStats", "namespace": "_types" } } }, { "description": "Contains statistics about the size of shards assigned to the node.", "name": "store", "required": false, "type": { "kind": "instance_of", "type": { "name": "StoreStats", "namespace": "_types" } } }, { "description": "Contains statistics about transaction log operations for the node.", "name": "translog", "required": false, "type": { "kind": "instance_of", "type": { "name": "TranslogStats", "namespace": "_types" } } }, { "description": "Contains statistics about index warming operations for the node.", "name": "warmer", "required": false, "type": { "kind": "instance_of", "type": { "name": "WarmerStats", "namespace": "_types" } } }, { "name": "bulk", "required": false, "type": { "kind": "instance_of", "type": { "name": "BulkStats", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "name": "shard_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardsTotalStats", "namespace": "indices.stats" } } } ], "specLocation": "indices/stats/types.ts#L52-L93" }, { "kind": "interface", "name": { "name": "IndicesStats", "namespace": "indices.stats" }, "properties": [ { "name": "primaries", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexStats", "namespace": "indices.stats" } } }, { "name": "shards", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardStats", "namespace": "indices.stats" } } } } }, { "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexStats", "namespace": "indices.stats" } } }, { "name": "uuid", "required": false, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.1.0" } }, "name": "health", "required": false, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.1.0" } }, "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexMetadataState", "namespace": "indices.stats" } } } ], "specLocation": "indices/stats/types.ts#L95-L110" }, { "kind": "interface", "name": { "name": "MappingStats", "namespace": "indices.stats" }, "properties": [ { "name": "total_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_estimated_overhead", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "total_estimated_overhead_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/stats/types.ts#L186-L190" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get index statistics.\nFor data streams, the API retrieves statistics for the stream's backing indices.\n\nBy default, the returned statistics are index-level with `primaries` and `total` aggregations.\n`primaries` are the values for only the primary shards.\n`total` are the accumulated values for both primary and replica shards.\n\nTo get shard-level statistics, set the `level` parameter to `shards`.\n\nNOTE: When moving to another node, the shard-level statistics for a shard are cleared.\nAlthough the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.stats" }, "path": [ { "description": "Limit the information returned the specific metrics.", "name": "metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } }, { "description": "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.", "name": "completion_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target data streams, this argument\ndetermines whether wildcard expressions match hidden data streams. Supports comma-separated values,\nsuch as `open,hidden`.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Comma-separated list or wildcard expressions of fields to include in fielddata statistics.", "name": "fielddata_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Comma-separated list or wildcard expressions of fields to include in the statistics.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If true, statistics are not collected from closed indices.", "name": "forbid_closed_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Comma-separated list of search groups to include in the search statistics.", "name": "groups", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).", "name": "include_segment_file_sizes", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the response includes information from segments that are not loaded into memory.", "name": "include_unloaded_segments", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether statistics are aggregated at the cluster, index, or shard level.", "name": "level", "required": false, "type": { "kind": "instance_of", "type": { "name": "Level", "namespace": "_types" } } } ], "specLocation": "indices/stats/IndicesStatsRequest.ts#L29-L113" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "indices", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndicesStats", "namespace": "indices.stats" } } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "_all", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndicesStats", "namespace": "indices.stats" } } } ] }, "name": { "name": "Response", "namespace": "indices.stats" }, "specLocation": "indices/stats/IndicesStatsResponse.ts#L24-L30" }, { "kind": "interface", "name": { "name": "ShardCommit", "namespace": "indices.stats" }, "properties": [ { "name": "generation", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "num_docs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "user_data", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "indices/stats/types.ts#L112-L117" }, { "kind": "interface", "name": { "name": "ShardFileSizeInfo", "namespace": "indices.stats" }, "properties": [ { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "average_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/stats/types.ts#L124-L131" }, { "kind": "interface", "name": { "name": "ShardLease", "namespace": "indices.stats" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "retaining_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/stats/types.ts#L133-L138" }, { "kind": "interface", "name": { "name": "ShardPath", "namespace": "indices.stats" }, "properties": [ { "name": "data_path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "is_custom_data_path", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "state_path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/stats/types.ts#L140-L144" }, { "kind": "interface", "name": { "name": "ShardQueryCache", "namespace": "indices.stats" }, "properties": [ { "name": "cache_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "cache_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "evictions", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "hit_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "memory_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "miss_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/stats/types.ts#L146-L154" }, { "kind": "interface", "name": { "name": "ShardRetentionLeases", "namespace": "indices.stats" }, "properties": [ { "name": "primary_term", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "leases", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ShardLease", "namespace": "indices.stats" } } } } ], "specLocation": "indices/stats/types.ts#L156-L160" }, { "kind": "interface", "name": { "name": "ShardRouting", "namespace": "indices.stats" }, "properties": [ { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "primary", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "relocating_node", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardRoutingState", "namespace": "indices.stats" } } } ], "specLocation": "indices/stats/types.ts#L162-L167" }, { "kind": "enum", "members": [ { "name": "UNASSIGNED" }, { "name": "INITIALIZING" }, { "name": "STARTED" }, { "name": "RELOCATING" } ], "name": { "name": "ShardRoutingState", "namespace": "indices.stats" }, "specLocation": "indices/stats/types.ts#L169-L174" }, { "kind": "interface", "name": { "name": "ShardSequenceNumber", "namespace": "indices.stats" }, "properties": [ { "name": "global_checkpoint", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "local_checkpoint", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } } ], "specLocation": "indices/stats/types.ts#L176-L180" }, { "kind": "interface", "name": { "name": "ShardStats", "namespace": "indices.stats" }, "properties": [ { "name": "commit", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardCommit", "namespace": "indices.stats" } } }, { "name": "completion", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompletionStats", "namespace": "_types" } } }, { "name": "docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "DocStats", "namespace": "_types" } } }, { "name": "fielddata", "required": false, "type": { "kind": "instance_of", "type": { "name": "FielddataStats", "namespace": "_types" } } }, { "name": "flush", "required": false, "type": { "kind": "instance_of", "type": { "name": "FlushStats", "namespace": "_types" } } }, { "name": "get", "required": false, "type": { "kind": "instance_of", "type": { "name": "GetStats", "namespace": "_types" } } }, { "name": "indexing", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingStats", "namespace": "_types" } } }, { "name": "mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "MappingStats", "namespace": "indices.stats" } } }, { "name": "merges", "required": false, "type": { "kind": "instance_of", "type": { "name": "MergesStats", "namespace": "_types" } } }, { "name": "shard_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardPath", "namespace": "indices.stats" } } }, { "name": "query_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardQueryCache", "namespace": "indices.stats" } } }, { "name": "recovery", "required": false, "type": { "kind": "instance_of", "type": { "name": "RecoveryStats", "namespace": "_types" } } }, { "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "RefreshStats", "namespace": "_types" } } }, { "name": "request_cache", "required": false, "type": { "kind": "instance_of", "type": { "name": "RequestCacheStats", "namespace": "_types" } } }, { "name": "retention_leases", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardRetentionLeases", "namespace": "indices.stats" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardRouting", "namespace": "indices.stats" } } }, { "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchStats", "namespace": "_types" } } }, { "name": "segments", "required": false, "type": { "kind": "instance_of", "type": { "name": "SegmentsStats", "namespace": "_types" } } }, { "name": "seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardSequenceNumber", "namespace": "indices.stats" } } }, { "name": "store", "required": false, "type": { "kind": "instance_of", "type": { "name": "StoreStats", "namespace": "_types" } } }, { "name": "translog", "required": false, "type": { "kind": "instance_of", "type": { "name": "TranslogStats", "namespace": "_types" } } }, { "name": "warmer", "required": false, "type": { "kind": "instance_of", "type": { "name": "WarmerStats", "namespace": "_types" } } }, { "name": "bulk", "required": false, "type": { "kind": "instance_of", "type": { "name": "BulkStats", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "name": "shards", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "shard_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardsTotalStats", "namespace": "indices.stats" } } }, { "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesStats", "namespace": "indices.stats" } } } ], "specLocation": "indices/stats/types.ts#L192-L223" }, { "kind": "interface", "name": { "name": "ShardsTotalStats", "namespace": "indices.stats" }, "properties": [ { "name": "total_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "indices/stats/types.ts#L182-L184" }, { "kind": "interface", "name": { "name": "Action", "namespace": "indices.update_aliases" }, "properties": [ { "description": "Adds a data stream or index to an alias.\nIf the alias doesn’t exist, the `add` action creates it.", "name": "add", "required": false, "type": { "kind": "instance_of", "type": { "name": "AddAction", "namespace": "indices.update_aliases" } } }, { "description": "Removes a data stream or index from an alias.", "name": "remove", "required": false, "type": { "kind": "instance_of", "type": { "name": "RemoveAction", "namespace": "indices.update_aliases" } } }, { "description": "Deletes an index.\nYou cannot use this action on aliases or data streams.", "name": "remove_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "RemoveIndexAction", "namespace": "indices.update_aliases" } } } ], "specLocation": "indices/update_aliases/types.ts#L23-L39", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "AddAction", "namespace": "indices.update_aliases" }, "properties": [ { "description": "Alias for the action.\nIndex alias names support date math.", "name": "alias", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } }, { "description": "Aliases for the action.\nIndex alias names support date math.", "name": "aliases", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } } ] } }, { "description": "Query used to limit documents the alias can access.", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Data stream or index for the action.\nSupports wildcards (`*`).", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Data streams or indices for the action.\nSupports wildcards (`*`).", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Value used to route indexing operations to a specific shard.\nIf specified, this overwrites the `routing` value for indexing operations.\nData stream aliases don’t support this parameter.", "name": "index_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `true`, the alias is hidden.", "name": "is_hidden", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, sets the write index or data stream for the alias.", "name": "is_write_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Value used to route indexing and search operations to a specific shard.\nData stream aliases don’t support this parameter.", "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "Value used to route search operations to a specific shard.\nIf specified, this overwrites the `routing` value for search operations.\nData stream aliases don’t support this parameter.", "name": "search_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "Routing", "namespace": "_types" } } }, { "description": "If `true`, the alias must exist to perform the action.", "name": "must_exist", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/update_aliases/types.ts#L41-L95" }, { "kind": "interface", "name": { "name": "RemoveAction", "namespace": "indices.update_aliases" }, "properties": [ { "description": "Alias for the action.\nIndex alias names support date math.", "name": "alias", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } }, { "description": "Aliases for the action.\nIndex alias names support date math.", "name": "aliases", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexAlias", "namespace": "_types" } } } ] } }, { "description": "Data stream or index for the action.\nSupports wildcards (`*`).", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Data streams or indices for the action.\nSupports wildcards (`*`).", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "If `true`, the alias must exist to perform the action.", "name": "must_exist", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/update_aliases/types.ts#L97-L122" }, { "kind": "interface", "name": { "name": "RemoveIndexAction", "namespace": "indices.update_aliases" }, "properties": [ { "description": "Data stream or index for the action.\nSupports wildcards (`*`).", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Data streams or indices for the action.\nSupports wildcards (`*`).", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "If `true`, the alias must exist to perform the action.", "name": "must_exist", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/update_aliases/types.ts#L124-L139" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Actions to perform.", "name": "actions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Action", "namespace": "indices.update_aliases" } } } } ] }, "description": "Create or update an alias.\nAdds a data stream or index to an alias.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.update_aliases" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "indices.update_aliases" }, "specLocation": "indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "IndicesValidationExplanation", "namespace": "indices.validate_query" }, "properties": [ { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "valid", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Query in the Lucene query string syntax.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] }, "description": "Validate a query.\nValidates a query without running it.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "indices.validate_query" }, "path": [ { "description": "Comma-separated list of data streams, indices, and aliases to search.\nSupports wildcards (`*`).\nTo search all data streams or indices, omit this parameter or use `*` or `_all`.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.\nThis behavior applies even if the request targets other open indices.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the validation is executed on all shards instead of one random shard per index.", "name": "all_shards", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Analyzer to use for the query string.\nThis parameter can only be used when the `q` query string parameter is specified.", "name": "analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, wildcard and prefix queries are analyzed.", "name": "analyze_wildcard", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default operator for query string query: `AND` or `OR`.", "name": "default_operator", "required": false, "serverDefault": "OR", "type": { "kind": "instance_of", "type": { "name": "Operator", "namespace": "_types.query_dsl" } } }, { "description": "Field to use as default where no field prefix is given in the query string.\nThis parameter can only be used when the `q` query string parameter is specified.", "name": "df", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match.\nIf the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.\nSupports comma-separated values, such as `open,hidden`.\nValid values are: `all`, `open`, `closed`, `hidden`, `none`.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "If `true`, the response returns detailed information if an error has occurred.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error if it targets a missing or closed index.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.", "name": "lenient", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, returns a more detailed explanation showing the actual Lucene query that will be executed.", "name": "rewrite", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Query in the Lucene query string syntax.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "explanations", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesValidationExplanation", "namespace": "indices.validate_query" } } } }, { "name": "_shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "valid", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "indices.validate_query" }, "specLocation": "indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30" }, { "kind": "interface", "name": { "name": "AdaptiveAllocations", "namespace": "inference._types" }, "properties": [ { "description": "Turn on `adaptive_allocations`.", "name": "enabled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum number of allocations to scale to.\nIf set, it must be greater than or equal to `min_number_of_allocations`.", "name": "max_number_of_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum number of allocations to scale to.\nIf set, it must be greater than or equal to 0.\nIf not defined, the deployment scales to 0.", "name": "min_number_of_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L60-L77" }, { "kind": "interface", "name": { "name": "AlibabaCloudServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key for the AlibabaCloud AI Search API.", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the host address used for the inference task.\nYou can find the host address in the API keys section of the documentation.", "extDocId": "alibabacloud-api-keys", "extDocUrl": "https://opensearch.console.aliyun.com/cn-shanghai/rag/api-key", "name": "host", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search.\nBy default, the `alibabacloud-ai-search` service sets the number of requests allowed per minute to `1000`.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The name of the model service to use for the inference task.\nThe following service IDs are available for the `completion` task:\n\n* `ops-qwen-turbo`\n* `qwen-turbo`\n* `qwen-plus`\n* `qwen-max ÷ qwen-max-longcontext`\n\nThe following service ID is available for the `rerank` task:\n\n* `ops-bge-reranker-larger`\n\nThe following service ID is available for the `sparse_embedding` task:\n\n* `ops-text-sparse-embedding-001`\n\nThe following service IDs are available for the `text_embedding` task:\n\n`ops-text-embedding-001`\n`ops-text-embedding-zh-001`\n`ops-text-embedding-en-001`\n`ops-text-embedding-002`", "name": "service_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the workspace used for the inference task.", "name": "workspace", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L219-L264" }, { "kind": "enum", "members": [ { "name": "alibabacloud-ai-search" } ], "name": { "name": "AlibabaCloudServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L289-L291" }, { "kind": "interface", "name": { "name": "AlibabaCloudTaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `sparse_embedding` or `text_embedding` task, specify the type of input passed to the model.\nValid values are:\n\n* `ingest` for storing document embeddings in a vector database.\n* `search` for storing embeddings of search queries run against a vector database to find relevant documents.", "name": "input_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "For a `sparse_embedding` task, it affects whether the token name will be returned in the response.\nIt defaults to `false`, which means only the token ID will be returned in the response.", "name": "return_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L266-L280" }, { "kind": "enum", "members": [ { "name": "completion" }, { "name": "rerank" }, { "name": "space_embedding" }, { "name": "text_embedding" } ], "name": { "name": "AlibabaCloudTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L282-L287" }, { "kind": "interface", "name": { "name": "AmazonBedrockServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests.", "name": "access_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The base model ID or an ARN to a custom model based on a foundational model.\nThe base model IDs can be found in the Amazon Bedrock documentation.\nNote that the model ID must be available for the provider chosen and your IAM user must have access to the model.", "extDocId": "amazonbedrock-models", "extDocUrl": "https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html", "name": "model", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The model provider for your deployment.\nNote that some providers may support only certain task types.\nSupported providers include:\n\n* `amazontitan` - available for `text_embedding` and `completion` task types\n* `anthropic` - available for `completion` task type only\n* `ai21labs` - available for `completion` task type only\n* `cohere` - available for `text_embedding` and `completion` task types\n* `meta` - available for `completion` task type only\n* `mistral` - available for `completion` task type only", "name": "provider", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The region that your model or ARN is deployed in.\nThe list of available regions per model can be found in the Amazon Bedrock documentation.", "extDocId": "amazonbedrock-models", "extDocUrl": "https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html", "name": "region", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Watsonx.\nBy default, the `watsonxai` service sets the number of requests allowed per minute to 120.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "A valid AWS secret key that is paired with the `access_key`.\nFor informationg about creating and managing access and secret keys, refer to the AWS documentation.", "extDocId": "amazonbedrock-secret-keys", "extDocUrl": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html", "name": "secret_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L293-L335" }, { "kind": "enum", "members": [ { "name": "amazonbedrock" } ], "name": { "name": "AmazonBedrockServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L368-L370" }, { "kind": "interface", "name": { "name": "AmazonBedrockTaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `completion` task, it sets the maximum number for the output tokens to be generated.", "name": "max_new_tokens", "required": false, "serverDefault": 64, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "For a `completion` task, it is a number between 0.0 and 1.0 that controls the apparent creativity of the results.\nAt temperature 0.0 the model is most deterministic, at temperature 1.0 most random.\nIt should not be used if `top_p` or `top_k` is specified.", "name": "temperature", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "For a `completion` task, it limits samples to the top-K most likely words, balancing coherence and variability.\nIt is only available for anthropic, cohere, and mistral providers.\nIt is an alternative to `temperature`; it should not be used if `temperature` is specified.", "name": "top_k", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "For a `completion` task, it is a number in the range of 0.0 to 1.0, to eliminate low-probability tokens.\nTop-p uses nucleus sampling to select top tokens whose sum of likelihoods does not exceed a certain value, ensuring both variety and coherence.\nIt is an alternative to `temperature`; it should not be used if `temperature` is specified.", "name": "top_p", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L337-L361" }, { "kind": "enum", "members": [ { "name": "completion" }, { "name": "text_embedding" } ], "name": { "name": "AmazonBedrockTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L363-L366" }, { "kind": "interface", "name": { "name": "AnthropicServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key for the Anthropic API.", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the Anthropic documentation for the list of supported models.", "extDocId": "anothropic-models", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Anthropic.\nBy default, the `anthropic` service sets the number of requests allowed per minute to 50.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L372-L388" }, { "kind": "enum", "members": [ { "name": "anthropic" } ], "name": { "name": "AnthropicServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L421-L423" }, { "kind": "interface", "name": { "name": "AnthropicTaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `completion` task, it is the maximum number of tokens to generate before stopping.", "name": "max_tokens", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "For a `completion` task, it is the amount of randomness injected into the response.\nFor more details about the supported range, refer to Anthropic documentation.", "extDocId": "anthropic-messages", "extDocUrl": "https://docs.anthropic.com/en/api/messages", "name": "temperature", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "For a `completion` task, it specifies to only sample from the top K options for each subsequent token.\nIt is recommended for advanced use cases only.\nYou usually only need to use `temperature`.", "name": "top_k", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "For a `completion` task, it specifies to use Anthropic's nucleus sampling.\nIn nucleus sampling, Anthropic computes the cumulative distribution over all the options for each subsequent token in decreasing probability order and cuts it off once it reaches the specified probability.\nYou should either alter `temperature` or `top_p`, but not both.\nIt is recommended for advanced use cases only.\nYou usually only need to use `temperature`.", "name": "top_p", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L390-L415" }, { "kind": "enum", "members": [ { "name": "completion" } ], "name": { "name": "AnthropicTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L417-L419" }, { "kind": "interface", "name": { "name": "AzureAiStudioServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key of your Azure AI Studio model deployment.\nThis key can be found on the overview page for your deployment in the management section of your Azure AI Studio account.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "azureaistudio-api-keys", "extDocUrl": "https://ai.azure.com/", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of endpoint that is available for deployment through Azure AI Studio: `token` or `realtime`.\nThe `token` endpoint type is for \"pay as you go\" endpoints that are billed per token.\nThe `realtime` endpoint type is for \"real-time\" endpoints that are billed per hour of usage.", "extDocId": "azureaistudio-endpoint-types", "extDocUrl": "https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/deployments-overview#billing-for-deploying-and-inferencing-llms-in-azure-ai-studio", "name": "endpoint_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The target URL of your Azure AI Studio model deployment.\nThis can be found on the overview page for your deployment in the management section of your Azure AI Studio account.", "name": "target", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The model provider for your deployment.\nNote that some providers may support only certain task types.\nSupported providers include:\n\n* `cohere` - available for `text_embedding` and `completion` task types\n* `databricks` - available for `completion` task type only\n* `meta` - available for `completion` task type only\n* `microsoft_phi` - available for `completion` task type only\n* `mistral` - available for `completion` task type only\n* `openai` - available for `text_embedding` and `completion` task types", "name": "provider", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Azure AI Studio.\nBy default, the `azureaistudio` service sets the number of requests allowed per minute to 240.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L425-L467" }, { "kind": "enum", "members": [ { "name": "azureaistudio" } ], "name": { "name": "AzureAiStudioServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L504-L506" }, { "kind": "interface", "name": { "name": "AzureAiStudioTaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `completion` task, instruct the inference process to perform sampling.\nIt has no effect unless `temperature` or `top_p` is specified.", "name": "do_sample", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "For a `completion` task, provide a hint for the maximum number of output tokens to be generated.", "name": "max_new_tokens", "required": false, "serverDefault": 64, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "For a `completion` task, control the apparent creativity of generated completions with a sampling temperature.\nIt must be a number in the range of 0.0 to 2.0.\nIt should not be used if `top_p` is specified.", "name": "temperature", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "For a `completion` task, make the model consider the results of the tokens with nucleus sampling probability.\nIt is an alternative value to `temperature` and must be a number in the range of 0.0 to 2.0.\nIt should not be used if `temperature` is specified.", "name": "top_p", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "For a `text_embedding` task, specify the user issuing the request.\nThis information can be used for abuse detection.", "name": "user", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L469-L497" }, { "kind": "enum", "members": [ { "name": "completion" }, { "name": "text_embedding" } ], "name": { "name": "AzureAiStudioTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L499-L502" }, { "kind": "interface", "name": { "name": "AzureOpenAIServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key for your Azure OpenAI account.\nYou must specify either `api_key` or `entra_id`.\nIf you do not provide either or you provide both, you will receive an error when you try to create your model.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "azureopenai-auth", "extDocUrl": "https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#authentication", "name": "api_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The Azure API version ID to use.\nIt is recommended to use the latest supported non-preview version.", "name": "api_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The deployment name of your deployed models.\nYour Azure OpenAI deployments can be found though the Azure OpenAI Studio portal that is linked to your subscription.", "extDocId": "azureopenai", "extDocUrl": "https://oai.azure.com/", "name": "deployment_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A valid Microsoft Entra token.\nYou must specify either `api_key` or `entra_id`.\nIf you do not provide either or you provide both, you will receive an error when you try to create your model.", "extDocId": "azureopenai-auth", "extDocUrl": "https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#authentication", "name": "entra_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Azure.\nThe `azureopenai` service sets a default number of requests allowed per minute depending on the task type.\nFor `text_embedding`, it is set to `1440`.\nFor `completion`, it is set to `120`.", "extDocId": "azureopenai-quota-limits", "extDocUrl": "https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The name of your Azure OpenAI resource.\nYou can find this from the list of resources in the Azure Portal for your subscription.", "extDocId": "azureopenai-portal", "extDocUrl": "https://portal.azure.com/#view/HubsExtension/BrowseAll", "name": "resource_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L508-L553" }, { "kind": "enum", "members": [ { "name": "azureopenai" } ], "name": { "name": "AzureOpenAIServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L568-L570" }, { "kind": "interface", "name": { "name": "AzureOpenAITaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `completion` or `text_embedding` task, specify the user issuing the request.\nThis information can be used for abuse detection.", "name": "user", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L555-L561" }, { "kind": "enum", "members": [ { "name": "completion" }, { "name": "text_embedding" } ], "name": { "name": "AzureOpenAITaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L563-L566" }, { "kind": "enum", "members": [ { "name": "byte" }, { "name": "float" }, { "name": "int8" } ], "name": { "name": "CohereEmbeddingType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L625-L629" }, { "kind": "enum", "members": [ { "name": "classification" }, { "name": "clustering" }, { "name": "ingest" }, { "name": "search" } ], "name": { "name": "CohereInputType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L631-L636" }, { "kind": "interface", "name": { "name": "CohereServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key for your Cohere account.\nYou can find or create your Cohere API keys on the Cohere API key settings page.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "cohere-api-keys", "extDocUrl": "https://dashboard.cohere.com/api-keys", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "For a `text_embedding` task, the types of embeddings you want to get back.\nUse `byte` for signed int8 embeddings (this is a synonym of `int8`).\nUse `float` for the default float embeddings.\nUse `int8` for signed int8 embeddings.", "name": "embedding_type", "required": false, "serverDefault": "float", "type": { "kind": "instance_of", "type": { "name": "CohereEmbeddingType", "namespace": "inference._types" } } }, { "description": "For a `completion`, `rerank`, or `text_embedding` task, the name of the model to use for the inference task.\n\n* For the available `completion` models, refer to the [Cohere command docs](https://docs.cohere.com/docs/models#command).\n* For the available `rerank` models, refer to the [Cohere rerank docs](https://docs.cohere.com/reference/rerank-1).\n* For the available `text_embedding` models, refer to [Cohere embed docs](https://docs.cohere.com/reference/embed).\n\nThe default value for a text embedding task is `embed-english-v2.0`.", "name": "model_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Cohere.\nBy default, the `cohere` service sets the number of requests allowed per minute to 10000.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The similarity measure.\nIf the `embedding_type` is `float`, the default value is `dot_product`.\nIf the `embedding_type` is `int8` or `byte`, the default value is `cosine`.", "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "CohereSimilarityType", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L572-L613" }, { "kind": "enum", "members": [ { "name": "cohere" } ], "name": { "name": "CohereServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L621-L623" }, { "kind": "enum", "members": [ { "name": "cosine" }, { "name": "dot_product" }, { "name": "l2_norm" } ], "name": { "name": "CohereSimilarityType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L638-L642" }, { "kind": "interface", "name": { "name": "CohereTaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `text_embedding` task, the type of input passed to the model.\nValid values are:\n\n* `classification`: Use it for embeddings passed through a text classifier.\n* `clustering`: Use it for the embeddings run through a clustering algorithm.\n* `ingest`: Use it for storing document embeddings in a vector database.\n* `search`: Use it for storing embeddings of search queries run against a vector database to find relevant documents.\n\nIMPORTANT: The `input_type` field is required when using embedding models `v3` and higher.", "name": "input_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "CohereInputType", "namespace": "inference._types" } } }, { "description": "For a `rerank` task, return doc text within the results.", "name": "return_documents", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For a `rerank` task, the number of most relevant documents to return.\nIt defaults to the number of the documents.\nIf this inference endpoint is used in a `text_similarity_reranker` retriever query and `top_n` is set, it must be greater than or equal to `rank_window_size` in the query.", "name": "top_n", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "For a `text_embedding` task, the method to handle inputs longer than the maximum token length.\nValid values are:\n\n* `END`: When the input exceeds the maximum input token length, the end of the input is discarded.\n* `NONE`: When the input exceeds the maximum input token length, an error is returned.\n* `START`: When the input exceeds the maximum input token length, the start of the input is discarded.", "name": "truncate", "required": false, "type": { "kind": "instance_of", "type": { "name": "CohereTruncateType", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L650-L682" }, { "kind": "enum", "members": [ { "name": "completion" }, { "name": "rerank" }, { "name": "text_embedding" } ], "name": { "name": "CohereTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L615-L619" }, { "kind": "enum", "members": [ { "name": "END" }, { "name": "NONE" }, { "name": "START" } ], "name": { "name": "CohereTruncateType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L644-L648" }, { "kind": "interface", "description": "Defines the completion result.", "name": { "name": "CompletionInferenceResult", "namespace": "inference._types" }, "properties": [ { "name": "completion", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CompletionResult", "namespace": "inference._types" } } } } ], "specLocation": "inference/_types/Results.ts#L84-L89" }, { "kind": "interface", "description": "The completion result object", "name": { "name": "CompletionResult", "namespace": "inference._types" }, "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/Results.ts#L77-L82" }, { "kind": "interface", "description": "A list of tools that the model can call.", "name": { "name": "CompletionTool", "namespace": "inference._types" }, "properties": [ { "description": "The type of tool.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The function definition.", "name": "function", "required": true, "type": { "kind": "instance_of", "type": { "name": "CompletionToolFunction", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L205-L217" }, { "kind": "interface", "description": "Controls which tool is called by the model.", "name": { "name": "CompletionToolChoice", "namespace": "inference._types" }, "properties": [ { "description": "The type of the tool.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The tool choice function.", "name": "function", "required": true, "type": { "kind": "instance_of", "type": { "name": "CompletionToolChoiceFunction", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L168-L180" }, { "kind": "interface", "description": "The tool choice function.", "name": { "name": "CompletionToolChoiceFunction", "namespace": "inference._types" }, "properties": [ { "description": "The name of the function to call.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L157-L166" }, { "kind": "interface", "description": "The completion tool function definition.", "name": { "name": "CompletionToolFunction", "namespace": "inference._types" }, "properties": [ { "description": "A description of what the function does.\nThis is used by the model to choose when and how to call the function.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the function.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The parameters the functional accepts. This should be formatted as a JSON object.", "name": "parameters", "required": false, "type": { "kind": "user_defined_value" } }, { "description": "Whether to enable schema adherence when generating the function call.", "name": "strict", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L182-L203" }, { "kind": "type_alias", "codegenNames": [ "string", "object" ], "name": { "name": "CompletionToolType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L79-L82", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "CompletionToolChoice", "namespace": "inference._types" } } ] } }, { "kind": "interface", "description": "An object style representation of a single portion of a conversation.", "name": { "name": "ContentObject", "namespace": "inference._types" }, "properties": [ { "description": "The text content.", "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of content.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L84-L96" }, { "kind": "interface", "description": "Acknowledged response. For dry_run, contains the list of pipelines which reference the inference endpoint", "inherits": { "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } }, "name": { "name": "DeleteInferenceEndpointResult", "namespace": "inference._types" }, "properties": [ { "name": "pipelines", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "inference/_types/Results.ts#L110-L115" }, { "kind": "type_alias", "description": "Text Embedding results containing bytes are represented as Dense\nVectors of bytes.", "name": { "name": "DenseByteVector", "namespace": "inference._types" }, "specLocation": "inference/_types/Results.ts#L47-L51", "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "byte", "namespace": "_types" } } } }, { "kind": "type_alias", "description": "Text Embedding results are represented as Dense Vectors\nof floats.", "name": { "name": "DenseVector", "namespace": "inference._types" }, "specLocation": "inference/_types/Results.ts#L30-L34", "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } }, { "kind": "interface", "name": { "name": "ElasticsearchServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "Adaptive allocations configuration details.\nIf `enabled` is true, the number of allocations of the model is set based on the current load the process gets.\nWhen the load is high, a new model allocation is automatically created, respecting the value of `max_number_of_allocations` if it's set.\nWhen the load is low, a model allocation is automatically removed, respecting the value of `min_number_of_allocations` if it's set.\nIf `enabled` is true, do not set the number of allocations manually.", "name": "adaptive_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "AdaptiveAllocations", "namespace": "inference._types" } } }, { "description": "The deployment identifier for a trained model deployment.\nWhen `deployment_id` is used the `model_id` is optional.", "name": "deployment_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the model to use for the inference task.\nIt can be the ID of a built-in model (for example, `.multilingual-e5-small` for E5) or a text embedding model that was uploaded by using the Eland client.", "extDocId": "eland-import", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/nlp/ml-nlp-import-model#ml-nlp-import-script", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total number of allocations that are assigned to the model across machine learning nodes.\nIncreasing this value generally increases the throughput.\nIf adaptive allocations are enabled, do not set this value because it's automatically set.", "name": "num_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of threads used by each model allocation during inference.\nThis setting generally increases the speed per inference request.\nThe inference process is a compute-bound process; `threads_per_allocations` must not exceed the number of available allocated processors per node.\nThe value must be a power of 2.\nThe maximum value is 32.", "name": "num_threads", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L704-L738" }, { "kind": "enum", "members": [ { "name": "elasticsearch" } ], "name": { "name": "ElasticsearchServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L754-L756" }, { "kind": "interface", "name": { "name": "ElasticsearchTaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `rerank` task, return the document instead of only the index.", "name": "return_documents", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L740-L746" }, { "kind": "enum", "members": [ { "name": "rerank" }, { "name": "sparse_embedding" }, { "name": "text_embedding" } ], "name": { "name": "ElasticsearchTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L748-L752" }, { "kind": "interface", "name": { "name": "ElserServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "Adaptive allocations configuration details.\nIf `enabled` is true, the number of allocations of the model is set based on the current load the process gets.\nWhen the load is high, a new model allocation is automatically created, respecting the value of `max_number_of_allocations` if it's set.\nWhen the load is low, a model allocation is automatically removed, respecting the value of `min_number_of_allocations` if it's set.\nIf `enabled` is true, do not set the number of allocations manually.", "name": "adaptive_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "AdaptiveAllocations", "namespace": "inference._types" } } }, { "description": "The total number of allocations this model is assigned across machine learning nodes.\nIncreasing this value generally increases the throughput.\nIf adaptive allocations is enabled, do not set this value because it's automatically set.", "name": "num_allocations", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of threads used by each model allocation during inference.\nIncreasing this value generally increases the speed per inference request.\nThe inference process is a compute-bound process; `threads_per_allocations` must not exceed the number of available allocated processors per node.\nThe value must be a power of 2.\nThe maximum value is 32.\n\n> info\n> If you want to optimize your ELSER endpoint for ingest, set the number of threads to 1. If you want to optimize your ELSER endpoint for search, set the number of threads to greater than 1.", "name": "num_threads", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L758-L784" }, { "kind": "enum", "members": [ { "name": "elser" } ], "name": { "name": "ElserServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L790-L792" }, { "kind": "enum", "members": [ { "name": "sparse_embedding" } ], "name": { "name": "ElserTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L786-L788" }, { "kind": "enum", "members": [ { "name": "googleaistudio" } ], "name": { "name": "GoogleAiServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L817-L819" }, { "kind": "interface", "name": { "name": "GoogleAiStudioServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key of your Google Gemini account.", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the Google documentation for the list of supported models.", "extDocId": "googleaistudio-models", "extDocUrl": "https://ai.google.dev/gemini-api/docs/models", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Google AI Studio.\nBy default, the `googleaistudio` service sets the number of requests allowed per minute to 360.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L794-L810" }, { "kind": "enum", "members": [ { "name": "completion" }, { "name": "text_embedding" } ], "name": { "name": "GoogleAiStudioTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L812-L815" }, { "kind": "interface", "name": { "name": "GoogleVertexAIServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "The name of the location to use for the inference task.\nRefer to the Google documentation for the list of supported locations.", "extDocId": "googlevertexai-locations", "extDocUrl": "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations", "name": "location", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the Google documentation for the list of supported models.", "extDocId": "googlevertexai-models", "extDocUrl": "https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text-embeddings-api", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the project to use for the inference task.", "name": "project_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Google Vertex AI.\nBy default, the `googlevertexai` service sets the number of requests allowed per minute to 30.000.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "A valid service account in JSON format for the Google Vertex AI API.", "name": "service_account_json", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L821-L847" }, { "kind": "enum", "members": [ { "name": "googlevertexai" } ], "name": { "name": "GoogleVertexAIServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L865-L867" }, { "kind": "interface", "name": { "name": "GoogleVertexAITaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `text_embedding` task, truncate inputs longer than the maximum token length automatically.", "name": "auto_truncate", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For a `rerank` task, the number of the top N documents that should be returned.", "name": "top_n", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L849-L858" }, { "kind": "enum", "members": [ { "name": "rerank" }, { "name": "text_embedding" } ], "name": { "name": "GoogleVertexAITaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L860-L863" }, { "kind": "interface", "name": { "name": "HuggingFaceServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid access token for your HuggingFace account.\nYou can create or find your access tokens on the HuggingFace settings page.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "huggingface-tokens", "extDocUrl": "https://huggingface.co/settings/tokens", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Hugging Face.\nBy default, the `hugging_face` service sets the number of requests allowed per minute to 3000.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The URL endpoint to use for the requests.", "name": "url", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L869-L890" }, { "kind": "enum", "members": [ { "name": "hugging_face" } ], "name": { "name": "HuggingFaceServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L896-L898" }, { "kind": "enum", "members": [ { "name": "text_embedding" } ], "name": { "name": "HuggingFaceTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L892-L894" }, { "kind": "interface", "description": "Chunking configuration object", "name": { "name": "InferenceChunkingSettings", "namespace": "inference._types" }, "properties": [ { "description": "The maximum size of a chunk in words.\nThis value cannot be higher than `300` or lower than `20` (for `sentence` strategy) or `10` (for `word` strategy).", "name": "max_chunk_size", "required": false, "serverDefault": 250, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of overlapping words for chunks.\nIt is applicable only to a `word` chunking strategy.\nThis value cannot be higher than half the `max_chunk_size` value.", "name": "overlap", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of overlapping sentences for chunks.\nIt is applicable only for a `sentence` chunking strategy.\nIt can be either `1` or `0`.", "name": "sentence_overlap", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The chunking strategy: `sentence` or `word`.", "name": "strategy", "required": false, "serverDefault": "sentence", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/Services.ts#L60-L89" }, { "kind": "interface", "description": "Configuration options when storing the inference endpoint", "name": { "name": "InferenceEndpoint", "namespace": "inference._types" }, "properties": [ { "description": "Chunking configuration object", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The service type", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Settings specific to the service", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "ServiceSettings", "namespace": "inference._types" } } }, { "description": "Task settings specific to the service and task type", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/Services.ts#L24-L44" }, { "kind": "interface", "description": "Represents an inference endpoint as returned by the GET API", "inherits": { "type": { "name": "InferenceEndpoint", "namespace": "inference._types" } }, "name": { "name": "InferenceEndpointInfo", "namespace": "inference._types" }, "properties": [ { "description": "The inference Id", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The task type", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "TaskType", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/Services.ts#L46-L58" }, { "kind": "interface", "description": "InferenceResult is an aggregation of mutually exclusive variants", "name": { "name": "InferenceResult", "namespace": "inference._types" }, "properties": [ { "name": "text_embedding_bytes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingByteResult", "namespace": "inference._types" } } } }, { "name": "text_embedding_bits", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingByteResult", "namespace": "inference._types" } } } }, { "name": "text_embedding", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingResult", "namespace": "inference._types" } } } }, { "name": "sparse_embedding", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SparseEmbeddingResult", "namespace": "inference._types" } } } }, { "name": "completion", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CompletionResult", "namespace": "inference._types" } } } }, { "name": "rerank", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RankedDocument", "namespace": "inference._types" } } } } ], "specLocation": "inference/_types/Results.ts#L117-L128", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "JinaAIServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key of your JinaAI account.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "jinaAi-embeddings", "extDocUrl": "https://jina.ai/embeddings/", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the model to use for the inference task.\nFor a `rerank` task, it is required.\nFor a `text_embedding` task, it is optional.", "name": "model_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from JinaAI.\nBy default, the `jinaai` service sets the number of requests allowed per minute to 2000 for all task types.", "extDocId": "jinaAi-rate-limit", "extDocUrl": "https://jina.ai/contact-sales/#rate-limit", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "For a `text_embedding` task, the similarity measure. One of cosine, dot_product, l2_norm.\nThe default values varies with the embedding type.\nFor example, a float embedding type uses a `dot_product` similarity measure by default.", "name": "similarity", "required": false, "type": { "kind": "instance_of", "type": { "name": "JinaAISimilarityType", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L900-L929" }, { "kind": "enum", "members": [ { "name": "jinaai" } ], "name": { "name": "JinaAIServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L959-L961" }, { "kind": "enum", "members": [ { "name": "cosine" }, { "name": "dot_product" }, { "name": "l2_norm" } ], "name": { "name": "JinaAISimilarityType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L963-L967" }, { "kind": "interface", "name": { "name": "JinaAITaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `rerank` task, return the doc text within the results.", "name": "return_documents", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For a `text_embedding` task, the task passed to the model.\nValid values are:\n\n* `classification`: Use it for embeddings passed through a text classifier.\n* `clustering`: Use it for the embeddings run through a clustering algorithm.\n* `ingest`: Use it for storing document embeddings in a vector database.\n* `search`: Use it for storing embeddings of search queries run against a vector database to find relevant documents.", "name": "task", "required": false, "type": { "kind": "instance_of", "type": { "name": "JinaAITextEmbeddingTask", "namespace": "inference._types" } } }, { "description": "For a `rerank` task, the number of most relevant documents to return.\nIt defaults to the number of the documents.\nIf this inference endpoint is used in a `text_similarity_reranker` retriever query and `top_n` is set, it must be greater than or equal to `rank_window_size` in the query.", "name": "top_n", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L931-L952" }, { "kind": "enum", "members": [ { "name": "rerank" }, { "name": "text_embedding" } ], "name": { "name": "JinaAITaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L954-L957" }, { "kind": "enum", "members": [ { "name": "classification" }, { "name": "clustering" }, { "name": "ingest" }, { "name": "search" } ], "name": { "name": "JinaAITextEmbeddingTask", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L969-L974" }, { "kind": "interface", "description": "An object representing part of the conversation.", "name": { "name": "Message", "namespace": "inference._types" }, "properties": [ { "description": "The content of the message.", "name": "content", "required": false, "type": { "kind": "instance_of", "type": { "name": "MessageContent", "namespace": "inference._types" } } }, { "description": "The role of the message author.", "name": "role", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The tool call that this message is responding to.", "name": "tool_call_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The tool calls generated by the model.", "name": "tool_calls", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ToolCall", "namespace": "inference._types" } } } } ], "specLocation": "inference/_types/CommonTypes.ts#L135-L155" }, { "kind": "type_alias", "codegenNames": [ "string", "object" ], "name": { "name": "MessageContent", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L130-L133", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ContentObject", "namespace": "inference._types" } } } ] } }, { "kind": "interface", "name": { "name": "MistralServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key of your Mistral account.\nYou can find your Mistral API keys or you can create a new one on the API Keys page.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "mistral-api-keys", "extDocUrl": "https://console.mistral.ai/api-keys/", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of tokens per input before chunking occurs.", "name": "max_input_tokens", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available text embedding models.", "extDocId": "mistral-api-models", "extDocUrl": "https://docs.mistral.ai/getting-started/models/", "name": "model", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from the Mistral API.\nBy default, the `mistral` service sets the number of requests allowed per minute to 240.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L976-L1003" }, { "kind": "enum", "members": [ { "name": "mistral" } ], "name": { "name": "MistralServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1009-L1011" }, { "kind": "enum", "members": [ { "name": "text_embedding" } ], "name": { "name": "MistralTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1005-L1007" }, { "kind": "interface", "name": { "name": "OpenAIServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key of your OpenAI account.\nYou can find your OpenAI API keys in your OpenAI account under the API keys section.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "openai-api-keys", "extDocUrl": "https://platform.openai.com/api-keys", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of dimensions the resulting output embeddings should have.\nIt is supported only in `text-embedding-3` and later models.\nIf it is not set, the OpenAI defined default for the model is used.", "name": "dimensions", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the OpenAI documentation for the list of available text embedding models.", "extDocId": "openai-models", "extDocUrl": "https://platform.openai.com/docs/guides/embeddings/what-are-embeddings", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The unique identifier for your organization.\nYou can find the Organization ID in your OpenAI account under *Settings > Organizations*.", "name": "organization_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from OpenAI.\nThe `openai` service sets a default number of requests allowed per minute depending on the task type.\nFor `text_embedding`, it is set to `3000`.\nFor `completion`, it is set to `500`.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The URL endpoint to use for the requests.\nIt can be changed for testing purposes.", "name": "url", "required": false, "serverDefault": "https://api.openai.com/v1/embeddings.", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L1013-L1055" }, { "kind": "enum", "members": [ { "name": "openai" } ], "name": { "name": "OpenAIServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1071-L1073" }, { "kind": "interface", "name": { "name": "OpenAITaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "For a `completion` or `text_embedding` task, specify the user issuing the request.\nThis information can be used for abuse detection.", "name": "user", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L1057-L1063" }, { "kind": "enum", "members": [ { "name": "chat_completion" }, { "name": "completion" }, { "name": "text_embedding" } ], "name": { "name": "OpenAITaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1065-L1069" }, { "kind": "interface", "description": "The rerank result object representing a single ranked document\nid: the original index of the document in the request\nrelevance_score: the relevance_score of the document relative to the query\ntext: Optional, the text of the document, if requested", "name": { "name": "RankedDocument", "namespace": "inference._types" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "relevance_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/Results.ts#L91-L101" }, { "kind": "interface", "name": { "name": "RateLimitSetting", "namespace": "inference._types" }, "properties": [ { "description": "The number of requests allowed per minute.", "name": "requests_per_minute", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "inference/_types/Services.ts#L95-L100" }, { "kind": "interface", "name": { "name": "RequestChatCompletion", "namespace": "inference._types" }, "properties": [ { "description": "A list of objects representing the conversation.", "name": "messages", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Message", "namespace": "inference._types" } } } }, { "description": "The ID of the model to use.", "name": "model", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The upper bound limit for the number of tokens that can be generated for a completion request.", "name": "max_completion_tokens", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A sequence of strings to control when the model should stop generating additional tokens.", "name": "stop", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The sampling temperature to use.", "name": "temperature", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Controls which tool is called by the model.", "name": "tool_choice", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompletionToolType", "namespace": "inference._types" } } }, { "description": "A list of tools that the model can call.", "name": "tools", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CompletionTool", "namespace": "inference._types" } } } }, { "description": "Nucleus sampling, an alternative to sampling with temperature.", "name": "top_p", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L25-L58" }, { "kind": "interface", "description": "Defines the response for a rerank request.", "name": { "name": "RerankedInferenceResult", "namespace": "inference._types" }, "properties": [ { "name": "rerank", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RankedDocument", "namespace": "inference._types" } } } } ], "specLocation": "inference/_types/Results.ts#L103-L108" }, { "kind": "type_alias", "name": { "name": "ServiceSettings", "namespace": "inference._types" }, "specLocation": "inference/_types/Services.ts#L91-L91", "type": { "kind": "user_defined_value" } }, { "kind": "interface", "description": "The response format for the sparse embedding request.", "name": { "name": "SparseEmbeddingInferenceResult", "namespace": "inference._types" }, "properties": [ { "name": "sparse_embedding", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SparseEmbeddingResult", "namespace": "inference._types" } } } } ], "specLocation": "inference/_types/Results.ts#L40-L45" }, { "kind": "interface", "name": { "name": "SparseEmbeddingResult", "namespace": "inference._types" }, "properties": [ { "name": "embedding", "required": true, "type": { "kind": "instance_of", "type": { "name": "SparseVector", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/Results.ts#L36-L38" }, { "kind": "type_alias", "description": "Sparse Embedding tokens are represented as a dictionary\nof string to double.", "name": { "name": "SparseVector", "namespace": "inference._types" }, "specLocation": "inference/_types/Results.ts#L24-L28", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } }, { "kind": "type_alias", "name": { "name": "TaskSettings", "namespace": "inference._types" }, "specLocation": "inference/_types/Services.ts#L93-L93", "type": { "kind": "user_defined_value" } }, { "kind": "enum", "members": [ { "name": "sparse_embedding" }, { "name": "text_embedding" }, { "name": "rerank" }, { "name": "completion" }, { "name": "chat_completion" } ], "name": { "name": "TaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/TaskType.ts#L20-L29" }, { "kind": "interface", "description": "The text embedding result object for byte representation", "name": { "name": "TextEmbeddingByteResult", "namespace": "inference._types" }, "properties": [ { "name": "embedding", "required": true, "type": { "kind": "instance_of", "type": { "name": "DenseByteVector", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/Results.ts#L53-L58" }, { "kind": "interface", "description": "TextEmbeddingInferenceResult is an aggregation of mutually exclusive text_embedding variants", "name": { "name": "TextEmbeddingInferenceResult", "namespace": "inference._types" }, "properties": [ { "name": "text_embedding_bytes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingByteResult", "namespace": "inference._types" } } } }, { "name": "text_embedding_bits", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingByteResult", "namespace": "inference._types" } } } }, { "name": "text_embedding", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingResult", "namespace": "inference._types" } } } } ], "specLocation": "inference/_types/Results.ts#L67-L75", "variants": { "kind": "container" } }, { "kind": "interface", "description": "The text embedding result object", "name": { "name": "TextEmbeddingResult", "namespace": "inference._types" }, "properties": [ { "name": "embedding", "required": true, "type": { "kind": "instance_of", "type": { "name": "DenseVector", "namespace": "inference._types" } } } ], "specLocation": "inference/_types/Results.ts#L60-L65" }, { "kind": "interface", "description": "A tool call generated by the model.", "name": { "name": "ToolCall", "namespace": "inference._types" }, "properties": [ { "description": "The identifier of the tool call.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The function that the model called.", "name": "function", "required": true, "type": { "kind": "instance_of", "type": { "name": "ToolCallFunction", "namespace": "inference._types" } } }, { "description": "The type of the tool call.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L112-L128" }, { "kind": "interface", "description": "The function that the model called.", "name": { "name": "ToolCallFunction", "namespace": "inference._types" }, "properties": [ { "description": "The arguments to call the function with in JSON format.", "name": "arguments", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the function to call.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L98-L110" }, { "kind": "interface", "name": { "name": "VoyageAIServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "The number of dimensions for resulting output embeddings.\nThis setting maps to `output_dimension` in the VoyageAI documentation.\nOnly for the `text_embedding` task type.", "extDocId": "voyageai-embeddings", "extDocUrl": "https://docs.voyageai.com/docs/embeddings", "name": "dimensions", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the VoyageAI documentation for the list of available text embedding and rerank models.", "extDocId": "voyageai-rerank", "extDocUrl": "https://docs.voyageai.com/docs/reranker", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from VoyageAI.\nThe `voyageai` service sets a default number of requests allowed per minute depending on the task type.\nFor both `text_embedding` and `rerank`, it is set to `2000`.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The data type for the embeddings to be returned.\nThis setting maps to `output_dtype` in the VoyageAI documentation.\nPermitted values: float, int8, bit.\n`int8` is a synonym of `byte` in the VoyageAI documentation.\n`bit` is a synonym of `binary` in the VoyageAI documentation.\nOnly for the `text_embedding` task type.", "extDocId": "voyageai-embeddings", "extDocUrl": "https://docs.voyageai.com/docs/embeddings", "name": "embedding_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L1075-L1106" }, { "kind": "enum", "members": [ { "name": "voyageai" } ], "name": { "name": "VoyageAIServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1139-L1141" }, { "kind": "interface", "name": { "name": "VoyageAITaskSettings", "namespace": "inference._types" }, "properties": [ { "description": "Type of the input text.\nPermitted values: `ingest` (maps to `document` in the VoyageAI documentation), `search` (maps to `query` in the VoyageAI documentation).\nOnly for the `text_embedding` task type.", "name": "input_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Whether to return the source documents in the response.\nOnly for the `rerank` task type.", "name": "return_documents", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of most relevant documents to return.\nIf not specified, the reranking results of all documents will be returned.\nOnly for the `rerank` task type.", "name": "top_k", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Whether to truncate the input texts to fit within the context length.", "name": "truncation", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L1108-L1132" }, { "kind": "enum", "members": [ { "name": "text_embedding" }, { "name": "rerank" } ], "name": { "name": "VoyageAITaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1134-L1137" }, { "kind": "interface", "name": { "name": "WatsonxServiceSettings", "namespace": "inference._types" }, "properties": [ { "description": "A valid API key of your Watsonx account.\nYou can find your Watsonx API keys or you can create a new one on the API keys page.\n\nIMPORTANT: You need to provide the API key only once, during the inference model creation.\nThe get inference endpoint API does not retrieve your API key.\nAfter creating the inference model, you cannot change the associated API key.\nIf you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.", "extDocId": "watsonx-api-keys", "extDocUrl": "https://cloud.ibm.com/iam/apikeys", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A version parameter that takes a version date in the format of `YYYY-MM-DD`.\nFor the active version data parameters, refer to the Wastonx documentation.", "extDocId": "watsonx-api-version", "extDocUrl": "https://cloud.ibm.com/apidocs/watsonx-ai#active-version-dates", "name": "api_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.", "extDocId": "watsonx-api-models", "extDocUrl": "https://www.ibm.com/products/watsonx-ai/foundation-models", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The identifier of the IBM Cloud project to use for the inference task.", "name": "project_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This setting helps to minimize the number of rate limit errors returned from Watsonx.\nBy default, the `watsonxai` service sets the number of requests allowed per minute to 120.", "name": "rate_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "RateLimitSetting", "namespace": "inference._types" } } }, { "description": "The URL of the inference endpoint that you created on Watsonx.", "name": "url", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "inference/_types/CommonTypes.ts#L1143-L1180" }, { "kind": "enum", "members": [ { "name": "watsonxai" } ], "name": { "name": "WatsonxServiceType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1186-L1188" }, { "kind": "enum", "members": [ { "name": "text_embedding" } ], "name": { "name": "WatsonxTaskType", "namespace": "inference._types" }, "specLocation": "inference/_types/CommonTypes.ts#L1182-L1184" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "chat_completion_request", "value": { "kind": "instance_of", "type": { "name": "RequestChatCompletion", "namespace": "inference._types" } } }, "description": "Perform chat completion inference", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.chat_completion_unified" }, "path": [ { "description": "The inference Id", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies the amount of time to wait for the inference request to complete.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "inference/chat_completion_unified/UnifiedRequest.ts#L24-L53" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data", "value": { "kind": "instance_of", "type": { "name": "StreamResult", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "inference.chat_completion_unified" }, "specLocation": "inference/chat_completion_unified/UnifiedResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Inference input.\nEither a string or an array of strings.", "name": "input", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Optional task settings", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ] }, "description": "Perform completion inference on the service", "examples": { "CompletionRequestExample1": { "description": "Run `POST _inference/completion/openai_chat_completions` to perform a completion on the example question.", "summary": "Completion task", "value": "{\n \"input\": \"What is Elastic?\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.completion" }, "path": [ { "description": "The inference Id", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies the amount of time to wait for the inference request to complete.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "inference/completion/CompletionRequest.ts#L25-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "inference_result", "value": { "kind": "instance_of", "type": { "name": "CompletionInferenceResult", "namespace": "inference._types" } } }, "examples": { "CompletionResponseExample1": { "description": "A successful response from `POST _inference/completion/openai_chat_completions`.\n", "summary": "Completion task", "value": "{\n \"completion\": [\n {\n \"result\": \"Elastic is a company that provides a range of software solutions for search, logging, security, and analytics. Their flagship product is Elasticsearch, an open-source, distributed search engine that allows users to search, analyze, and visualize large volumes of data in real-time. Elastic also offers products such as Kibana, a data visualization tool, and Logstash, a log management and pipeline tool, as well as various other tools and solutions for data analysis and management.\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "inference.completion" }, "specLocation": "inference/completion/CompletionResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an inference endpoint", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.delete" }, "path": [ { "description": "The task type", "name": "task_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskType", "namespace": "inference._types" } } }, { "description": "The inference identifier.", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned.", "name": "dry_run", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "inference/delete/DeleteRequest.ts#L24-L66" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "DeleteInferenceEndpointResult", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.delete" }, "specLocation": "inference/delete/DeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get an inference endpoint", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.get" }, "path": [ { "description": "The task type", "name": "task_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskType", "namespace": "inference._types" } } }, { "description": "The inference Id", "name": "inference_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/get/GetRequest.ts#L24-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "endpoints", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } } } ] }, "name": { "name": "Response", "namespace": "inference.get" }, "specLocation": "inference/get/GetResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The query input, which is required only for the `rerank` task.\nIt is not required for other tasks.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The text on which you want to perform the inference task.\nIt can be a single string or an array.\n\n> info\n> Inference endpoints for the `completion` task type currently only support a single string as input.", "name": "input", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Task settings for the individual inference request.\nThese settings are specific to the task type you specified and override the task settings specified when initializing the service.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ] }, "description": "Perform inference on the service.\n\nThis API enables you to use machine learning models to perform specific tasks on data that you provide as an input.\nIt returns a response with the results of the tasks.\nThe inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API.\n\nFor details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation.\n\n> info\n> The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.inference" }, "path": [ { "description": "The type of inference task that the model performs.", "name": "task_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier for the inference endpoint.", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The amount of time to wait for the inference request to complete.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "inference/inference/InferenceRequest.ts#L26-L91" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "InferenceResult", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.inference" }, "specLocation": "inference/inference/InferenceResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "inference_config", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpoint", "namespace": "inference._types" } } }, "description": "Create an inference endpoint.\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.\n\nIMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.\nFor built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models.\nHowever, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put" }, "path": [ { "description": "The task type", "name": "task_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskType", "namespace": "inference._types" } } }, { "description": "The inference Id", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put/PutRequest.ts#L25-L65" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put" }, "specLocation": "inference/put/PutResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `alibabacloud-ai-search`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "AlibabaCloudServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `alibabacloud-ai-search` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "AlibabaCloudServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "AlibabaCloudTaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an AlibabaCloud AI Search inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `alibabacloud-ai-search` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutAlibabaCloudRequestExample1": { "description": "Run `PUT _inference/completion/alibabacloud_ai_search_completion` to create an inference endpoint that performs a completion task.", "summary": "A completion task", "value": "{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"host\" : \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"api_key\": \"AlibabaCloud-API-Key\",\n \"service_id\": \"ops-qwen-turbo\",\n \"workspace\" : \"default\"\n }\n}" }, "PutAlibabaCloudRequestExample2": { "description": "Run `PUT _inference/rerank/alibabacloud_ai_search_rerank` to create an inference endpoint that performs a rerank task.", "summary": "A rerank task", "value": "{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"api_key\": \"AlibabaCloud-API-Key\",\n \"service_id\": \"ops-bge-reranker-larger\",\n \"host\": \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"workspace\": \"default\"\n }\n}" }, "PutAlibabaCloudRequestExample3": { "description": "Run `PUT _inference/sparse_embedding/alibabacloud_ai_search_sparse` to create an inference endpoint that performs perform a sparse embedding task.", "summary": "A sparse embedding task", "value": "{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"api_key\": \"AlibabaCloud-API-Key\",\n \"service_id\": \"ops-text-sparse-embedding-001\",\n \"host\": \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"workspace\": \"default\"\n }\n}" }, "PutAlibabaCloudRequestExample4": { "description": "Run `PUT _inference/text_embedding/alibabacloud_ai_search_embeddings` to create an inference endpoint that performs a text embedding task.", "summary": "A text embedding task", "value": "{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"api_key\": \"AlibabaCloud-API-Key\",\n \"service_id\": \"ops-text-embedding-001\",\n \"host\": \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"workspace\": \"default\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_alibabacloud" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "AlibabaCloudTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "alibabacloud_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L30-L83" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_alibabacloud" }, "specLocation": "inference/put_alibabacloud/PutAlibabaCloudResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `amazonbedrock`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "AmazonBedrockServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `amazonbedrock` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "AmazonBedrockServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "AmazonBedrockTaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an Amazon Bedrock inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `amazonbedrock` service.\n\n>info\n> You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutAmazonBedrockRequestExample1": { "description": "Run `PUT _inference/text_embedding/amazon_bedrock_embeddings` to create an inference endpoint that performs a text embedding task.", "summary": "A text embedding task", "value": "{\n \"service\": \"amazonbedrock\",\n \"service_settings\": {\n \"access_key\": \"AWS-access-key\",\n \"secret_key\": \"AWS-secret-key\",\n \"region\": \"us-east-1\",\n \"provider\": \"amazontitan\",\n \"model\": \"amazon.titan-embed-text-v2:0\"\n }\n}" }, "PutAmazonBedrockRequestExample2": { "description": "Run `PUT _inference/completion/openai-completion` to create an inference endpoint to perform a completion task type.", "summary": "A completion task", "value": "{\n \"service\": \"openai\",\n \"service_settings\": {\n \"api_key\": \"OpenAI-API-Key\",\n \"model_id\": \"gpt-3.5-turbo\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_amazonbedrock" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "AmazonBedrockTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "amazonbedrock_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L30-L86" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_amazonbedrock" }, "specLocation": "inference/put_amazonbedrock/PutAmazonBedrockResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `anthropic`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnthropicServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `watsonxai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnthropicServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnthropicTaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an Anthropic inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `anthropic` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutAnthropicRequestExample1": { "description": "Run `PUT _inference/completion/anthropic_completion` to create an inference endpoint that performs a completion task.", "value": "{\n \"service\": \"anthropic\",\n \"service_settings\": {\n \"api_key\": \"Anthropic-Api-Key\",\n \"model_id\": \"Model-ID\"\n },\n \"task_settings\": {\n \"max_tokens\": 1024\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_anthropic" }, "path": [ { "description": "The task type.\nThe only valid task type for the model to perform is `completion`.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnthropicTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "anthropic_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_anthropic/PutAnthropicRequest.ts#L30-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_anthropic" }, "specLocation": "inference/put_anthropic/PutAnthropicResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `azureaistudio`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "AzureAiStudioServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `openai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "AzureAiStudioServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "AzureAiStudioTaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an Azure AI studio inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `azureaistudio` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutAzureAiStudioRequestExample1": { "description": "Run `PUT _inference/text_embedding/azure_ai_studio_embeddings` to create an inference endpoint that performs a text_embedding task. Note that you do not specify a model here, as it is defined already in the Azure AI Studio deployment.", "summary": "A text embedding task", "value": "{\n \"service\": \"azureaistudio\",\n \"service_settings\": {\n \"api_key\": \"Azure-AI-Studio-API-key\",\n \"target\": \"Target-Uri\",\n \"provider\": \"openai\",\n \"endpoint_type\": \"token\"\n }\n}" }, "PutAzureAiStudioRequestExample2": { "description": "Run `PUT _inference/completion/azure_ai_studio_completion` to create an inference endpoint that performs a completion task.", "summary": "A completion task", "value": "{\n \"service\": \"azureaistudio\",\n \"service_settings\": {\n \"api_key\": \"Azure-AI-Studio-API-key\",\n \"target\": \"Target-URI\",\n \"provider\": \"databricks\",\n \"endpoint_type\": \"realtime\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_azureaistudio" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "AzureAiStudioTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "azureaistudio_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L30-L83" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_azureaistudio" }, "specLocation": "inference/put_azureaistudio/PutAzureAiStudioResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `azureopenai`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "AzureOpenAIServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `azureopenai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "AzureOpenAIServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "AzureOpenAITaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an Azure OpenAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `azureopenai` service.\n\nThe list of chat completion models that you can choose from in your Azure OpenAI deployment include:\n\n* [GPT-4 and GPT-4 Turbo models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models)\n* [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35)\n\nThe list of embeddings models that you can choose from in your deployment can be found in the [Azure models documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings).\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutAzureOpenAiRequestExample1": { "description": "Run `PUT _inference/text_embedding/azure_openai_embeddings` to create an inference endpoint that performs a `text_embedding` task. You do not specify a model, as it is defined already in the Azure OpenAI deployment.", "summary": "A text embedding task", "value": "{\n \"service\": \"azureopenai\",\n \"service_settings\": {\n \"api_key\": \"Api-Key\",\n \"resource_name\": \"Resource-name\",\n \"deployment_id\": \"Deployment-id\",\n \"api_version\": \"2024-02-01\"\n }\n}" }, "PutAzureOpenAiRequestExample2": { "description": "Run `PUT _inference/completion/azure_openai_completion` to create an inference endpoint that performs a `completion` task.", "summary": "A completion task", "value": "{\n \"service\": \"azureopenai\",\n \"service_settings\": {\n \"api_key\": \"Api-Key\",\n \"resource_name\": \"Resource-name\",\n \"deployment_id\": \"Deployment-id\",\n \"api_version\": \"2024-02-01\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_azureopenai" }, "path": [ { "description": "The type of the inference task that the model will perform.\nNOTE: The `chat_completion` task type only supports streaming and only through the _stream API.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "AzureOpenAITaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "azureopenai_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_azureopenai/PutAzureOpenAiRequest.ts#L30-L91" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_azureopenai" }, "specLocation": "inference/put_azureopenai/PutAzureOpenAiResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `cohere`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "CohereServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model.\nThese settings are specific to the `cohere` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "CohereServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "CohereTaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create a Cohere inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `cohere` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutCohereRequestExample1": { "description": "Run `PUT _inference/text_embedding/cohere-embeddings` to create an inference endpoint that performs a text embedding task.", "summary": "A text embedding task", "value": "{\n \"service\": \"cohere\",\n \"service_settings\": {\n \"api_key\": \"Cohere-Api-key\",\n \"model_id\": \"embed-english-light-v3.0\",\n \"embedding_type\": \"byte\"\n }\n}" }, "PutCohereRequestExample2": { "description": "Run `PUT _inference/rerank/cohere-rerank` to create an inference endpoint that performs a rerank task.", "summary": "A rerank task", "value": "{\n \"service\": \"cohere\",\n \"service_settings\": {\n \"api_key\": \"Cohere-API-key\",\n \"model_id\": \"rerank-english-v3.0\"\n },\n \"task_settings\": {\n \"top_n\": 10,\n \"return_documents\": true\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_cohere" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "CohereTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "cohere_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_cohere/PutCohereRequest.ts#L30-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_cohere" }, "specLocation": "inference/put_cohere/PutCohereResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `elasticsearch`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElasticsearchServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `elasticsearch` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElasticsearchServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "ElasticsearchTaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an Elasticsearch inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `elasticsearch` service.\n\n> info\n> Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings.\n\nIf you use the ELSER or the E5 model through the `elasticsearch` service, the API request will automatically download and deploy the model if it isn't downloaded yet.\n\n> info\n> You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value.\n\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutElasticsearchRequestExample1": { "description": "Run `PUT _inference/sparse_embedding/my-elser-model` to create an inference endpoint that performs a `sparse_embedding` task. The `model_id` must be the ID of one of the built-in ELSER models. The API will automatically download the ELSER model if it isn't already downloaded and then deploy the model.", "summary": "ELSER sparse embedding task", "value": "{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"adaptive_allocations\": { \n \"enabled\": true,\n \"min_number_of_allocations\": 1,\n \"max_number_of_allocations\": 4\n },\n \"num_threads\": 1,\n \"model_id\": \".elser_model_2\" \n }\n}" }, "PutElasticsearchRequestExample2": { "description": "Run `PUT _inference/rerank/my-elastic-rerank` to create an inference endpoint that performs a rerank task using the built-in Elastic Rerank cross-encoder model. The `model_id` must be `.rerank-v1`, which is the ID of the built-in Elastic Rerank model. The API will automatically download the Elastic Rerank model if it isn't already downloaded and then deploy the model. Once deployed, the model can be used for semantic re-ranking with a `text_similarity_reranker` retriever.", "summary": "Elastic rerank task", "value": "{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"model_id\": \".rerank-v1\", \n \"num_threads\": 1,\n \"adaptive_allocations\": { \n \"enabled\": true,\n \"min_number_of_allocations\": 1,\n \"max_number_of_allocations\": 4\n }\n }\n}" }, "PutElasticsearchRequestExample3": { "description": "Run `PUT _inference/text_embedding/my-e5-model` to create an inference endpoint that performs a `text_embedding` task. The `model_id` must be the ID of one of the built-in E5 models. The API will automatically download the E5 model if it isn't already downloaded and then deploy the model.", "summary": "E5 text embedding task", "value": "{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \".multilingual-e5-small\" \n }\n}" }, "PutElasticsearchRequestExample4": { "description": "Run `PUT _inference/text_embedding/my-msmarco-minilm-model` to create an inference endpoint that performs a `text_embedding` task with a model that was uploaded by Eland.", "summary": "Eland text embedding task", "value": "{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \"msmarco-MiniLM-L12-cos-v5\" \n }\n}" }, "PutElasticsearchRequestExample5": { "description": "Run `PUT _inference/text_embedding/my-e5-model` to create an inference endpoint that performs a `text_embedding` task and to configure adaptive allocations. The API request will automatically download the E5 model if it isn't already downloaded and then deploy the model.", "summary": "Adaptive allocation", "value": "{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"adaptive_allocations\": {\n \"enabled\": true,\n \"min_number_of_allocations\": 3,\n \"max_number_of_allocations\": 10\n },\n \"num_threads\": 1,\n \"model_id\": \".multilingual-e5-small\"\n }\n}" }, "PutElasticsearchRequestExample6": { "description": "Run `PUT _inference/sparse_embedding/use_existing_deployment` to use an already existing model deployment when creating an inference endpoint.", "summary": "Existing model deployment", "value": "{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"deployment_id\": \".elser_model_2\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_elasticsearch" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElasticsearchTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.\nThe must not match the `model_id`.", "name": "elasticsearch_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_elasticsearch/PutElasticsearchRequest.ts#L30-L91" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "examples": { "PutElasticsearchResponseExample1": { "description": "A successful response from `PUT _inference/sparse_embedding/use_existing_deployment`. It contains the model ID and the threads and allocations settings from the model deployment.\n", "value": "{\n \"inference_id\": \"use_existing_deployment\",\n \"task_type\": \"sparse_embedding\",\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 2,\n \"num_threads\": 1,\n \"model_id\": \".elser_model_2\",\n \"deployment_id\": \".elser_model_2\"\n },\n \"chunking_settings\": {\n \"strategy\": \"sentence\",\n \"max_chunk_size\": 250,\n \"sentence_overlap\": 1\n }\n}" } }, "name": { "name": "Response", "namespace": "inference.put_elasticsearch" }, "specLocation": "inference/put_elasticsearch/PutElasticsearchResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `elser`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElserServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `elser` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElserServiceSettings", "namespace": "inference._types" } } } ] }, "deprecation": { "description": "The elser service is deprecated and will be removed in a future release. Use the Elasticsearch inference integration instead, with model_id included in the service_settings.", "version": "8.16.0" }, "description": "Create an ELSER inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `elser` service.\nYou can also deploy ELSER by using the Elasticsearch inference integration.\n\n> info\n> Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings.\n\nThe API request will automatically download and deploy the ELSER model if it isn't already downloaded.\n\n> info\n> You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value.\n\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutElserRequestExample1": { "description": "Run `PUT _inference/sparse_embedding/my-elser-model` to create an inference endpoint that performs a `sparse_embedding` task. The request will automatically download the ELSER model if it isn't already downloaded and then deploy the model.", "summary": "A sparse embedding task", "value": "{\n \"service\": \"elser\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1\n }\n}" }, "PutElserRequestExample2": { "description": "Run `PUT _inference/sparse_embedding/my-elser-model` to create an inference endpoint that performs a `sparse_embedding` task with adaptive allocations. When adaptive allocations are enabled, the number of allocations of the model is set automatically based on the current load.", "summary": "Adaptive allocations", "value": "{\n \"service\": \"elser\",\n \"service_settings\": {\n \"adaptive_allocations\": {\n \"enabled\": true,\n \"min_number_of_allocations\": 3,\n \"max_number_of_allocations\": 10\n },\n \"num_threads\": 1\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_elser" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ElserTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "elser_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_elser/PutElserRequest.ts#L29-L86" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "examples": { "PutElserResponseExample1": { "description": "A successful response when creating an ELSER inference endpoint.", "value": "{\n \"inference_id\": \"my-elser-model\",\n \"task_type\": \"sparse_embedding\",\n \"service\": \"elser\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1\n },\n \"task_settings\": {}\n}" } }, "name": { "name": "Response", "namespace": "inference.put_elser" }, "specLocation": "inference/put_elser/PutElserResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `googleaistudio`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "GoogleAiServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `googleaistudio` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "GoogleAiStudioServiceSettings", "namespace": "inference._types" } } } ] }, "description": "Create an Google AI Studio inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `googleaistudio` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutGoogleAiStudioRequestExample1": { "description": "Run `PUT _inference/completion/google_ai_studio_completion` to create an inference endpoint to perform a `completion` task type.", "summary": "A completion task", "value": "{\n \"service\": \"googleaistudio\",\n \"service_settings\": {\n \"api_key\": \"api-key\",\n \"model_id\": \"model-id\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_googleaistudio" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "GoogleAiStudioTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "googleaistudio_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L29-L77" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_googleaistudio" }, "specLocation": "inference/put_googleaistudio/PutGoogleAiStudioResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `googlevertexai`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "GoogleVertexAIServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `googlevertexai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "GoogleVertexAIServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "GoogleVertexAITaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create a Google Vertex AI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `googlevertexai` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutGoogleVertexAiRequestExample1": { "description": "Run `PUT _inference/text_embedding/google_vertex_ai_embeddings` to create an inference endpoint to perform a `text_embedding` task type.", "summary": "A text embedding task", "value": "{\n \"service\": \"googlevertexai\",\n \"service_settings\": {\n \"service_account_json\": \"service-account-json\",\n \"model_id\": \"model-id\",\n \"location\": \"location\",\n \"project_id\": \"project-id\"\n }\n}" }, "PutGoogleVertexAiRequestExample2": { "description": "Run `PUT _inference/rerank/google_vertex_ai_rerank` to create an inference endpoint to perform a `rerank` task type.", "summary": "A rerank task", "value": "{\n \"service\": \"googlevertexai\",\n \"service_settings\": {\n \"service_account_json\": \"service-account-json\",\n \"project_id\": \"project-id\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_googlevertexai" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "GoogleVertexAITaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "googlevertexai_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L30-L83" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_googlevertexai" }, "specLocation": "inference/put_googlevertexai/PutGoogleVertexAiResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `hugging_face`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "HuggingFaceServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `hugging_face` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "HuggingFaceServiceSettings", "namespace": "inference._types" } } } ] }, "description": "Create a Hugging Face inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `hugging_face` service.\n\nYou must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL.\nSelect the model you want to use on the new endpoint creation page (for example `intfloat/e5-small-v2`), then select the sentence embeddings task under the advanced configuration section.\nCreate the endpoint and copy the URL after the endpoint initialization has been finished.\n\nThe following models are recommended for the Hugging Face service:\n\n* `all-MiniLM-L6-v2`\n* `all-MiniLM-L12-v2`\n* `all-mpnet-base-v2`\n* `e5-base-v2`\n* `e5-small-v2`\n* `multilingual-e5-base`\n* `multilingual-e5-small`\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutHuggingFaceRequestExample1": { "description": "Run `PUT _inference/text_embedding/hugging-face-embeddings` to create an inference endpoint that performs a `text_embedding` task type.", "summary": "A text embedding task", "value": "{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"hugging-face-access-token\", \n \"url\": \"url-endpoint\" \n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_hugging_face" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "HuggingFaceTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "huggingface_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_hugging_face/PutHuggingFaceRequest.ts#L29-L91" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_hugging_face" }, "specLocation": "inference/put_hugging_face/PutHuggingFaceResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `jinaai`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "JinaAIServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `jinaai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "JinaAIServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "JinaAITaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an JinaAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `jinaai` service.\n\nTo review the available `rerank` models, refer to .\nTo review the available `text_embedding` models, refer to the .\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutJinaAiRequestExample1": { "description": "Run `PUT _inference/text_embedding/jinaai-embeddings` to create an inference endpoint for text embedding tasks using the JinaAI service.", "summary": "A text embedding task", "value": "{\n \"service\": \"jinaai\",\n \"service_settings\": {\n \"model_id\": \"jina-embeddings-v3\",\n \"api_key\": \"JinaAi-Api-key\"\n }\n}" }, "PutJinaAiRequestExample2": { "description": "Run `PUT _inference/rerank/jinaai-rerank` to create an inference endpoint for rerank tasks using the JinaAI service.", "summary": "A rerank task", "value": "{\n \"service\": \"jinaai\",\n \"service_settings\": {\n \"api_key\": \"JinaAI-Api-key\",\n \"model_id\": \"jina-reranker-v2-base-multilingual\"\n },\n \"task_settings\": {\n \"top_n\": 10,\n \"return_documents\": true\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_jinaai" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "JinaAITaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "jinaai_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_jinaai/PutJinaAiRequest.ts#L30-L86" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_jinaai" }, "specLocation": "inference/put_jinaai/PutJinaAiResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `mistral`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "MistralServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `mistral` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "MistralServiceSettings", "namespace": "inference._types" } } } ] }, "description": "Create a Mistral inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `mistral` service.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutMistralRequestExample1": { "description": "Run `PUT _inference/text_embedding/mistral-embeddings-test` to create a Mistral inference endpoint that performs a text embedding task.", "value": "{\n \"service\": \"mistral\",\n \"service_settings\": {\n \"api_key\": \"Mistral-API-Key\",\n \"model\": \"mistral-embed\" \n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_mistral" }, "path": [ { "description": "The task type.\nThe only valid task type for the model to perform is `text_embedding`.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "MistralTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "mistral_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_mistral/PutMistralRequest.ts#L29-L78" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_mistral" }, "specLocation": "inference/put_mistral/PutMistralResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `openai`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "OpenAIServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `openai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "OpenAIServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "OpenAITaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create an OpenAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `openai` service or `openai` compatible APIs.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutOpenAiRequestExample1": { "description": "Run `PUT _inference/text_embedding/openai-embeddings` to create an inference endpoint that performs a `text_embedding` task. The embeddings created by requests to this endpoint will have 128 dimensions.", "summary": "A text embedding task", "value": "{\n \"service\": \"openai\",\n \"service_settings\": {\n \"api_key\": \"OpenAI-API-Key\",\n \"model_id\": \"text-embedding-3-small\",\n \"dimensions\": 128\n }\n}" }, "PutOpenAiRequestExample2": { "description": "Run `PUT _inference/completion/amazon_bedrock_completion` to create an inference endpoint to perform a completion task.", "summary": "A completion task", "value": "{\n \"service\": \"amazonbedrock\",\n \"service_settings\": {\n \"access_key\": \"AWS-access-key\",\n \"secret_key\": \"AWS-secret-key\",\n \"region\": \"us-east-1\",\n \"provider\": \"amazontitan\",\n \"model\": \"amazon.titan-text-premier-v1:0\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_openai" }, "path": [ { "description": "The type of the inference task that the model will perform.\nNOTE: The `chat_completion` task type only supports streaming and only through the _stream API.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "OpenAITaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "openai_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_openai/PutOpenAiRequest.ts#L30-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_openai" }, "specLocation": "inference/put_openai/PutOpenAiResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The chunking configuration object.", "extDocId": "inference-chunking", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/elastic-inference/inference-api#infer-chunking-config", "name": "chunking_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceChunkingSettings", "namespace": "inference._types" } } }, { "description": "The type of service supported for the specified task type. In this case, `voyageai`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "VoyageAIServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `voyageai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "VoyageAIServiceSettings", "namespace": "inference._types" } } }, { "description": "Settings to configure the inference task.\nThese settings are specific to the task type you specified.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "VoyageAITaskSettings", "namespace": "inference._types" } } } ] }, "description": "Create a VoyageAI inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `voyageai` service.\n\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutVoyageAIRequestExample1": { "description": "Run `PUT _inference/text_embedding/voyageai-embeddings` to create an inference endpoint that performs a `text_embedding` task. The embeddings created by requests to this endpoint will have 512 dimensions.", "summary": "A text embedding task", "value": "{\n \"service\": \"voyageai\",\n \"service_settings\": {\n \"model_id\": \"voyage-3-large\",\n \"dimensions\": 512\n }\n}" }, "PutVoyageAIRequestExample2": { "description": "Run `PUT _inference/rerank/voyageai-rerank` to create an inference endpoint that performs a `rerank` task.", "summary": "A rerank task", "value": "{\n \"service\": \"voyageai\",\n \"service_settings\": {\n \"model_id\": \"rerank-2\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_voyageai" }, "path": [ { "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "VoyageAITaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "voyageai_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_voyageai/PutVoyageAIRequest.ts#L30-L79" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_voyageai" }, "specLocation": "inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The type of service supported for the specified task type. In this case, `watsonxai`.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatsonxServiceType", "namespace": "inference._types" } } }, { "description": "Settings used to install the inference model. These settings are specific to the `watsonxai` service.", "name": "service_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatsonxServiceSettings", "namespace": "inference._types" } } } ] }, "description": "Create a Watsonx inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `watsonxai` service.\nYou need an IBM Cloud Databases for Elasticsearch deployment to use the `watsonxai` inference service.\nYou can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform.\n\nWhen you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.\nAfter creating the endpoint, wait for the model deployment to complete before using it.\nTo verify the deployment status, use the get trained model statistics API.\nLook for `\"state\": \"fully_allocated\"` in the response and ensure that the `\"allocation_count\"` matches the `\"target_allocation_count\"`.\nAvoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.", "examples": { "PutWatsonxRequestExample1": { "description": "Run `PUT _inference/text_embedding/watsonx-embeddings` to create an Watonsx inference endpoint that performs a text embedding task.", "value": "{\n \"service\": \"watsonxai\",\n \"service_settings\": {\n \"api_key\": \"Watsonx-API-Key\", \n \"url\": \"Wastonx-URL\", \n \"model_id\": \"ibm/slate-30m-english-rtrvr\",\n \"project_id\": \"IBM-Cloud-ID\", \n \"api_version\": \"2024-03-14\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.put_watsonx" }, "path": [ { "description": "The task type.\nThe only valid task type for the model to perform is `text_embedding`.", "name": "task_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatsonxTaskType", "namespace": "inference._types" } } }, { "description": "The unique identifier of the inference endpoint.", "name": "watsonx_inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L28-L74" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.put_watsonx" }, "specLocation": "inference/put_watsonx/PutWatsonxResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Query input.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The text on which you want to perform the inference task.\nIt can be a single string or an array.\n\n> info\n> Inference endpoints for the `completion` task type currently only support a single string as input.", "name": "input", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Task settings for the individual inference request.\nThese settings are specific to the task type you specified and override the task settings specified when initializing the service.", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ] }, "description": "Perform rereanking inference on the service", "examples": { "RerankRequestExample1": { "description": "Run `POST _inference/rerank/cohere_rerank` to perform reranking on the example input.", "summary": "Rerank task", "value": "{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.rerank" }, "path": [ { "description": "The unique identifier for the inference endpoint.", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The amount of time to wait for the inference request to complete.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "inference/rerank/RerankRequest.ts#L25-L72" }, { "kind": "response", "body": { "kind": "value", "codegenName": "inference_result", "value": { "kind": "instance_of", "type": { "name": "RerankedInferenceResult", "namespace": "inference._types" } } }, "examples": { "RerankResponseExample1": { "description": "A successful response from `POST _inference/rerank/cohere_rerank`.\n", "summary": "Rerank task", "value": "{\n \"rerank\": [\n {\n \"index\": \"2\",\n \"relevance_score\": \"0.011597361\",\n \"text\": \"leia\"\n },\n {\n \"index\": \"0\",\n \"relevance_score\": \"0.006338922\",\n \"text\": \"luke\"\n },\n {\n \"index\": \"5\",\n \"relevance_score\": \"0.0016166499\",\n \"text\": \"star\"\n },\n {\n \"index\": \"4\",\n \"relevance_score\": \"0.0011695103\",\n \"text\": \"r2d2\"\n },\n {\n \"index\": \"1\",\n \"relevance_score\": \"5.614787E-4\",\n \"text\": \"like\"\n },\n {\n \"index\": \"6\",\n \"relevance_score\": \"3.7850367E-4\",\n \"text\": \"wars\"\n },\n {\n \"index\": \"3\",\n \"relevance_score\": \"1.2508839E-5\",\n \"text\": \"chewy\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "inference.rerank" }, "specLocation": "inference/rerank/RerankResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Inference input.\nEither a string or an array of strings.", "name": "input", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Optional task settings", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ] }, "description": "Perform sparse embedding inference on the service", "examples": { "SparseEmbeddingRequestExample1": { "description": "Run `POST _inference/sparse_embedding/my-elser-model` to perform sparse embedding on the example sentence.", "summary": "Sparse embedding task", "value": "{\n \"input\": \"The sky above the port was the color of television tuned to a dead channel.\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.sparse_embedding" }, "path": [ { "description": "The inference Id", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies the amount of time to wait for the inference request to complete.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "inference_result", "value": { "kind": "instance_of", "type": { "name": "SparseEmbeddingInferenceResult", "namespace": "inference._types" } } }, "examples": { "SparseEmbeddingResponseExample1": { "description": "An abbreviated response from `POST _inference/sparse_embedding/my-elser-model`.\n", "summary": "Sparse embedding task", "value": "{\n \"sparse_embedding\": [\n {\n \"port\": 2.1259406,\n \"sky\": 1.7073475,\n \"color\": 1.6922266,\n \"dead\": 1.6247464,\n \"television\": 1.3525393,\n \"above\": 1.2425821,\n \"tuned\": 1.1440028,\n \"colors\": 1.1218185,\n \"tv\": 1.0111054,\n \"ports\": 1.0067928,\n \"poem\": 1.0042328,\n \"channel\": 0.99471164,\n \"tune\": 0.96235967,\n \"scene\": 0.9020516\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "inference.sparse_embedding" }, "specLocation": "inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The text on which you want to perform the inference task.\nIt can be a single string or an array.\n\nNOTE: Inference endpoints for the completion task type currently only support a single string as input.", "name": "input", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Optional task settings", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ] }, "description": "Perform streaming inference.\nGet real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation.\nThis API works only with the completion task type.\n\nIMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.\n\nThis API requires the `monitor_inference` cluster privilege (the built-in `inference_admin` and `inference_user` roles grant this privilege). You must use a client that supports streaming.", "examples": { "StreamInferenceRequestExample1": { "description": "Run `POST _inference/completion/openai-completion/_stream` to perform a completion on the example question with streaming.", "summary": "Perform a completion task", "value": "{\n \"input\": \"What is Elastic?\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.stream_completion" }, "path": [ { "description": "The unique identifier for the inference endpoint.", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "inference/stream_completion/StreamInferenceRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "data", "value": { "kind": "instance_of", "type": { "name": "StreamResult", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "inference.stream_completion" }, "specLocation": "inference/stream_completion/StreamInferenceResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Inference input.\nEither a string or an array of strings.", "name": "input", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Optional task settings", "name": "task_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskSettings", "namespace": "inference._types" } } } ] }, "description": "Perform text embedding inference on the service", "examples": { "TextEmbeddingRequestExample1": { "description": "Run `POST _inference/text_embedding/my-cohere-endpoint` to perform text embedding on the example sentence using the Cohere integration,", "summary": "Text embedding task", "value": "{\n \"input\": \"The sky above the port was the color of television tuned to a dead channel.\",\n \"task_settings\": {\n \"input_type\": \"ingest\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.text_embedding" }, "path": [ { "description": "The inference Id", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies the amount of time to wait for the inference request to complete.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "inference/text_embedding/TextEmbeddingRequest.ts#L25-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "inference_result", "value": { "kind": "instance_of", "type": { "name": "TextEmbeddingInferenceResult", "namespace": "inference._types" } } }, "examples": { "TextEmbeddingResponseExample1": { "description": "An abbreviated response from `POST _inference/text_embedding/my-cohere-endpoint`.\n", "summary": "Text embedding task", "value": "{\n \"text_embedding\": [\n {\n \"embedding\": [\n {\n 0.018569946,\n -0.036895752,\n 0.01486969,\n -0.0045204163,\n -0.04385376,\n 0.0075950623,\n 0.04260254,\n -0.004005432,\n 0.007865906,\n 0.030792236,\n -0.050476074,\n 0.011795044,\n -0.011642456,\n -0.010070801\n }\n ]\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "inference.text_embedding" }, "specLocation": "inference/text_embedding/TextEmbeddingResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "inference_config", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpoint", "namespace": "inference._types" } } }, "description": "Update an inference endpoint.\n\nModify `task_settings`, secrets (within `service_settings`), or `num_allocations` for an inference endpoint, depending on the specific endpoint service and `task_type`.\n\nIMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face.\nFor built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models.\nHowever, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "inference.update" }, "path": [ { "description": "The unique identifier of the inference endpoint.", "name": "inference_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The type of inference task that the model performs.", "name": "task_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskType", "namespace": "inference._types" } } } ], "query": [], "specLocation": "inference/update/UpdateInferenceRequest.ts#L25-L61" }, { "kind": "response", "body": { "kind": "value", "codegenName": "endpoint_info", "value": { "kind": "instance_of", "type": { "name": "InferenceEndpointInfo", "namespace": "inference._types" } } }, "name": { "name": "Response", "namespace": "inference.update" }, "specLocation": "inference/update/UpdateInferenceResponse.ts#L22-L25" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "AppendProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to be appended to.\nSupports template snippets.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The value to be appended. Supports template snippets.", "name": "value", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "user_defined_value" }, { "kind": "array_of", "value": { "kind": "user_defined_value" } } ] } }, { "description": "If `false`, the processor does not append values already present in the field.", "name": "allow_duplicates", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L329-L344" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "AttachmentProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to get the base64 encoded field from.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and field does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of chars being used for extraction to prevent huge fields.\nUse `-1` for no limit.", "name": "indexed_chars", "required": false, "serverDefault": 100000, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Field name from which you can overwrite the number of chars being used for extraction.", "name": "indexed_chars_field", "required": false, "serverDefault": "null", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Array of properties to select to be stored.\nCan be `content`, `title`, `name`, `author`, `keywords`, `date`, `content_type`, `content_length`, `language`.", "name": "properties", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field that will hold the attachment information.", "name": "target_field", "required": false, "serverDefault": "attachment", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If true, the binary field will be removed from the document", "name": "remove_binary", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Field containing the name of the resource to decode.\nIf specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection.", "name": "resource_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L346-L387" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "BytesProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to convert.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L556-L572" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "CircleProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The difference between the resulting inscribed distance from center to side and the circle’s radius (measured in meters for `geo_shape`, unit-less for `shape`).", "name": "error_distance", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Which field mapping type is to be used when processing the circle: `geo_shape` or `shape`.", "name": "shape_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShapeType", "namespace": "ingest._types" } } }, { "description": "The field to assign the polygon shape to\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L574-L597" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "CommunityIDProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Field containing the source IP address.", "name": "source_ip", "required": false, "serverDefault": "source.ip", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the source port.", "name": "source_port", "required": false, "serverDefault": "source.port", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the destination IP address.", "name": "destination_ip", "required": false, "serverDefault": "destination.ip", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the destination port.", "name": "destination_port", "required": false, "serverDefault": "destination.port", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the IANA number.", "name": "iana_number", "required": false, "serverDefault": "network.iana_number", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the ICMP type.", "name": "icmp_type", "required": false, "serverDefault": "icmp.type", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the ICMP code.", "name": "icmp_code", "required": false, "serverDefault": "icmp.code", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the transport protocol name or number. Used only when the\niana_number field is not present. The following protocol names are currently\nsupported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp", "name": "transport", "required": false, "serverDefault": "network.transport", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Output field for the community ID.", "name": "target_field", "required": false, "serverDefault": "network.community_id", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The\nseed can prevent hash collisions between network domains, such as a staging\nand production network that use the same addressing scheme.", "name": "seed", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If true and any required fields are missing, the processor quietly exits\nwithout modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L599-L660" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "ConvertProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field whose value is to be converted.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to.\nBy default, the `field` is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The type to convert the existing value to.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConvertType", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Processors.ts#L673-L693" }, { "kind": "enum", "members": [ { "name": "integer" }, { "name": "long" }, { "name": "double" }, { "name": "float" }, { "name": "boolean" }, { "name": "ip" }, { "name": "string" }, { "name": "auto" } ], "name": { "name": "ConvertType", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L662-L671" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "CsvProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Value used to fill empty fields.\nEmpty fields are skipped if this is not provided.\nAn empty field is one with no value (2 consecutive separators) or empty quotes (`\"\"`).", "name": "empty_value", "required": false, "type": { "kind": "user_defined_value" } }, { "description": "The field to extract data from.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Quote used in CSV, has to be single character string.", "name": "quote", "required": false, "serverDefault": "\"", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Separator used in CSV, has to be single character string.", "name": "separator", "required": false, "serverDefault": ",", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The array of fields to assign extracted values to.", "name": "target_fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Trim whitespaces in unquoted fields.", "name": "trim", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L695-L728" }, { "kind": "interface", "description": "The configuration necessary to identify which IP geolocation provider to use to download a database, as well as any provider-specific configuration necessary for such downloading.\nAt present, the only supported providers are `maxmind` and `ipinfo`, and the `maxmind` provider requires that an `account_id` (string) is configured.\nA provider (either `maxmind` or `ipinfo`) must be specified. The web and local providers can be returned as read only configurations.", "name": { "name": "DatabaseConfiguration", "namespace": "ingest._types" }, "properties": [ { "containerProperty": true, "description": "The provider-assigned name of the IP geolocation database to download.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "maxmind", "required": false, "type": { "kind": "instance_of", "type": { "name": "Maxmind", "namespace": "ingest._types" } } }, { "name": "ipinfo", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ipinfo", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Database.ts#L22-L37", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "DatabaseConfigurationFull", "namespace": "ingest._types" }, "properties": [ { "name": "web", "required": false, "type": { "kind": "instance_of", "type": { "name": "Web", "namespace": "ingest._types" } } }, { "name": "local", "required": false, "type": { "kind": "instance_of", "type": { "name": "Local", "namespace": "ingest._types" } } }, { "containerProperty": true, "description": "The provider-assigned name of the IP geolocation database to download.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "maxmind", "required": false, "type": { "kind": "instance_of", "type": { "name": "Maxmind", "namespace": "ingest._types" } } }, { "name": "ipinfo", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ipinfo", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Database.ts#L39-L53", "variants": { "kind": "container" } }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "DateIndexNameProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "An array of the expected date formats for parsing dates / timestamps in the document being preprocessed.\nCan be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.", "name": "date_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "How to round the date when formatting the date into the index name. Valid values are:\n`y` (year), `M` (month), `w` (week), `d` (day), `h` (hour), `m` (minute) and `s` (second).\nSupports template snippets.", "name": "date_rounding", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to get the date or timestamp from.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The format to be used when printing the parsed date into the index name.\nA valid java time pattern is expected here.\nSupports template snippets.", "name": "index_name_format", "required": false, "serverDefault": "yyyy-MM-dd", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A prefix of the index name to be prepended before the printed date.\nSupports template snippets.", "name": "index_name_prefix", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days.", "name": "locale", "required": false, "serverDefault": "ENGLISH", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names.", "name": "timezone", "required": false, "serverDefault": "UTC", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L730-L768" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "DateProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to get the date from.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "An array of the expected date formats.\nCan be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.", "name": "formats", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The locale to use when parsing the date, relevant when parsing month names or week days.\nSupports template snippets.", "name": "locale", "required": false, "serverDefault": "ENGLISH", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field that will hold the parsed date.", "name": "target_field", "required": false, "serverDefault": "`@timestamp`", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The timezone to use when parsing the date.\nSupports template snippets.", "name": "timezone", "required": false, "serverDefault": "UTC", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The format to use when writing the date to target_field. Must be a valid\njava time pattern.", "name": "output_format", "required": false, "serverDefault": "yyyy-MM-dd'T'HH:mm:ss.SSSXXX", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L770-L803" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "DissectProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The character(s) that separate the appended fields.", "name": "append_separator", "required": false, "serverDefault": "\"\"", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to dissect.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The pattern to apply to the field.", "name": "pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L805-L824" }, { "kind": "interface", "name": { "name": "Document", "namespace": "ingest._types" }, "properties": [ { "description": "Unique identifier for the document.\nThis ID must be unique within the `_index`.", "name": "_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Name of the index containing the document.", "name": "_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "JSON body for the document.", "name": "_source", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "ingest/_types/Simulation.ts#L62-L76" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ], "meta": { "description": "Additional metadata", "fieldname": "metadata" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "description": "The simulated document, with optional metadata.", "name": { "name": "DocumentSimulation", "namespace": "ingest._types" }, "properties": [ { "description": "Unique identifier for the document. This ID must be unique within the `_index`.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Name of the index containing the document.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "_ingest", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ingest", "namespace": "ingest._types" } } }, { "description": "Value used to send the document to a specific primary shard.", "name": "_routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "JSON body for the document.", "name": "_source", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "", "name": "_version", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "name": "_version_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionType", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Simulation.ts#L78-L108" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "DotExpanderProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to expand into an object field.\nIf set to `*`, all top-level fields will be expanded.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Controls the behavior when there is already an existing nested object that conflicts with the expanded field.\nWhen `false`, the processor will merge conflicts by combining the old and the new values into an array.\nWhen `true`, the value from the expanded field will overwrite the existing value.", "name": "override", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field that contains the field to expand.\nOnly required if the field to expand is part another object field, because the `field` option can only understand leaf fields.", "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L826-L844" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "DropProcessor", "namespace": "ingest._types" }, "properties": [], "specLocation": "ingest/_types/Processors.ts#L846-L846" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "EnrichProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field in the input document that matches the policies match_field used to retrieve the enrichment data.\nSupports template snippets.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum number of matched documents to include under the configured target field.\nThe `target_field` will be turned into a json array if `max_matches` is higher than 1, otherwise `target_field` will become a json object.\nIn order to avoid documents getting too large, the maximum allowed value is 128.", "name": "max_matches", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If processor will update fields with pre-existing non-null-valued field.\nWhen set to `false`, such fields will not be touched.", "name": "override", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The name of the enrich policy to use.", "name": "policy_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A spatial relation operator used to match the geoshape of incoming documents to documents in the enrich index.\nThis option is only used for `geo_match` enrich policy types.", "name": "shape_relation", "required": false, "serverDefault": "INTERSECTS", "type": { "kind": "instance_of", "type": { "name": "GeoShapeRelation", "namespace": "_types" } } }, { "description": "Field added to incoming documents to contain enrich data. This field contains both the `match_field` and `enrich_fields` specified in the enrich policy.\nSupports template snippets.", "name": "target_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L848-L887" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "FailProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The error message thrown by the processor.\nSupports template snippets.", "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L889-L895" }, { "kind": "enum", "members": [ { "codegenName": "md5", "name": "MD5" }, { "codegenName": "sha1", "name": "SHA-1" }, { "codegenName": "sha256", "name": "SHA-256" }, { "codegenName": "sha512", "name": "SHA-512" }, { "codegenName": "murmurHash3", "name": "MurmurHash3" } ], "name": { "name": "FingerprintDigest", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L897-L903" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "FingerprintProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Array of fields to include in the fingerprint. For objects, the processor\nhashes both the field key and value. For other fields, the processor hashes\nonly the field value.", "name": "fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Output field for the fingerprint.", "name": "target_field", "required": false, "serverDefault": "fingerprint", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Salt value for the hash function.", "name": "salt", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The hash method used to compute the fingerprint. Must be one of MD5, SHA-1,\nSHA-256, SHA-512, or MurmurHash3.", "name": "method", "required": false, "serverDefault": "SHA-1", "type": { "kind": "instance_of", "type": { "name": "FingerprintDigest", "namespace": "ingest._types" } } }, { "description": "If true, the processor ignores any missing fields. If all fields are\nmissing, the processor silently exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L905-L933" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "ForeachProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Field containing array or object values.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true`, the processor silently exits without changing the document if the `field` is `null` or missing.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Ingest processor to run on each element.", "name": "processor", "required": true, "type": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Processors.ts#L935-L949" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "GeoGridProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to interpret as a geo-tile.=\nThe field format is determined by the `tile_type`.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Three tile formats are understood: geohash, geotile and geohex.", "name": "tile_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoGridTileType", "namespace": "ingest._types" } } }, { "description": "The field to assign the polygon shape to, by default, the `field` is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If specified and a parent tile exists, save that tile address to this field.", "name": "parent_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If specified and children tiles exist, save those tile addresses to this field as an array of strings.", "name": "children_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings.", "name": "non_children_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If specified, save the tile precision (zoom) as an integer to this field.", "name": "precision_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Which format to save the generated polygon in.", "name": "target_format", "required": false, "serverDefault": "geojson", "type": { "kind": "instance_of", "type": { "name": "GeoGridTargetFormat", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Processors.ts#L389-L430" }, { "kind": "enum", "members": [ { "name": "geojson" }, { "name": "wkt" } ], "name": { "name": "GeoGridTargetFormat", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L438-L441" }, { "kind": "enum", "members": [ { "name": "geotile" }, { "name": "geohex" }, { "name": "geohash" } ], "name": { "name": "GeoGridTileType", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L432-L436" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "GeoIpProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory.", "name": "database_file", "required": false, "serverDefault": "GeoLite2-City.mmdb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to get the ip address from for the geographical lookup.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true`, only the first found geoip data will be returned, even if the field contains an array.", "name": "first_only", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls what properties are added to the `target_field` based on the geoip lookup.", "name": "properties", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field that will hold the geographical information looked up from the MaxMind database.", "name": "target_field", "required": false, "serverDefault": "geoip", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the missing database is downloaded when the pipeline is created.\nElse, the download is triggered by when the pipeline is used as the `default_pipeline` or `final_pipeline` in an index.", "name": "download_database_on_pipeline_creation", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L443-L477" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "GrokProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Must be disabled or v1. If v1, the processor uses patterns with Elastic\nCommon Schema (ECS) field names.", "name": "ecs_compatibility", "required": false, "serverDefault": "disabled", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to use for grok expression parsing.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor.\nPatterns matching existing names will override the pre-existing definition.", "name": "pattern_definitions", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "An ordered list of grok expression to match and extract named captures with.\nReturns on the first expression in the list that matches.", "name": "patterns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } } }, { "description": "When `true`, `_ingest._grok_match_index` will be inserted into your matched document’s metadata with the index into the pattern found in `patterns` that matched.", "name": "trace_match", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L951-L982" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "GsubProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to apply the replacement to.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The pattern to be replaced.", "name": "pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The string to replace the matching patterns with.", "name": "replacement", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to\nBy default, the `field` is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L984-L1008" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "HtmlStripProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The string-valued field to remove HTML tags from.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document,", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to\nBy default, the `field` is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1010-L1026" }, { "kind": "interface", "name": { "name": "InferenceConfig", "namespace": "ingest._types" }, "properties": [ { "description": "Regression configuration for inference.", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfigRegression", "namespace": "ingest._types" } } }, { "description": "Classification configuration for inference.", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfigClassification", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1067-L1079", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "InferenceConfigClassification", "namespace": "ingest._types" }, "properties": [ { "description": "Specifies the number of top class predictions to return.", "name": "num_top_classes", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of feature importance values per document.", "name": "num_top_feature_importance_values", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction.", "name": "results_field", "required": false, "serverDefault": "_prediction", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the field to which the top classes are written.", "name": "top_classes_results_field", "required": false, "serverDefault": "top_classes", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the type of the predicted field to write.\nValid values are: `string`, `number`, `boolean`.", "name": "prediction_field_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1094-L1120" }, { "kind": "interface", "name": { "name": "InferenceConfigRegression", "namespace": "ingest._types" }, "properties": [ { "description": "The field that is added to incoming documents to contain the inference prediction.", "name": "results_field", "required": false, "serverDefault": "_prediction", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the maximum number of feature importance values per document.", "name": "num_top_feature_importance_values", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1081-L1092" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "InferenceProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The ID or alias for the trained model, or the ID of the deployment.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Field added to incoming documents to contain results objects.", "name": "target_field", "required": false, "serverDefault": "ml.inference.", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Maps the document field names to the known field names of the model.\nThis mapping takes precedence over any default mappings provided in the model configuration.", "name": "field_map", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Contains the inference type and its options.", "name": "inference_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfig", "namespace": "ingest._types" } } }, { "description": "Input fields for inference and output (destination) fields for the inference results.\nThis option is incompatible with the target_field and field_map options.", "name": "input_output", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "InputConfig", "namespace": "ingest._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InputConfig", "namespace": "ingest._types" } } } ] } }, { "description": "If true and any of the input fields defined in input_ouput are missing\nthen those missing fields are quietly ignored, otherwise a missing field causes a failure.\nOnly applies when using input_output configurations to explicitly list the input fields.", "name": "ignore_missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1028-L1060" }, { "kind": "interface", "name": { "name": "Ingest", "namespace": "ingest._types" }, "properties": [ { "availability": { "serverless": {}, "stack": { "since": "8.16.0" } }, "name": "_redact", "required": false, "type": { "kind": "instance_of", "type": { "name": "Redact", "namespace": "ingest._types" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Simulation.ts#L29-L37" }, { "kind": "interface", "name": { "name": "InputConfig", "namespace": "ingest._types" }, "properties": [ { "name": "input_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "output_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1062-L1065" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "IpLocationProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory.", "name": "database_file", "required": false, "serverDefault": "GeoLite2-City.mmdb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to get the ip address from for the geographical lookup.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true`, only the first found IP location data will be returned, even if the field contains an array.", "name": "first_only", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls what properties are added to the `target_field` based on the IP location lookup.", "name": "properties", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field that will hold the geographical information looked up from the MaxMind database.", "name": "target_field", "required": false, "serverDefault": "geoip", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the missing database is downloaded when the pipeline is created.\nElse, the download is triggered by when the pipeline is used as the `default_pipeline` or `final_pipeline` in an index.", "name": "download_database_on_pipeline_creation", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L479-L513" }, { "kind": "interface", "name": { "name": "Ipinfo", "namespace": "ingest._types" }, "properties": [], "specLocation": "ingest/_types/Database.ts#L59-L59" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "JoinProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Field containing array values to join.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The separator character.", "name": "separator", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to assign the joined value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1122-L1137" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "JsonProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Flag that forces the parsed JSON to be added at the top level of the document.\n`target_field` must not be set when this option is chosen.", "name": "add_to_root", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "When set to `replace`, root fields that conflict with fields from the parsed JSON will be overridden.\nWhen set to `merge`, conflicting fields will be merged.\nOnly applicable `if add_to_root` is set to true.", "name": "add_to_root_conflict_strategy", "required": false, "type": { "kind": "instance_of", "type": { "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" } } }, { "description": "When set to `true`, the JSON parser will not fail if the JSON contains duplicate keys.\nInstead, the last encountered value for any duplicate key wins.", "name": "allow_duplicate_keys", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to be parsed.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field that the converted structured object will be written into.\nAny existing content in this field will be overwritten.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1139-L1168" }, { "kind": "enum", "members": [ { "description": "Root fields that conflict with fields from the parsed JSON will be overridden.", "name": "replace" }, { "description": "Conflicting fields will be merged.", "name": "merge" } ], "name": { "name": "JsonProcessorConflictStrategy", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L1170-L1175" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "KeyValueProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "List of keys to exclude from document.", "name": "exclude_keys", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field to be parsed.\nSupports template snippets.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Regex pattern to use for splitting key-value pairs.", "name": "field_split", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "List of keys to filter and insert into document.\nDefaults to including all keys.", "name": "include_keys", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Prefix to be added to extracted keys.", "name": "prefix", "required": false, "serverDefault": "null", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`. strip brackets `()`, `<>`, `[]` as well as quotes `'` and `\"` from extracted values.", "name": "strip_brackets", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to insert the extracted keys into.\nDefaults to the root of the document.\nSupports template snippets.", "name": "target_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "String of characters to trim from extracted keys.", "name": "trim_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "String of characters to trim from extracted values.", "name": "trim_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Regex pattern to use for splitting the key from the value within a key-value pair.", "name": "value_split", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1177-L1229" }, { "kind": "interface", "name": { "name": "Local", "namespace": "ingest._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Database.ts#L63-L65" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "LowercaseProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to make lowercase.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1231-L1247" }, { "kind": "interface", "name": { "name": "Maxmind", "namespace": "ingest._types" }, "properties": [ { "name": "account_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Database.ts#L55-L57" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "NetworkDirectionProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Field containing the source IP address.", "name": "source_ip", "required": false, "serverDefault": "source.ip", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Field containing the destination IP address.", "name": "destination_ip", "required": false, "serverDefault": "destination.ip", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Output field for the network direction.", "name": "target_field", "required": false, "serverDefault": "network.direction", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "List of internal networks. Supports IPv4 and IPv6 addresses and ranges in\nCIDR notation. Also supports the named ranges listed below. These may be\nconstructed with template snippets. Must specify only one of\ninternal_networks or internal_networks_field.", "name": "internal_networks", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A field on the given document to read the internal_networks configuration\nfrom.", "name": "internal_networks_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If true and any required fields are missing, the processor quietly exits\nwithout modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1249-L1283" }, { "kind": "interface", "name": { "name": "Pipeline", "namespace": "ingest._types" }, "properties": [ { "description": "Description of the ingest pipeline.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Processors to run immediately after a processor failure.", "name": "on_failure", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } }, { "description": "Processors used to perform transformations on documents before indexing.\nProcessors run sequentially in the order specified.", "name": "processors", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } }, { "description": "Version number used by external systems to track ingest pipelines.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Marks this ingest pipeline as deprecated.\nWhen a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.", "name": "deprecated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Pipeline.ts#L23-L51" }, { "kind": "interface", "name": { "name": "PipelineConfig", "namespace": "ingest._types" }, "properties": [ { "description": "Description of the ingest pipeline.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Version number used by external systems to track ingest pipelines.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Processors used to perform transformations on documents before indexing.\nProcessors run sequentially in the order specified.", "name": "processors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } } ], "specLocation": "ingest/_types/Pipeline.ts#L67-L81" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "PipelineProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The name of the pipeline to execute.\nSupports template snippets.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Whether to ignore missing pipelines instead of failing.", "name": "ignore_missing_pipeline", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1285-L1296" }, { "kind": "interface", "name": { "name": "PipelineSimulation", "namespace": "ingest._types" }, "properties": [ { "name": "doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "DocumentSimulation", "namespace": "ingest._types" } } }, { "name": "tag", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "processor_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "ActionStatusOptions", "namespace": "watcher._types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ignored_error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Simulation.ts#L52-L60" }, { "kind": "interface", "name": { "name": "ProcessorBase", "namespace": "ingest._types" }, "properties": [ { "description": "Description of the processor.\nUseful for describing the purpose of the processor or its configuration.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Conditionally execute the processor.", "name": "if", "required": false, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } }, { "description": "Ignore failures for the processor.", "name": "ignore_failure", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Handle failures for the processor.", "name": "on_failure", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } }, { "description": "Identifier for the processor.\nUseful for debugging and metrics.", "name": "tag", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L304-L327" }, { "kind": "interface", "name": { "name": "ProcessorContainer", "namespace": "ingest._types" }, "properties": [ { "description": "Appends one or more values to an existing array if the field already exists and it is an array.\nConverts a scalar to an array and appends one or more values to it if the field exists and it is a scalar.\nCreates an array containing the provided values if the field doesn’t exist.\nAccepts a single value or an array of values.", "docId": "append-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/append-processor", "name": "append", "required": false, "type": { "kind": "instance_of", "type": { "name": "AppendProcessor", "namespace": "ingest._types" } } }, { "description": "The attachment processor lets Elasticsearch extract file attachments in common formats (such as PPT, XLS, and PDF) by using the Apache text extraction library Tika.", "docId": "attachment", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/attachment", "name": "attachment", "required": false, "type": { "kind": "instance_of", "type": { "name": "AttachmentProcessor", "namespace": "ingest._types" } } }, { "description": "Converts a human readable byte value (for example `1kb`) to its value in bytes (for example `1024`).\nIf the field is an array of strings, all members of the array will be converted.\nSupported human readable units are \"b\", \"kb\", \"mb\", \"gb\", \"tb\", \"pb\" case insensitive.\nAn error will occur if the field is not a supported format or resultant value exceeds 2^63.", "docId": "bytes-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/bytes-processor", "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "BytesProcessor", "namespace": "ingest._types" } } }, { "description": "Converts circle definitions of shapes to regular polygons which approximate them.", "docId": "ingest-circle-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/ingest-circle-processor", "name": "circle", "required": false, "type": { "kind": "instance_of", "type": { "name": "CircleProcessor", "namespace": "ingest._types" } } }, { "description": "Computes the Community ID for network flow data as defined in the\nCommunity ID Specification. You can use a community ID to correlate network\nevents related to a single flow.", "docId": "community-id-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/community-id-processor", "name": "community_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "CommunityIDProcessor", "namespace": "ingest._types" } } }, { "description": "Converts a field in the currently ingested document to a different type, such as converting a string to an integer.\nIf the field value is an array, all members will be converted.", "docId": "convert-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/convert-processor", "name": "convert", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConvertProcessor", "namespace": "ingest._types" } } }, { "description": "Extracts fields from CSV line out of a single text field within a document.\nAny empty field in CSV will be skipped.", "docId": "csv-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/csv-processor", "name": "csv", "required": false, "type": { "kind": "instance_of", "type": { "name": "CsvProcessor", "namespace": "ingest._types" } } }, { "description": "Parses dates from fields, and then uses the date or timestamp as the timestamp for the document.", "docId": "data-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/date-processor", "name": "date", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateProcessor", "namespace": "ingest._types" } } }, { "description": "The purpose of this processor is to point documents to the right time based index based on a date or timestamp field in a document by using the date math index name support.", "docId": "date-index-name-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/date-index-name-processor", "name": "date_index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateIndexNameProcessor", "namespace": "ingest._types" } } }, { "description": "Extracts structured fields out of a single text field by matching the text field against a delimiter-based pattern.", "docId": "dissect-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/dissect-processor", "name": "dissect", "required": false, "type": { "kind": "instance_of", "type": { "name": "DissectProcessor", "namespace": "ingest._types" } } }, { "description": "Expands a field with dots into an object field.\nThis processor allows fields with dots in the name to be accessible by other processors in the pipeline.\nOtherwise these fields can’t be accessed by any processor.", "docId": "dot-expand-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/dot-expand-processor", "name": "dot_expander", "required": false, "type": { "kind": "instance_of", "type": { "name": "DotExpanderProcessor", "namespace": "ingest._types" } } }, { "description": "Drops the document without raising any errors.\nThis is useful to prevent the document from getting indexed based on some condition.", "docId": "drop-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/drop-processor", "name": "drop", "required": false, "type": { "kind": "instance_of", "type": { "name": "DropProcessor", "namespace": "ingest._types" } } }, { "description": "The `enrich` processor can enrich documents with data from another index.", "docId": "enrich-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/enrich-processor", "name": "enrich", "required": false, "type": { "kind": "instance_of", "type": { "name": "EnrichProcessor", "namespace": "ingest._types" } } }, { "description": "Raises an exception.\nThis is useful for when you expect a pipeline to fail and want to relay a specific message to the requester.", "docId": "fail-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/fail-processor", "name": "fail", "required": false, "type": { "kind": "instance_of", "type": { "name": "FailProcessor", "namespace": "ingest._types" } } }, { "description": "Computes a hash of the document’s content. You can use this hash for\ncontent fingerprinting.", "docId": "fingerprint-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/fingerprint-processor", "name": "fingerprint", "required": false, "type": { "kind": "instance_of", "type": { "name": "FingerprintProcessor", "namespace": "ingest._types" } } }, { "description": "Runs an ingest processor on each element of an array or object.", "docId": "foreach-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/foreach-processor", "name": "foreach", "required": false, "type": { "kind": "instance_of", "type": { "name": "ForeachProcessor", "namespace": "ingest._types" } } }, { "description": "Currently an undocumented alias for GeoIP Processor.", "name": "ip_location", "required": false, "type": { "kind": "instance_of", "type": { "name": "IpLocationProcessor", "namespace": "ingest._types" } } }, { "description": "Converts geo-grid definitions of grid tiles or cells to regular bounding boxes or polygons which describe their shape.\nThis is useful if there is a need to interact with the tile shapes as spatially indexable fields.", "docId": "geo-grid-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/ingest-geo-grid-processor", "name": "geo_grid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoGridProcessor", "namespace": "ingest._types" } } }, { "description": "The `geoip` processor adds information about the geographical location of an IPv4 or IPv6 address.", "docId": "geoip-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/geoip-processor", "name": "geoip", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoIpProcessor", "namespace": "ingest._types" } } }, { "description": "Extracts structured fields out of a single text field within a document.\nYou choose which field to extract matched fields from, as well as the grok pattern you expect will match.\nA grok pattern is like a regular expression that supports aliased expressions that can be reused.", "docId": "grok-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/grok-processor", "name": "grok", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokProcessor", "namespace": "ingest._types" } } }, { "description": "Converts a string field by applying a regular expression and a replacement.\nIf the field is an array of string, all members of the array will be converted.\nIf any non-string values are encountered, the processor will throw an exception.", "docId": "gsub-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/gsub-processor", "name": "gsub", "required": false, "type": { "kind": "instance_of", "type": { "name": "GsubProcessor", "namespace": "ingest._types" } } }, { "description": "Removes HTML tags from the field.\nIf the field is an array of strings, HTML tags will be removed from all members of the array.", "docId": "htmlstrip-processor", "name": "html_strip", "required": false, "type": { "kind": "instance_of", "type": { "name": "HtmlStripProcessor", "namespace": "ingest._types" } } }, { "description": "Uses a pre-trained data frame analytics model or a model deployed for natural language processing tasks to infer against the data that is being ingested in the pipeline.", "docId": "inference-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/inference-processor", "name": "inference", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceProcessor", "namespace": "ingest._types" } } }, { "description": "Joins each element of an array into a single string using a separator character between each element.\nThrows an error when the field is not an array.", "docId": "join-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/join-processor", "name": "join", "required": false, "type": { "kind": "instance_of", "type": { "name": "JoinProcessor", "namespace": "ingest._types" } } }, { "description": "Converts a JSON string into a structured JSON object.", "docId": "json-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/json-processor", "name": "json", "required": false, "type": { "kind": "instance_of", "type": { "name": "JsonProcessor", "namespace": "ingest._types" } } }, { "description": "This processor helps automatically parse messages (or specific event fields) which are of the `foo=bar` variety.", "docId": "kv-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/kv-processor", "name": "kv", "required": false, "type": { "kind": "instance_of", "type": { "name": "KeyValueProcessor", "namespace": "ingest._types" } } }, { "description": "Converts a string to its lowercase equivalent.\nIf the field is an array of strings, all members of the array will be converted.", "docId": "lowercase-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/lowercase-processor", "name": "lowercase", "required": false, "type": { "kind": "instance_of", "type": { "name": "LowercaseProcessor", "namespace": "ingest._types" } } }, { "description": "Calculates the network direction given a source IP address, destination IP\naddress, and a list of internal networks.", "docId": "network-direction-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/network-direction-processor", "name": "network_direction", "required": false, "type": { "kind": "instance_of", "type": { "name": "NetworkDirectionProcessor", "namespace": "ingest._types" } } }, { "description": "Executes another pipeline.", "docId": "pipeline-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/pipeline-processor", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "PipelineProcessor", "namespace": "ingest._types" } } }, { "description": "The Redact processor uses the Grok rules engine to obscure text in the input document matching the given Grok patterns.\nThe processor can be used to obscure Personal Identifying Information (PII) by configuring it to detect known patterns such as email or IP addresses.\nText that matches a Grok pattern is replaced with a configurable string such as `` where an email address is matched or simply replace all matches with the text `` if preferred.", "docId": "redact-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/redact-processor", "name": "redact", "required": false, "type": { "kind": "instance_of", "type": { "name": "RedactProcessor", "namespace": "ingest._types" } } }, { "description": "Extracts the registered domain (also known as the effective top-level\ndomain or eTLD), sub-domain, and top-level domain from a fully qualified\ndomain name (FQDN). Uses the registered domains defined in the Mozilla\nPublic Suffix List.", "docId": "registered-domain-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/registered-domain-processor", "name": "registered_domain", "required": false, "type": { "kind": "instance_of", "type": { "name": "RegisteredDomainProcessor", "namespace": "ingest._types" } } }, { "description": "Removes existing fields.\nIf one field doesn’t exist, an exception will be thrown.", "docId": "remove-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/remove-processor", "name": "remove", "required": false, "type": { "kind": "instance_of", "type": { "name": "RemoveProcessor", "namespace": "ingest._types" } } }, { "description": "Renames an existing field.\nIf the field doesn’t exist or the new name is already used, an exception will be thrown.", "docId": "rename-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/rename-processor", "name": "rename", "required": false, "type": { "kind": "instance_of", "type": { "name": "RenameProcessor", "namespace": "ingest._types" } } }, { "description": "Routes a document to another target index or data stream.\nWhen setting the `destination` option, the target is explicitly specified and the dataset and namespace options can’t be set.\nWhen the `destination` option is not set, this processor is in a data stream mode. Note that in this mode, the reroute processor can only be used on data streams that follow the data stream naming scheme.", "docId": "reroute-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/reroute-processor", "name": "reroute", "required": false, "type": { "kind": "instance_of", "type": { "name": "RerouteProcessor", "namespace": "ingest._types" } } }, { "description": "Runs an inline or stored script on incoming documents.\nThe script runs in the `ingest` context.", "docId": "script-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/script-processor", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptProcessor", "namespace": "ingest._types" } } }, { "description": "Adds a field with the specified value.\nIf the field already exists, its value will be replaced with the provided one.", "docId": "set-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/set-processor", "name": "set", "required": false, "type": { "kind": "instance_of", "type": { "name": "SetProcessor", "namespace": "ingest._types" } } }, { "description": "Sets user-related details (such as `username`, `roles`, `email`, `full_name`, `metadata`, `api_key`, `realm` and `authentication_type`) from the current authenticated user to the current document by pre-processing the ingest.", "docId": "ingest-node-set-security-user-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/ingest-node-set-security-user-processor", "name": "set_security_user", "required": false, "type": { "kind": "instance_of", "type": { "name": "SetSecurityUserProcessor", "namespace": "ingest._types" } } }, { "description": "Sorts the elements of an array ascending or descending.\nHomogeneous arrays of numbers will be sorted numerically, while arrays of strings or heterogeneous arrays of strings + numbers will be sorted lexicographically.\nThrows an error when the field is not an array.", "docId": "sort-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/sort-processor", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortProcessor", "namespace": "ingest._types" } } }, { "description": "Splits a field into an array using a separator character.\nOnly works on string fields.", "docId": "split-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/split-processor", "name": "split", "required": false, "type": { "kind": "instance_of", "type": { "name": "SplitProcessor", "namespace": "ingest._types" } } }, { "description": "Terminates the current ingest pipeline, causing no further processors to be run.\nThis will normally be executed conditionally, using the `if` option.", "docId": "terminate-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/terminate-processor", "name": "terminate", "required": false, "type": { "kind": "instance_of", "type": { "name": "TerminateProcessor", "namespace": "ingest._types" } } }, { "description": "Trims whitespace from a field.\nIf the field is an array of strings, all members of the array will be trimmed.\nThis only works on leading and trailing whitespace.", "docId": "trim-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/trim-processor", "name": "trim", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrimProcessor", "namespace": "ingest._types" } } }, { "description": "Converts a string to its uppercase equivalent.\nIf the field is an array of strings, all members of the array will be converted.", "docId": "uppercase-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/uppercase-processor", "name": "uppercase", "required": false, "type": { "kind": "instance_of", "type": { "name": "UppercaseProcessor", "namespace": "ingest._types" } } }, { "description": "URL-decodes a string.\nIf the field is an array of strings, all members of the array will be decoded.", "docId": "urldecode-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/urldecode-processor", "name": "urldecode", "required": false, "type": { "kind": "instance_of", "type": { "name": "UrlDecodeProcessor", "namespace": "ingest._types" } } }, { "description": "Parses a Uniform Resource Identifier (URI) string and extracts its components as an object.\nThis URI object includes properties for the URI’s domain, path, fragment, port, query, scheme, user info, username, and password.", "docId": "uri-parts-processor", "name": "uri_parts", "required": false, "type": { "kind": "instance_of", "type": { "name": "UriPartsProcessor", "namespace": "ingest._types" } } }, { "description": "The `user_agent` processor extracts details from the user agent string a browser sends with its web requests.\nThis processor adds this information by default under the `user_agent` field.", "docId": "user-agent-processor", "docUrl": "https://www.elastic.co/docs/reference/enrich-processor/user-agent-processor", "name": "user_agent", "required": false, "type": { "kind": "instance_of", "type": { "name": "UserAgentProcessor", "namespace": "ingest._types" } } } ], "specLocation": "ingest/_types/Processors.ts#L28-L302", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "name": { "name": "Redact", "namespace": "ingest._types" }, "properties": [ { "description": "indicates if document has been redacted", "name": "_is_redacted", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Simulation.ts#L39-L44" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "RedactProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to be redacted", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "A list of grok expressions to match and redact named captures with", "name": "patterns", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } } }, { "name": "pattern_definitions", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Start a redacted section with this token", "name": "prefix", "required": false, "serverDefault": "<", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "End a redacted section with this token", "name": "suffix", "required": false, "serverDefault": ">", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true` and the current license does not support running redact processors, then the processor quietly exits without modifying the document", "name": "skip_if_unlicensed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.16.0" } }, "description": "If `true` then ingest metadata `_ingest._redact._is_redacted` is set to `true` if the document has been redacted", "name": "trace_redact", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1298-L1339" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "RegisteredDomainProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Field containing the source FQDN.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Object field containing extracted domain components. If an empty string,\nthe processor adds components to the document’s root.", "name": "target_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If true and any required fields are missing, the processor quietly exits\nwithout modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1341-L1357" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "RemoveProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Fields to be removed. Supports template snippets.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Fields to be kept. When set, all fields other than those specified are removed.", "name": "keep", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L1359-L1373" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "RenameProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to be renamed.\nSupports template snippets.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The new name of the field.\nSupports template snippets.", "name": "target_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1375-L1391" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "RerouteProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "A static value for the target. Can’t be set when the dataset or namespace option is set.", "name": "destination", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Field references or a static value for the dataset part of the data stream name.\nIn addition to the criteria for index names, cannot contain - and must be no longer than 100 characters.\nExample values are nginx.access and nginx.error.\n\nSupports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces).\nWhen resolving field references, the processor replaces invalid characters with _. Uses the part\nof the index name as a fallback if all field references resolve to a null, missing, or non-string value.\n\ndefault {{data_stream.dataset}}", "name": "dataset", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "Field references or a static value for the namespace part of the data stream name. See the criteria for\nindex names for allowed characters. Must be no longer than 100 characters.\n\nSupports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces).\nWhen resolving field references, the processor replaces invalid characters with _. Uses the part\nof the index name as a fallback if all field references resolve to a null, missing, or non-string value.\n\ndefault {{data_stream.namespace}}", "name": "namespace", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "specLocation": "ingest/_types/Processors.ts#L1393-L1421" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "ScriptProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "ID of a stored script.\nIf no `source` is specified, this parameter is required.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Script language.", "name": "lang", "required": false, "serverDefault": "painless", "type": { "kind": "instance_of", "type": { "name": "ScriptLanguage", "namespace": "_types" } } }, { "description": "Object containing parameters for the script.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Inline script.\nIf no `id` is specified, this parameter is required.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1423-L1443" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "SetProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The origin field which will be copied to `field`, cannot set `value` simultaneously.\nSupported data types are `boolean`, `number`, `array`, `object`, `string`, `date`, etc.", "name": "copy_from", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field to insert, upsert, or update.\nSupports template snippets.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `value` is a template snippet that evaluates to `null` or the empty string, the processor quietly exits without modifying the document.", "name": "ignore_empty_value", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The media type for encoding `value`.\nApplies only when value is a template snippet.\nMust be one of `application/json`, `text/plain`, or `application/x-www-form-urlencoded`.", "name": "media_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true` processor will update fields with pre-existing non-null-valued field.\nWhen set to `false`, such fields will not be touched.", "name": "override", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The value to be set for the field.\nSupports template snippets.\nMay specify only one of `value` or `copy_from`.", "name": "value", "required": false, "type": { "kind": "user_defined_value" } } ], "specLocation": "ingest/_types/Processors.ts#L1445-L1479" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "SetSecurityUserProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to store the user information into.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Controls what user related properties are added to the field.", "name": "properties", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ingest/_types/Processors.ts#L1481-L1490" }, { "kind": "enum", "members": [ { "name": "geo_shape" }, { "name": "shape" } ], "name": { "name": "ShapeType", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L1492-L1495" }, { "kind": "interface", "name": { "name": "SimulateDocumentResult", "namespace": "ingest._types" }, "properties": [ { "name": "doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "DocumentSimulation", "namespace": "ingest._types" } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "name": "processor_results", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PipelineSimulation", "namespace": "ingest._types" } } } } ], "specLocation": "ingest/_types/Simulation.ts#L46-L50" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "SortProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to be sorted.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The sort order to use.\nAccepts `\"asc\"` or `\"desc\"`.", "name": "order", "required": false, "serverDefault": "asc", "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "description": "The field to assign the sorted value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1497-L1513" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "SplitProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to split.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Preserves empty trailing fields, if any.", "name": "preserve_trailing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A regex which matches the separator, for example, `,` or `\\s+`.", "name": "separator", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field to assign the split value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1515-L1540" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "TerminateProcessor", "namespace": "ingest._types" }, "properties": [], "specLocation": "ingest/_types/Processors.ts#L1542-L1542" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "TrimProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The string-valued field to trim whitespace from.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the trimmed value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1544-L1560" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "UppercaseProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to make uppercase.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1562-L1578" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "UriPartsProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "Field containing the URI string.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the processor copies the unparsed URI to `.original`.", "name": "keep_original", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the processor removes the `field` after parsing the URI string.\nIf parsing fails, the processor does not remove the `field`.", "name": "remove_if_successful", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Output field for the URI object.", "name": "target_field", "required": false, "serverDefault": "url", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1598-L1624" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "UrlDecodeProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field to decode.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field to assign the converted value to.\nBy default, the field is updated in-place.", "name": "target_field", "required": false, "serverDefault": "field", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ingest/_types/Processors.ts#L1580-L1596" }, { "kind": "interface", "inherits": { "type": { "name": "ProcessorBase", "namespace": "ingest._types" } }, "name": { "name": "UserAgentProcessor", "namespace": "ingest._types" }, "properties": [ { "description": "The field containing the user agent string.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `true` and `field` does not exist, the processor quietly exits without modifying the document.", "name": "ignore_missing", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The name of the file in the `config/ingest-user-agent` directory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use the `regexes.yaml` from uap-core it ships with.", "name": "regex_file", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field that will be filled with the user agent details.", "name": "target_field", "required": false, "serverDefault": "user_agent", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Controls what properties are added to `target_field`.", "name": "properties", "required": false, "serverDefault": [ "name", "major", "minor", "patch", "build", "os", "os_name", "os_major", "os_minor", "device" ], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserAgentProperty", "namespace": "ingest._types" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.9.0", "stability": "beta" } }, "description": "Extracts device type from the user agent string on a best-effort basis.", "name": "extract_device_type", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/_types/Processors.ts#L515-L546" }, { "kind": "enum", "members": [ { "name": "name" }, { "name": "os" }, { "name": "device" }, { "name": "original" }, { "name": "version" } ], "name": { "name": "UserAgentProperty", "namespace": "ingest._types" }, "specLocation": "ingest/_types/Processors.ts#L548-L554" }, { "kind": "interface", "name": { "name": "Web", "namespace": "ingest._types" }, "properties": [], "specLocation": "ingest/_types/Database.ts#L61-L61" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete GeoIP database configurations.\n\nDelete one or more IP geolocation database configurations.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.delete_geoip_database" }, "path": [ { "description": "A comma-separated list of geoip database configurations to delete", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ingest.delete_geoip_database" }, "specLocation": "ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete IP geolocation database configurations.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.delete_ip_location_database" }, "path": [ { "description": "A comma-separated list of IP location database configurations.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "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.\nA value of `-1` indicates that the request should never time out.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.\nA value of `-1` indicates that the request should never time out.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ingest/delete_ip_location_database/DeleteIpLocationDatabaseRequest.ts#L24-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ingest.delete_ip_location_database" }, "specLocation": "ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete pipelines.\nDelete one or more ingest pipelines.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.delete_pipeline" }, "path": [ { "description": "Pipeline ID or wildcard expression of pipeline IDs used to limit the request.\nTo delete all ingest pipelines in a cluster, use a value of `*`.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ingest/delete_pipeline/DeletePipelineRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ingest.delete_pipeline" }, "specLocation": "ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "GeoIpDownloadStatistics", "namespace": "ingest.geo_ip_stats" }, "properties": [ { "description": "Total number of successful database downloads.", "name": "successful_downloads", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of failed database downloads.", "name": "failed_downloads", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total milliseconds spent downloading databases.", "name": "total_download_time", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Current number of databases available for use.", "name": "databases_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of database updates skipped.", "name": "skipped_updates", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of databases not updated after 30 days", "name": "expired_databases", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ingest/geo_ip_stats/types.ts#L24-L37" }, { "kind": "interface", "name": { "name": "GeoIpNodeDatabaseName", "namespace": "ingest.geo_ip_stats" }, "properties": [ { "description": "Name of the database.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "ingest/geo_ip_stats/types.ts#L47-L50" }, { "kind": "interface", "description": "Downloaded databases for the node. The field key is the node ID.", "name": { "name": "GeoIpNodeDatabases", "namespace": "ingest.geo_ip_stats" }, "properties": [ { "description": "Downloaded databases for the node.", "name": "databases", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GeoIpNodeDatabaseName", "namespace": "ingest.geo_ip_stats" } } } }, { "description": "Downloaded database files, including related license files. Elasticsearch stores these files in the node’s temporary directory: $ES_TMPDIR/geoip-databases/.", "name": "files_in_temp", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ingest/geo_ip_stats/types.ts#L39-L45" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get GeoIP statistics.\nGet download statistics for GeoIP2 databases that are used with the GeoIP processor.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.geo_ip_stats" }, "path": [], "query": [], "specLocation": "ingest/geo_ip_stats/IngestGeoIpStatsRequest.ts#L22-L38" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Download statistics for all GeoIP2 databases.", "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "GeoIpDownloadStatistics", "namespace": "ingest.geo_ip_stats" } } }, { "description": "Downloaded GeoIP2 databases for each node.", "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "GeoIpNodeDatabases", "namespace": "ingest.geo_ip_stats" } } } } ] }, "name": { "name": "Response", "namespace": "ingest.geo_ip_stats" }, "specLocation": "ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31" }, { "kind": "interface", "name": { "name": "DatabaseConfigurationMetadata", "namespace": "ingest.get_geoip_database" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "modified_date_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "database", "required": true, "type": { "kind": "instance_of", "type": { "name": "DatabaseConfiguration", "namespace": "ingest._types" } } } ], "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get GeoIP database configurations.\n\nGet information about one or more IP geolocation database configurations.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.get_geoip_database" }, "path": [ { "description": "A comma-separated list of database configuration IDs to retrieve.\nWildcard (`*`) expressions are supported.\nTo get all database configurations, omit this parameter or use `*`.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [], "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "databases", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DatabaseConfigurationMetadata", "namespace": "ingest.get_geoip_database" } } } } ] }, "name": { "name": "Response", "namespace": "ingest.get_geoip_database" }, "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27" }, { "kind": "interface", "name": { "name": "DatabaseConfigurationMetadata", "namespace": "ingest.get_ip_location_database" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "modified_date_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "modified_date", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "database", "required": true, "type": { "kind": "instance_of", "type": { "name": "DatabaseConfigurationFull", "namespace": "ingest._types" } } } ], "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get IP geolocation database configurations.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.get_ip_location_database" }, "path": [ { "description": "Comma-separated list of database configuration IDs to retrieve.\nWildcard (`*`) expressions are supported.\nTo get all database configurations, omit this parameter or use `*`.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "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.\nA value of `-1` indicates that the request should never time out.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "databases", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DatabaseConfigurationMetadata", "namespace": "ingest.get_ip_location_database" } } } } ] }, "name": { "name": "Response", "namespace": "ingest.get_ip_location_database" }, "specLocation": "ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L24-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get pipelines.\n\nGet information about one or more ingest pipelines.\nThis API returns a local reference of the pipeline.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.get_pipeline" }, "path": [ { "description": "Comma-separated list of pipeline IDs to retrieve.\nWildcard (`*`) expressions are supported.\nTo get all ingest pipelines, omit this parameter or use `*`.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Return pipelines without their definitions (default: false)", "name": "summary", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/get_pipeline/GetPipelineRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "pipelines", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Pipeline", "namespace": "ingest._types" } } } }, "examples": { "GetPipelineResponseExample1": { "description": "A successful response for retrieving information about an ingest pipeline.", "value": "{\n \"my-pipeline-id\" : {\n \"description\" : \"describe pipeline\",\n \"version\" : 123,\n \"processors\" : [\n {\n \"set\" : {\n \"field\" : \"foo\",\n \"value\" : \"bar\"\n }\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "ingest.get_pipeline" }, "specLocation": "ingest/get_pipeline/GetPipelineResponse.ts#L23-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Run a grok processor.\nExtract structured fields out of a single text field within a document.\nYou must choose which field to extract matched fields from, as well as the grok pattern you expect will match.\nA grok pattern is like a regular expression that supports aliased expressions that can be reused.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.processor_grok" }, "path": [], "query": [], "specLocation": "ingest/processor_grok/GrokProcessorPatternsRequest.ts#L22-L40" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "patterns", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "name": { "name": "Response", "namespace": "ingest.processor_grok" }, "specLocation": "ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The provider-assigned name of the IP geolocation database to download.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading.\nAt present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured.", "name": "maxmind", "required": true, "type": { "kind": "instance_of", "type": { "name": "Maxmind", "namespace": "ingest._types" } } } ] }, "description": "Create or update a GeoIP database configuration.\n\nRefer to the create or update IP geolocation database configuration API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.put_geoip_database" }, "path": [ { "description": "ID of the database configuration to create or update.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ingest.put_geoip_database" }, "specLocation": "ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "configuration", "value": { "kind": "instance_of", "type": { "name": "DatabaseConfiguration", "namespace": "ingest._types" } } }, "description": "Create or update an IP geolocation database configuration.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.put_ip_location_database" }, "path": [ { "description": "The database configuration identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.\nA value of `-1` indicates that the request should never time out.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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 indicates that it was not completely acknowledged.\nA value of `-1` indicates that the request should never time out.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ingest.put_ip_location_database" }, "specLocation": "ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "Description of the ingest pipeline.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Processors to run immediately after a processor failure. Each processor supports a processor-level `on_failure` value. If a processor without an `on_failure` value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors.", "name": "on_failure", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } }, { "description": "Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.", "name": "processors", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ProcessorContainer", "namespace": "ingest._types" } } } }, { "description": "Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "Marks this ingest pipeline as deprecated.\nWhen a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.", "name": "deprecated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Create or update a pipeline.\nChanges made using this API take effect immediately.", "examples": { "PutPipelineRequestExample1": { "summary": "Create an ingest pipeline.", "value": "{\n \"description\" : \"My optional pipeline description\",\n \"processors\" : [\n {\n \"set\" : {\n \"description\" : \"My optional processor description\",\n \"field\": \"my-keyword-field\",\n \"value\": \"foo\"\n }\n }\n ]\n}" }, "PutPipelineRequestExample2": { "description": "You can use the `_meta` parameter to add arbitrary metadata to a pipeline.", "summary": "Create an ingest pipeline with metadata.", "value": "{\n \"description\" : \"My optional pipeline description\",\n \"processors\" : [\n {\n \"set\" : {\n \"description\" : \"My optional processor description\",\n \"field\": \"my-keyword-field\",\n \"value\": \"foo\"\n }\n }\n ],\n \"_meta\": {\n \"reason\": \"set my-keyword-field to foo\",\n \"serialization\": {\n \"class\": \"MyPipeline\",\n \"id\": 10\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.put_pipeline" }, "path": [ { "description": "ID of the ingest pipeline to create or update.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Required version for optimistic concurrency control for pipeline updates", "name": "if_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "ingest/put_pipeline/PutPipelineRequest.ts#L25-L90" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ingest.put_pipeline" }, "specLocation": "ingest/put_pipeline/PutPipelineResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Sample documents to test in the pipeline.", "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Document", "namespace": "ingest._types" } } } }, { "description": "The pipeline 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.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "Pipeline", "namespace": "ingest._types" } } } ] }, "description": "Simulate a pipeline.\n\nRun an ingest pipeline against a set of provided documents.\nYou can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.", "examples": { "SimulatePipelineRequestExample1": { "description": "You can specify the used pipeline either in the request body or as a path parameter.", "summary": "Run an ingest pipeline against a set of provided documents.", "value": "{\n \"pipeline\" :\n {\n \"description\": \"_description\",\n \"processors\": [\n {\n \"set\" : {\n \"field\" : \"field2\",\n \"value\" : \"_value\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ingest.simulate" }, "path": [ { "description": "The pipeline to test.\nIf you don't specify a `pipeline` in the request body, this parameter is required.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, the response includes output data for each processor in the executed pipeline.", "name": "verbose", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ingest/simulate/SimulatePipelineRequest.ts#L25-L72" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SimulateDocumentResult", "namespace": "ingest._types" } } } } ] }, "examples": { "SimulatePipelineResponseExample1": { "description": "A successful response for running an ingest pipeline against a set of provided documents.", "value": "{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"id\",\n \"_index\": \"index\",\n \"_version\": \"-3\",\n \"_source\": {\n \"field2\": \"_value\",\n \"foo\": \"bar\"\n },\n \"_ingest\": {\n \"timestamp\": \"2017-05-04T22:30:03.187Z\"\n }\n }\n },\n {\n \"doc\": {\n \"_id\": \"id\",\n \"_index\": \"index\",\n \"_version\": \"-3\",\n \"_source\": {\n \"field2\": \"_value\",\n \"foo\": \"rab\"\n },\n \"_ingest\": {\n \"timestamp\": \"2017-05-04T22:30:03.188Z\"\n }\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "ingest.simulate" }, "specLocation": "ingest/simulate/SimulatePipelineResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "License", "namespace": "license._types" }, "properties": [ { "name": "expiry_date_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "issue_date_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "start_date_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "issued_to", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "issuer", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_nodes", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "max_resource_units", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "signature", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseType", "namespace": "license._types" } } }, { "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "license/_types/License.ts#L42-L53" }, { "kind": "enum", "members": [ { "name": "active" }, { "name": "valid" }, { "name": "invalid" }, { "name": "expired" } ], "name": { "name": "LicenseStatus", "namespace": "license._types" }, "specLocation": "license/_types/License.ts#L35-L40" }, { "kind": "enum", "members": [ { "name": "missing" }, { "name": "trial" }, { "name": "basic" }, { "name": "standard" }, { "name": "dev" }, { "name": "silver" }, { "name": "gold" }, { "name": "platinum" }, { "name": "enterprise" } ], "name": { "name": "LicenseType", "namespace": "license._types" }, "specLocation": "license/_types/License.ts#L23-L33" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete the license.\n\nWhen the license expires, your subscription level reverts to Basic.\n\nIf the operator privileges feature is enabled, only operator users can use this API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.delete" }, "path": [], "query": [ { "description": "The period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "license.delete" }, "specLocation": "license/delete/DeleteLicenseResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "LicenseInformation", "namespace": "license.get" }, "properties": [ { "name": "expiry_date", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "expiry_date_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "issue_date", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "issue_date_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "issued_to", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "issuer", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_nodes", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "max_resource_units", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseStatus", "namespace": "license._types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseType", "namespace": "license._types" } } }, { "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "name": "start_date_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "license/get/types.ts#L25-L38" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get license information.\n\nGet information about your Elastic license including its type, its status, when it was issued, and when it expires.\n\n>info\n> If the master node is generating a new cluster state, the get license API may return a `404 Not Found` response.\n> If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.get" }, "path": [], "query": [ { "deprecation": { "description": "", "version": "7.6.0" }, "description": "If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility.\nThis parameter is deprecated and will always be set to true in 8.x.", "name": "accept_enterprise", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether to retrieve local information. The default value is `false`, which means the information is retrieved from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "license/get/GetLicenseRequest.ts#L22-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "license", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseInformation", "namespace": "license.get" } } } ] }, "examples": { "GetLicenseResponseExample1": { "description": "A successful response from `GET /_license`.", "value": "{\n \"license\" : {\n \"status\" : \"active\",\n \"uid\" : \"cbff45e7-c553-41f7-ae4f-9205eabd80xx\",\n \"type\" : \"trial\",\n \"issue_date\" : \"2018-10-20T22:05:12.332Z\",\n \"issue_date_in_millis\" : 1540073112332,\n \"expiry_date\" : \"2018-11-19T22:05:12.332Z\",\n \"expiry_date_in_millis\" : 1542665112332,\n \"max_nodes\" : 1000,\n \"max_resource_units\" : null,\n \"issued_to\" : \"test\",\n \"issuer\" : \"elasticsearch\",\n \"start_date_in_millis\" : -1\n }\n}" } }, "name": { "name": "Response", "namespace": "license.get" }, "specLocation": "license/get/GetLicenseResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the basic license status.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.get_basic_status" }, "path": [], "query": [], "specLocation": "license/get_basic_status/GetBasicLicenseStatusRequest.ts#L22-L36" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "eligible_to_start_basic", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "GetBasicLicenseStatusResponseExample1": { "description": "A successful response from `GET /_license/basic_status`.", "value": "{\n \"eligible_to_start_basic\": true\n}" } }, "name": { "name": "Response", "namespace": "license.get_basic_status" }, "specLocation": "license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the trial status.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.get_trial_status" }, "path": [], "query": [], "specLocation": "license/get_trial_status/GetTrialLicenseStatusRequest.ts#L22-L36" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "eligible_to_start_trial", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "GetTrialLicenseStatusResponseExample1": { "description": "A successful response from `GET /_license/trial_status`.", "value": "{\n \"eligible_to_start_trial\": true\n}" } }, "name": { "name": "Response", "namespace": "license.get_trial_status" }, "specLocation": "license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22" }, { "kind": "interface", "name": { "name": "Acknowledgement", "namespace": "license.post" }, "properties": [ { "name": "license", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "license/post/types.ts#L20-L23" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "license", "required": false, "type": { "kind": "instance_of", "type": { "name": "License", "namespace": "license._types" } } }, { "description": "A sequence of one or more JSON documents containing the license information.", "name": "licenses", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "License", "namespace": "license._types" } } } } ] }, "description": "Update the license.\n\nYou can update your license at runtime without shutting down your nodes.\nLicense updates take effect immediately.\nIf the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response.\nYou must then re-submit the API request with the acknowledge parameter set to true.\n\nNOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license.\nIf the operator privileges feature is enabled, only operator users can use this API.", "examples": { "PostLicenseRequestExample1": { "description": "Run `PUT _license` to update to a basic license. NOTE: These values are invalid; you must substitute the appropriate contents from your license file.\n", "value": "{\n \"licenses\": [\n {\n \"uid\":\"893361dc-9749-4997-93cb-802e3d7fa4xx\",\n \"type\":\"basic\",\n \"issue_date_in_millis\":1411948800000,\n \"expiry_date_in_millis\":1914278399999,\n \"max_nodes\":1,\n \"issued_to\":\"issuedTo\",\n \"issuer\":\"issuer\",\n \"signature\":\"xx\"\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.post" }, "path": [], "query": [ { "description": "Specifies whether you acknowledge the license changes.", "name": "acknowledge", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "license/post/PostLicenseRequest.ts#L24-L70" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledge", "required": false, "type": { "kind": "instance_of", "type": { "name": "Acknowledgement", "namespace": "license.post" } } }, { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "license_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseStatus", "namespace": "license._types" } } } ] }, "examples": { "PostLicenseResponseExample1": { "description": "If you update to a basic license and you previously had a license with more features, you receive this type of response. You must re-submit the API request and set the `acknowledge` parameter to `true`.", "value": "{\n \"acknowledged\": false,\n \"license_status\": \"valid\",\n \"acknowledge\": {\n \"message\": \"\\\"\\\"\\\"This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the \\\"acknowledge=true\\\" parameter:\\\"\\\"\\\"\",\n \"watcher\": [\n \"Watcher will be disabled\"\n ],\n \"logstash\": [\n \"Logstash will no longer poll for centrally-managed pipelines\"\n ],\n \"security\": [\n \"The following X-Pack security functionality will be disabled ...\"\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "license.post" }, "specLocation": "license/post/PostLicenseResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start a basic license.\n\nStart an indefinite basic license, which gives access to all the basic features.\n\nNOTE: In order to start a basic license, you must not currently have a basic license.\n\nIf the basic license does not support all of the features that are available with your current license, however, you are notified in the response.\nYou must then re-submit the API request with the `acknowledge` parameter set to `true`.\n\nTo check the status of your basic license, use the get basic license API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.post_start_basic" }, "path": [], "query": [ { "description": "whether the user has acknowledged acknowledge messages (default: false)", "name": "acknowledge", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L59" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "basic_was_started", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "error_message", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "LicenseType", "namespace": "license._types" } } }, { "name": "acknowledge", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } } ] }, "examples": { "StartBasicLicenseResponseExample1": { "description": "A successful response from `POST /_license/start_basic?acknowledge=true`. If you currently have a license with more features than a basic license and you start a basic license, you must pass the acknowledge parameter.", "value": "{\n \"basic_was_started\": true,\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "license.post_start_basic" }, "specLocation": "license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start a trial.\nStart a 30-day trial, which gives access to all subscription features.\n\nNOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version.\nFor example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension.\n\nTo check the status of your trial, use the get trial status API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "license.post_start_trial" }, "path": [], "query": [ { "description": "whether the user has acknowledged acknowledge messages (default: false)", "name": "acknowledge", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type_query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "error_message", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "trial_was_started", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "LicenseType", "namespace": "license._types" } } } ] }, "examples": { "StartTrialLicenseResponseExample1": { "description": "A successful response from `POST /_license/start_trial?acknowledge=true`.", "value": "{\n \"trial_was_started\": true,\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "license.post_start_trial" }, "specLocation": "license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29" }, { "kind": "interface", "name": { "name": "Pipeline", "namespace": "logstash._types" }, "properties": [ { "description": "A description of the pipeline.\nThis description is not used by Elasticsearch or Logstash.", "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The date the pipeline was last updated.\nIt must be in the `yyyy-MM-dd'T'HH:mm:ss.SSSZZ` strict_date_time format.", "name": "last_modified", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The configuration for the pipeline.", "extDocId": "logstash-configuration-file-structure", "extDocUrl": "https://www.elastic.co/docs/reference/logstash/configuration-file-structure", "name": "pipeline", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Optional metadata about the pipeline, which can have any contents.\nThis metadata is not generated or used by Elasticsearch or Logstash.", "name": "pipeline_metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "PipelineMetadata", "namespace": "logstash._types" } } }, { "description": "Settings for the pipeline.\nIt supports only flat keys in dot notation.", "extDocId": "logstash-logstash-settings-file", "extDocUrl": "https://www.elastic.co/docs/reference/logstash/logstash-settings-file", "name": "pipeline_settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "PipelineSettings", "namespace": "logstash._types" } } }, { "description": "The user who last updated the pipeline.", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "logstash/_types/Pipeline.ts#L56-L87" }, { "kind": "interface", "name": { "name": "PipelineMetadata", "namespace": "logstash._types" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "logstash/_types/Pipeline.ts#L23-L26" }, { "kind": "interface", "name": { "name": "PipelineSettings", "namespace": "logstash._types" }, "properties": [ { "description": "The number of workers that will, in parallel, execute the filter and output stages of the pipeline.", "docId": "logstash-logstash-settings-file", "docUrl": "https://www.elastic.co/docs/reference/logstash/logstash-settings-file", "name": "pipeline.workers", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of events an individual worker thread will collect from inputs before attempting to execute its filters and outputs.", "name": "pipeline.batch.size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "When creating pipeline event batches, how long in milliseconds to wait for each event before dispatching an undersized batch to pipeline workers.", "name": "pipeline.batch.delay", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The internal queuing model to use for event buffering.", "docId": "logstash-logstash-settings-file", "docUrl": "https://www.elastic.co/docs/reference/logstash/logstash-settings-file", "name": "queue.type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total capacity of the queue (`queue.type: persisted`) in number of bytes.", "name": "queue.max_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of written events before forcing a checkpoint when persistent queues are enabled (`queue.type: persisted`).", "name": "queue.checkpoint.writes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "logstash/_types/Pipeline.ts#L28-L55" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a Logstash pipeline.\nDelete a pipeline that is used for Logstash Central Management.\nIf the request succeeds, you receive an empty response with an appropriate status code.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "logstash.delete_pipeline" }, "path": [ { "description": "An identifier for the pipeline.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "logstash/delete_pipeline/LogstashDeletePipelineRequest.ts#L23-L47" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "logstash.delete_pipeline" }, "specLocation": "logstash/delete_pipeline/LogstashDeletePipelineResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get Logstash pipelines.\nGet pipelines that are used for Logstash Central Management.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "logstash.get_pipeline" }, "path": [ { "description": "A comma-separated list of pipeline identifiers.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [], "specLocation": "logstash/get_pipeline/LogstashGetPipelineRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "value", "codegenName": "pipelines", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Pipeline", "namespace": "logstash._types" } } } }, "examples": { "LogstashGetPipelineResponseExample1": { "description": "A successful response from `GET _logstash/pipeline/my_pipeline`.\n", "value": "{\n \"my_pipeline\": {\n \"description\": \"Sample pipeline for illustration purposes\",\n \"last_modified\": \"2021-01-02T02:50:51.250Z\",\n \"pipeline_metadata\": {\n \"type\": \"logstash_pipeline\",\n \"version\": \"1\"\n },\n \"username\": \"elastic\",\n \"pipeline\": \"input {}\\\\n filter { grok {} }\\\\n output {}\",\n \"pipeline_settings\": {\n \"pipeline.workers\": 1,\n \"pipeline.batch.size\": 125,\n \"pipeline.batch.delay\": 50,\n \"queue.type\": \"memory\",\n \"queue.max_bytes\": \"1gb\",\n \"queue.checkpoint.writes\": 1024\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "logstash.get_pipeline" }, "specLocation": "logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "pipeline", "value": { "kind": "instance_of", "type": { "name": "Pipeline", "namespace": "logstash._types" } } }, "description": "Create or update a Logstash pipeline.\n\nCreate a pipeline that is used for Logstash Central Management.\nIf the specified pipeline exists, it is replaced.", "examples": { "LogstashPutPipelineRequestExample1": { "description": "Run `PUT _logstash/pipeline/my_pipeline` to create a pipeline.", "summary": "Create a pipeline", "value": "{\n \"description\": \"Sample pipeline for illustration purposes\",\n \"last_modified\": \"2021-01-02T02:50:51.250Z\",\n \"pipeline_metadata\": {\n \"type\": \"logstash_pipeline\",\n \"version\": 1\n },\n \"username\": \"elastic\",\n \"pipeline\": \"input {}\\\\n filter { grok {} }\\\\n output {}\",\n \"pipeline_settings\": {\n \"pipeline.workers\": 1,\n \"pipeline.batch.size\": 125,\n \"pipeline.batch.delay\": 50,\n \"queue.type\": \"memory\",\n \"queue.max_bytes\": \"1gb\",\n \"queue.checkpoint.writes\": 1024\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "logstash.put_pipeline" }, "path": [ { "description": "An identifier for the pipeline.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L51" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "logstash.put_pipeline" }, "specLocation": "logstash/put_pipeline/LogstashPutPipelineResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "Deprecation", "namespace": "migration.deprecations" }, "properties": [ { "description": "Optional details about the deprecation warning.", "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The level property describes the significance of the issue.", "name": "level", "required": true, "type": { "kind": "instance_of", "type": { "name": "DeprecationLevel", "namespace": "migration.deprecations" } } }, { "description": "Descriptive information about the deprecation warning.", "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A link to the breaking change documentation, where you can find more information about this change.", "name": "url", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "resolve_during_rolling_upgrade", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_meta", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "migration/deprecations/types.ts#L32-L47" }, { "kind": "enum", "members": [ { "name": "none" }, { "name": "info" }, { "description": "You can upgrade directly, but you are using deprecated functionality which will not be available or behave differently in the next major version.", "name": "warning" }, { "description": "You cannot upgrade without fixing this problem.", "name": "critical" } ], "name": { "name": "DeprecationLevel", "namespace": "migration.deprecations" }, "specLocation": "migration/deprecations/types.ts#L23-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get deprecation information.\nGet information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.\n\nTIP: This APIs is designed for indirect use by the Upgrade Assistant.\nYou are strongly recommended to use the Upgrade Assistant.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "migration.deprecations" }, "path": [ { "description": "Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [], "specLocation": "migration/deprecations/DeprecationInfoRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Cluster-level deprecation warnings.", "name": "cluster_settings", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } }, { "description": "Index warnings are sectioned off per index and can be filtered using an index-pattern in the query.\nThis section includes warnings for the backing indices of data streams specified in the request path.", "name": "index_settings", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } } }, { "name": "data_streams", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } } }, { "description": "Node-level deprecation warnings.\nSince only a subset of your nodes might incorporate these settings, it is important to read the details section for more information about which nodes are affected.", "name": "node_settings", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } }, { "description": "Machine learning-related deprecation warnings.", "name": "ml_settings", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } }, { "description": "Template warnings are sectioned off per template and include deprecations for both component templates and\nindex templates.", "name": "templates", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } } }, { "description": "ILM policy warnings are sectioned off per policy.", "name": "ilm_policies", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Deprecation", "namespace": "migration.deprecations" } } } } } ] }, "examples": { "DeprecationInfoResponseExample1": { "description": "An abbreviated response from `GET /_migration/deprecations`.\n", "value": "{\n \"cluster_settings\": [\n {\n \"level\": \"critical\",\n \"message\": \"Cluster name cannot contain ':'\",\n \"url\": \"https://www.elastic.co/guide/en/elasticsearch/reference/7.0/breaking-changes-7.0.html#_literal_literal_is_no_longer_allowed_in_cluster_name\",\n \"details\": \"This cluster is named [mycompany:logging], which contains the illegal character ':'.\"\n }\n ],\n \"node_settings\": [],\n \"index_settings\": {\n \"logs:apache\": [\n {\n \"level\": \"warning\",\n \"message\": \"Index name cannot contain ':'\",\n \"url\": \"https://www.elastic.co/guide/en/elasticsearch/reference/7.0/breaking-changes-7.0.html#_literal_literal_is_no_longer_allowed_in_index_name\",\n \"details\": \"This index is named [logs:apache], which contains the illegal character ':'.\"\n }\n ]\n },\n \"ml_settings\": []\n}" } }, "name": { "name": "Response", "namespace": "migration.deprecations" }, "specLocation": "migration/deprecations/DeprecationInfoResponse.ts#L23-L54" }, { "kind": "interface", "name": { "name": "MigrationFeature", "namespace": "migration.get_feature_upgrade_status" }, "properties": [ { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "minimum_index_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "migration_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "MigrationStatus", "namespace": "migration.get_feature_upgrade_status" } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MigrationFeatureIndexInfo", "namespace": "migration.get_feature_upgrade_status" } } } } ], "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42" }, { "kind": "interface", "name": { "name": "MigrationFeatureIndexInfo", "namespace": "migration.get_feature_upgrade_status" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "failure_cause", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48" }, { "kind": "enum", "members": [ { "name": "NO_MIGRATION_NEEDED" }, { "name": "MIGRATION_NEEDED" }, { "name": "IN_PROGRESS" }, { "name": "ERROR" } ], "name": { "name": "MigrationStatus", "namespace": "migration.get_feature_upgrade_status" }, "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get feature migration information.\nVersion upgrades sometimes require changes to how features store configuration information and data in system indices.\nCheck which features need to be migrated and the status of any migrations that are in progress.\n\nTIP: This API is designed for indirect use by the Upgrade Assistant.\nYou are strongly recommended to use the Upgrade Assistant.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "migration.get_feature_upgrade_status" }, "path": [], "query": [], "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusRequest.ts#L22-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "features", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MigrationFeature", "namespace": "migration.get_feature_upgrade_status" } } } }, { "name": "migration_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "MigrationStatus", "namespace": "migration.get_feature_upgrade_status" } } } ] }, "examples": { "GetFeatureUpgradeStatusResponseExample1": { "description": "A successful response from `GET /_migration/system_features`.", "value": "{\n \"features\" : [\n {\n \"feature_name\" : \"async_search\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"enrich\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"ent_search\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"fleet\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"geoip\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"kibana\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"logstash_management\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"machine_learning\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"searchable_snapshots\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"security\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"synonyms\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"tasks\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"transform\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"watcher\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n }\n ],\n \"migration_status\" : \"NO_MIGRATION_NEEDED\"\n}" } }, "name": { "name": "Response", "namespace": "migration.get_feature_upgrade_status" }, "specLocation": "migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28" }, { "kind": "interface", "name": { "name": "MigrationFeature", "namespace": "migration.post_feature_upgrade" }, "properties": [ { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start the feature migration.\nVersion upgrades sometimes require changes to how features store configuration information and data in system indices.\nThis API starts the automatic migration process.\n\nSome functionality might be temporarily unavailable during the migration process.\n\nTIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "migration.post_feature_upgrade" }, "path": [], "query": [], "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeRequest.ts#L22-L43" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "accepted", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "features", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MigrationFeature", "namespace": "migration.post_feature_upgrade" } } } } ] }, "examples": { "PostFeatureUpgradeResponseExample1": { "description": "When you run `POST /_migration/system_features` to start the migration process, the response lists the features that will be migrated.\n", "value": "{\n \"accepted\" : true,\n \"features\" : [\n {\n \"feature_name\" : \"security\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "migration.post_feature_upgrade" }, "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25" }, { "kind": "interface", "name": { "name": "AdaptiveAllocationsSettings", "namespace": "ml._types" }, "properties": [ { "description": "If true, adaptive_allocations is enabled", "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies the minimum number of allocations to scale to.\nIf set, it must be greater than or equal to 0.\nIf not defined, the deployment scales to 0.", "name": "min_number_of_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of allocations to scale to.\nIf set, it must be greater than or equal to min_number_of_allocations.", "name": "max_number_of_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L109-L125" }, { "kind": "interface", "name": { "name": "AnalysisConfig", "namespace": "ml._types" }, "properties": [ { "description": "The size of the interval that the analysis is aggregated into, typically between `5m` and `1h`. This value should be either a whole number of days or equate to a\nwhole number of buckets in one day. If the anomaly detection job uses a datafeed with aggregations, this value must also be divisible by the interval of the date histogram aggregation.", "name": "bucket_span", "required": false, "serverDefault": "5m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `categorization_field_name` is specified, you can also define the analyzer that is used to interpret the categorization field. This property cannot be used at the same time as `categorization_filters`. The categorization analyzer specifies how the `categorization_field` is interpreted by the categorization process. The `categorization_analyzer` field can be specified either as a string or as an object. If it is a string, it must refer to a built-in analyzer or one added by another plugin.", "name": "categorization_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "CategorizationAnalyzer", "namespace": "ml._types" } } }, { "description": "If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword `mlcategory`.", "name": "categorization_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `categorization_field_name` is specified, you can also define optional filters. This property expects an array of regular expressions. The expressions are used to filter out matching sequences from the categorization field values. You can use this functionality to fine tune the categorization by excluding sequences from consideration when categories are defined. For example, you can exclude SQL statements that appear in your log files. This property cannot be used at the same time as `categorization_analyzer`. If you only want to define simple regular expression filters that are applied prior to tokenization, setting this property is the easiest method. If you also want to customize the tokenizer or post-tokenization filtering, use the `categorization_analyzer` property instead and include the filters as pattern_replace character filters. The effect is exactly the same.", "name": "categorization_filters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Detector configuration objects specify which data fields a job analyzes. They also specify which analytical functions are used. You can specify multiple detectors for a job. If the detectors array does not contain at least one detector, no analysis can occur and an error is returned.", "name": "detectors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Detector", "namespace": "ml._types" } } } }, { "description": "A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity.", "name": "influencers", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "The size of the window in which to expect data that is out of time order. If you specify a non-zero value, it must be greater than or equal to one second. NOTE: Latency is applicable only when you send data by using the post data API.", "name": "latency", "required": false, "serverDefault": "0", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Advanced configuration option. Affects the pruning of models that have not been updated for the given time duration. The value must be set to a multiple of the `bucket_span`. If set too low, important information may be removed from the model. For jobs created in 8.1 and later, the default value is the greater of `30d` or 20 times `bucket_span`.", "name": "model_prune_window", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "This functionality is reserved for internal use. It is not supported for use in customer environments and is not subject to the support SLA of official GA features. If set to `true`, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. For example, suppose CPU and memory usage on host A is usually highly correlated with the same metrics on host B. Perhaps this correlation occurs because they are running a load-balanced application. If you enable this property, anomalies will be reported when, for example, CPU usage on host A is high and the value of CPU usage on host B is low. That is to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU of host B. To use the `multivariate_by_fields` property, you must also specify `by_field_name` in your detector.", "name": "multivariate_by_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Settings related to how categorization interacts with partition fields.", "name": "per_partition_categorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "PerPartitionCategorization", "namespace": "ml._types" } } }, { "description": "If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same `summary_count_field_name` applies to all detectors in the job. NOTE: The `summary_count_field_name` property cannot be used with the `metric` function.", "name": "summary_count_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ml/_types/Analysis.ts#L29-L77" }, { "kind": "interface", "attachedBehaviors": [ "OverloadOf" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "AnalysisConfig", "namespace": "ml._types" } } ], "type": { "name": "OverloadOf", "namespace": "_spec_utils" } } ], "name": { "name": "AnalysisConfigRead", "namespace": "ml._types" }, "properties": [ { "description": "The size of the interval that the analysis is aggregated into, typically between `5m` and `1h`.", "name": "bucket_span", "required": true, "serverDefault": "5m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `categorization_field_name` is specified, you can also define the analyzer that is used to interpret the categorization field.\nThis property cannot be used at the same time as `categorization_filters`.\nThe categorization analyzer specifies how the `categorization_field` is interpreted by the categorization process.", "name": "categorization_analyzer", "required": false, "type": { "kind": "instance_of", "type": { "name": "CategorizationAnalyzer", "namespace": "ml._types" } } }, { "description": "If this property is specified, the values of the specified field will be categorized.\nThe resulting categories must be used in a detector by setting `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword `mlcategory`.", "name": "categorization_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "If `categorization_field_name` is specified, you can also define optional filters.\nThis property expects an array of regular expressions.\nThe expressions are used to filter out matching sequences from the categorization field values.", "name": "categorization_filters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "An array of detector configuration objects.\nDetector configuration objects specify which data fields a job analyzes.\nThey also specify which analytical functions are used.\nYou can specify multiple detectors for a job.", "name": "detectors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DetectorRead", "namespace": "ml._types" } } } }, { "description": "A comma separated list of influencer field names.\nTypically these can be the by, over, or partition fields that are used in the detector configuration.\nYou might also want to use a field name that is not specifically named in a detector, but is available as part of the input data.\nWhen you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity.", "name": "influencers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } }, { "description": "Advanced configuration option.\nAffects the pruning of models that have not been updated for the given time duration.\nThe value must be set to a multiple of the `bucket_span`.\nIf set too low, important information may be removed from the model.\nTypically, set to `30d` or longer.\nIf not set, model pruning only occurs if the model memory status reaches the soft limit or the hard limit.\nFor jobs created in 8.1 and later, the default value is the greater of `30d` or 20 times `bucket_span`.", "name": "model_prune_window", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The size of the window in which to expect data that is out of time order.\nDefaults to no latency.\nIf you specify a non-zero value, it must be greater than or equal to one second.", "name": "latency", "required": false, "serverDefault": "0", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "This functionality is reserved for internal use.\nIt is not supported for use in customer environments and is not subject to the support SLA of official GA features.\nIf set to `true`, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold.", "name": "multivariate_by_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Settings related to how categorization interacts with partition fields.", "name": "per_partition_categorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "PerPartitionCategorization", "namespace": "ml._types" } } }, { "description": "If this property is specified, the data that is fed to the job is expected to be pre-summarized.\nThis property value is the name of the field that contains the count of raw data points that have been summarized.\nThe same `summary_count_field_name` applies to all detectors in the job.", "name": "summary_count_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ml/_types/Analysis.ts#L79-L148" }, { "kind": "interface", "name": { "name": "AnalysisLimits", "namespace": "ml._types" }, "properties": [ { "description": "The maximum number of examples stored per category in memory and in the results data store. If you increase this value, more examples are available, however it requires that you have more storage available. If you set this value to 0, no examples are stored. NOTE: The `categorization_examples_limit` applies only to analysis that uses categorization.", "name": "categorization_examples_limit", "required": false, "serverDefault": 4, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The approximate maximum amount of memory resources that are required for analytical processing. Once this limit is approached, data pruning becomes more aggressive. Upon exceeding this limit, new entities are not modeled. If the `xpack.ml.max_model_memory_limit` setting has a value greater than 0 and less than 1024mb, that value is used instead of the default. The default value is relatively small to ensure that high resource usage is a conscious decision. If you have jobs that are expected to analyze high cardinality fields, you will likely need to use a higher value. If you specify a number instead of a string, the units are assumed to be MiB. Specifying a string is recommended for clarity. If you specify a byte size unit of `b` or `kb` and the number does not equate to a discrete number of megabytes, it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you specify a value less than 1 MiB, an error occurs. If you specify a value for the `xpack.ml.max_model_memory_limit` setting, an error occurs when you try to create jobs that have `model_memory_limit` values greater than that setting value.", "name": "model_memory_limit", "required": false, "serverDefault": "1024mb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "ml/_types/Analysis.ts#L161-L172" }, { "kind": "interface", "name": { "name": "AnalysisMemoryLimit", "namespace": "ml._types" }, "properties": [ { "description": "Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes.", "name": "model_memory_limit", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Analysis.ts#L174-L179" }, { "kind": "interface", "name": { "name": "Anomaly", "namespace": "ml._types" }, "properties": [ { "description": "The actual value for the bucket.", "name": "actual", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "description": "Information about the factors impacting the initial anomaly score.", "name": "anomaly_score_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnomalyExplanation", "namespace": "ml._types" } } }, { "description": "The length of the bucket in seconds. This value matches the `bucket_span` that is specified in the job.", "name": "bucket_span", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split.", "name": "by_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The value of `by_field_name`.", "name": "by_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "For population analysis, an over field must be specified in the detector. This property contains an array of anomaly records that are the causes for the anomaly that has been identified for the over field. This sub-resource contains the most anomalous records for the `over_field_name`. For scalability reasons, a maximum of the 10 most significant causes of the anomaly are returned. As part of the core analytical modeling, these low-level anomaly records are aggregated for their parent over field record. The `causes` resource contains similar elements to the record resource, namely `actual`, `typical`, `geo_results.actual_point`, `geo_results.typical_point`, `*_field_name` and `*_field_value`. Probability and scores are not applicable to causes.", "name": "causes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "AnomalyCause", "namespace": "ml._types" } } } }, { "description": "A unique identifier for the detector.", "name": "detector_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Certain functions require a field to operate on, for example, `sum()`. For those functions, this value is the name of the field to be analyzed.", "name": "field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The function in which the anomaly occurs, as specified in the detector configuration. For example, `max`.", "name": "function", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The description of the function in which the anomaly occurs, as specified in the detector configuration.", "name": "function_description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If the detector function is `lat_long`, this object contains comma delimited strings for the latitude and longitude of the actual and typical values.", "name": "geo_results", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoResults", "namespace": "ml._types" } } }, { "description": "If influencers were specified in the detector configuration, this array contains influencers that contributed to or were to blame for an anomaly.", "name": "influencers", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Influence", "namespace": "ml._types" } } } }, { "description": "A normalized score between 0-100, which is based on the probability of the anomalousness of this record. This is the initial value that was calculated at the time the bucket was processed.", "name": "initial_record_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If true, this is an interim result. In other words, the results are calculated based on partial input data.", "name": "is_interim", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits.", "name": "over_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The value of `over_field_name`.", "name": "over_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field.", "name": "partition_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The value of `partition_field_name`.", "name": "partition_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The probability of the individual anomaly occurring, in the range 0 to 1. For example, `0.0000772031`. This value can be held to a high precision of over 300 decimal places, so the `record_score` is provided as a human-readable and friendly interpretation of this.", "name": "probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "A normalized score between 0-100, which is based on the probability of the anomalousness of this record. Unlike `initial_record_score`, this value will be updated by a re-normalization process as new data is analyzed.", "name": "record_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Internal. This is always set to `record`.", "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The start time of the bucket for which these results were calculated.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The typical value for the bucket, according to analytical modeling.", "name": "typical", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "ml/_types/Anomaly.ts#L24-L121" }, { "kind": "interface", "name": { "name": "AnomalyCause", "namespace": "ml._types" }, "properties": [ { "name": "actual", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "name": "by_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "by_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "correlated_by_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "function", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "function_description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "geo_results", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoResults", "namespace": "ml._types" } } }, { "name": "influencers", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Influence", "namespace": "ml._types" } } } }, { "name": "over_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "over_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "partition_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "partition_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "typical", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "ml/_types/Anomaly.ts#L123-L139" }, { "kind": "interface", "name": { "name": "AnomalyExplanation", "namespace": "ml._types" }, "properties": [ { "description": "Impact from the duration and magnitude of the detected anomaly relative to the historical average.", "name": "anomaly_characteristics_impact", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Length of the detected anomaly in the number of buckets.", "name": "anomaly_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Type of the detected anomaly: `spike` or `dip`.", "name": "anomaly_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates reduction of anomaly score for the bucket with large confidence intervals. If a bucket has large confidence intervals, the score is reduced.", "name": "high_variance_penalty", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If the bucket contains fewer samples than expected, the score is reduced.", "name": "incomplete_bucket_penalty", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Lower bound of the 95% confidence interval.", "name": "lower_confidence_bound", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Impact of the deviation between actual and typical values in the past 12 buckets.", "name": "multi_bucket_impact", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Impact of the deviation between actual and typical values in the current bucket.", "name": "single_bucket_impact", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Typical (expected) value for this bucket.", "name": "typical_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Upper bound of the 95% confidence interval.", "name": "upper_confidence_bound", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/Anomaly.ts#L157-L198" }, { "kind": "interface", "name": { "name": "ApiKeyAuthorization", "namespace": "ml._types" }, "properties": [ { "description": "The identifier for the API key.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the API key.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Authorization.ts#L20-L29" }, { "kind": "enum", "members": [ { "name": "actual" }, { "name": "typical" }, { "name": "diff_from_typical" }, { "name": "time" } ], "name": { "name": "AppliesTo", "namespace": "ml._types" }, "specLocation": "ml/_types/Rule.ts#L67-L72" }, { "kind": "interface", "name": { "name": "BucketInfluencer", "namespace": "ml._types" }, "properties": [ { "description": "A normalized score between 0-100, which is calculated for each bucket influencer. This score might be updated as\nnewer data is analyzed.", "name": "anomaly_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The length of the bucket in seconds. This value matches the bucket span that is specified in the job.", "name": "bucket_span", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The field name of the influencer.", "name": "influencer_field_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The score between 0-100 for each bucket influencer. This score is the initial value that was calculated at the\ntime the bucket was processed.", "name": "initial_anomaly_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If true, this is an interim result. In other words, the results are calculated based on partial input data.", "name": "is_interim", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The probability that the bucket has this behavior, in the range 0 to 1. This value can be held to a high precision\nof over 300 decimal places, so the `anomaly_score` is provided as a human-readable and friendly interpretation of\nthis.", "name": "probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Internal.", "name": "raw_anomaly_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Internal. This value is always set to `bucket_influencer`.", "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The start time of the bucket for which these results were calculated.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The start time of the bucket for which these results were calculated.", "name": "timestamp_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/_types/Bucket.ts#L79-L127" }, { "kind": "interface", "name": { "name": "BucketSummary", "namespace": "ml._types" }, "properties": [ { "description": "The maximum anomaly score, between 0-100, for any of the bucket influencers. This is an overall, rate-limited\nscore for the job. All the anomaly records in the bucket contribute to this score. This value might be updated as\nnew data is analyzed.", "name": "anomaly_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "bucket_influencers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "BucketInfluencer", "namespace": "ml._types" } } } }, { "description": "The length of the bucket in seconds. This value matches the bucket span that is specified in the job.", "name": "bucket_span", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of input data records processed in this bucket.", "name": "event_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The maximum anomaly score for any of the bucket influencers. This is the initial value that was calculated at the\ntime the bucket was processed.", "name": "initial_anomaly_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If true, this is an interim result. In other words, the results are calculated based on partial input data.", "name": "is_interim", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The amount of time, in milliseconds, that it took to analyze the bucket contents and calculate results.", "name": "processing_time_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Internal. This value is always set to bucket.", "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The start time of the bucket. This timestamp uniquely identifies the bucket. Events that occur exactly at the\ntimestamp of the bucket are included in the results for the bucket.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The start time of the bucket. This timestamp uniquely identifies the bucket. Events that occur exactly at the\ntimestamp of the bucket are included in the results for the bucket.", "name": "timestamp_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/_types/Bucket.ts#L30-L77" }, { "kind": "interface", "name": { "name": "CalendarEvent", "namespace": "ml._types" }, "properties": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "event_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A description of the scheduled event.", "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format.", "name": "end_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format.", "name": "start_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "When true the model will not create results for this calendar period.", "name": "skip_result", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "When true the model will not be updated for this calendar period.", "name": "skip_model_update", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Shift time by this many seconds. For example adjust time for daylight savings changes", "name": "force_time_shift", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/CalendarEvent.ts#L24-L44" }, { "kind": "type_alias", "codegenNames": [ "name", "definition" ], "name": { "name": "CategorizationAnalyzer", "namespace": "ml._types" }, "specLocation": "ml/_types/Analysis.ts#L181-L182", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "CategorizationAnalyzerDefinition", "namespace": "ml._types" } } ] } }, { "kind": "interface", "name": { "name": "CategorizationAnalyzerDefinition", "namespace": "ml._types" }, "properties": [ { "description": "One or more character filters. In addition to the built-in character filters, other plugins can provide more character filters. If this property is not specified, no character filters are applied prior to categorization. If you are customizing some other aspect of the analyzer and you need to achieve the equivalent of `categorization_filters` (which are not permitted when some other aspect of the analyzer is customized), add them here as pattern replace character filters.", "name": "char_filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CharFilter", "namespace": "_types.analysis" } } } }, { "description": "One or more token filters. In addition to the built-in token filters, other plugins can provide more token filters. If this property is not specified, no token filters are applied prior to categorization.", "name": "filter", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TokenFilter", "namespace": "_types.analysis" } } } }, { "description": "The name or definition of the tokenizer to use after character filters are applied. This property is compulsory if `categorization_analyzer` is specified as an object. Machine learning provides a tokenizer called `ml_standard` that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. If you want to use that tokenizer but change the character or token filters, specify \"tokenizer\": \"ml_standard\" in your `categorization_analyzer`. Additionally, the `ml_classic` tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2). `ml_classic` was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify \"tokenizer\": \"ml_classic\" in your `categorization_analyzer`.", "extDocId": "analysis-tokenizers", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/tokenizer-reference", "name": "tokenizer", "required": false, "type": { "kind": "instance_of", "type": { "name": "Tokenizer", "namespace": "_types.analysis" } } } ], "specLocation": "ml/_types/Analysis.ts#L184-L198" }, { "kind": "enum", "members": [ { "name": "ok" }, { "name": "warn" } ], "name": { "name": "CategorizationStatus", "namespace": "ml._types" }, "specLocation": "ml/_types/Model.ts#L84-L87" }, { "kind": "interface", "name": { "name": "Category", "namespace": "ml._types" }, "properties": [ { "description": "A unique identifier for the category. category_id is unique at the job level, even when per-partition categorization is enabled.", "name": "category_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "ulong", "namespace": "_types" } } }, { "description": "A list of examples of actual values that matched the category.", "name": "examples", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "[experimental] A Grok pattern that could be used in Logstash or an ingest pipeline to extract fields from messages that match the category. This field is experimental and may be changed or removed in a future release. The Grok patterns that are found are not optimal, but are often a good starting point for manual tweaking.", "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The maximum length of the fields that matched the category. The value is increased by 10% to enable matching for similar fields that have not been analyzed.", "name": "max_matching_length", "required": true, "type": { "kind": "instance_of", "type": { "name": "ulong", "namespace": "_types" } } }, { "description": "If per-partition categorization is enabled, this property identifies the field used to segment the categorization. It is not present when per-partition categorization is disabled.", "name": "partition_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If per-partition categorization is enabled, this property identifies the value of the partition_field_name for the category. It is not present when per-partition categorization is disabled.", "name": "partition_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A regular expression that is used to search for values that match the category.", "name": "regex", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A space separated list of the common tokens that are matched in values of the category.", "name": "terms", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of messages that have been matched by this category. This is only guaranteed to have the latest accurate count after a job _flush or _close", "name": "num_matches", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A list of category_id entries that this current category encompasses. Any new message that is processed by the categorizer will match against this category and not any of the categories in this list. This is only guaranteed to have the latest accurate list of categories after a job _flush or _close", "name": "preferred_to_categories", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "name": "p", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "mlcategory", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Category.ts#L23-L49" }, { "kind": "interface", "name": { "name": "ChunkingConfig", "namespace": "ml._types" }, "properties": [ { "description": "If the mode is `auto`, the chunk size is dynamically calculated;\nthis is the recommended value when the datafeed does not use aggregations.\nIf the mode is `manual`, chunking is applied according to the specified `time_span`;\nuse this mode when the datafeed uses aggregations. If the mode is `off`, no chunking is applied.", "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "ChunkingMode", "namespace": "ml._types" } } }, { "description": "The time span that each search will be querying. This setting is applicable only when the `mode` is set to `manual`.", "name": "time_span", "required": false, "serverDefault": "3h", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L251-L264" }, { "kind": "enum", "members": [ { "name": "auto" }, { "name": "manual" }, { "name": "off" } ], "name": { "name": "ChunkingMode", "namespace": "ml._types" }, "specLocation": "ml/_types/Datafeed.ts#L245-L249" }, { "kind": "interface", "name": { "name": "ClassificationInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of feature importance values per document.", "docId": "ml-feature-importance", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-feature-importance", "name": "num_top_feature_importance_values", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the type of the predicted field to write. Acceptable values are: string, number, boolean. When boolean is provided 1.0 is transformed to true and 0.0 to false.", "name": "prediction_field_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies the field to which the top classes are written. Defaults to top_classes.", "name": "top_classes_results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L118-L133" }, { "kind": "interface", "name": { "name": "CommonTokenizationConfig", "namespace": "ml._types" }, "properties": [ { "description": "Should the tokenizer lower case the text", "name": "do_lower_case", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Maximum input sequence length for the model", "name": "max_sequence_length", "required": false, "serverDefault": 512, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Tokenization spanning options. Special value of -1 indicates no spanning takes place", "name": "span", "required": false, "serverDefault": -1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Should tokenization input be automatically truncated before sending to the model for inference", "name": "truncate", "required": false, "serverDefault": "first", "type": { "kind": "instance_of", "type": { "name": "TokenizationTruncate", "namespace": "ml._types" } } }, { "description": "Is tokenization completed with special tokens", "name": "with_special_tokens", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L160-L186" }, { "kind": "enum", "members": [ { "name": "gt" }, { "name": "gte" }, { "name": "lt" }, { "name": "lte" } ], "name": { "name": "ConditionOperator", "namespace": "ml._types" }, "specLocation": "ml/_types/Rule.ts#L74-L79" }, { "kind": "type_alias", "description": "Custom metadata about the job", "name": { "name": "CustomSettings", "namespace": "ml._types" }, "specLocation": "ml/_types/Settings.ts#L22-L27", "type": { "kind": "user_defined_value" } }, { "kind": "interface", "name": { "name": "DataCounts", "namespace": "ml._types" }, "properties": [ { "name": "bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "earliest_record_timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "empty_bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "input_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "input_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "input_record_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "invalid_date_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "last_data_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "latest_empty_bucket_timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "latest_record_timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "latest_sparse_bucket_timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "latest_bucket_timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "log_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "missing_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "out_of_order_timestamp_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "processed_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "processed_record_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "sparse_bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L352-L372" }, { "kind": "interface", "name": { "name": "DataDescription", "namespace": "ml._types" }, "properties": [ { "description": "Only JSON format is supported at this time.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the field that contains the timestamp.", "name": "time_field", "required": false, "serverDefault": "time", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The value `epoch` refers to UNIX or Epoch time (the number of seconds since 1 Jan 1970). The value `epoch_ms` indicates that time is measured in milliseconds since the epoch. The `epoch` and `epoch_ms` time formats accept either integer or real values. Custom patterns must conform to the Java DateTimeFormatter class. When you use date-time formatting patterns, it is recommended that you provide the full date, time and time zone. For example: `yyyy-MM-dd'T'HH:mm:ssX`. If the pattern that you specify is not sufficient to produce a complete timestamp, job creation fails.", "name": "time_format", "required": false, "serverDefault": "epoch", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "field_delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Job.ts#L374-L390" }, { "kind": "interface", "name": { "name": "Datafeed", "namespace": "ml._types" }, "properties": [ { "aliases": [ "aggs" ], "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "The security privileges that the datafeed uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the datafeed, this property is omitted.", "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedAuthorization", "namespace": "ml._types" } } }, { "name": "chunking_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChunkingConfig", "namespace": "ml._types" } } }, { "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "indexes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max_empty_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "extDocId": "query-dsl", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "query_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "name": "scroll_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "delayed_data_check_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" } } }, { "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L37-L61" }, { "kind": "interface", "name": { "name": "DatafeedAuthorization", "namespace": "ml._types" }, "properties": [ { "description": "If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response.", "name": "api_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "ApiKeyAuthorization", "namespace": "ml._types" } } }, { "description": "If a user ID was used for the most recent update to the datafeed, its roles at the time of the update are listed in the response.", "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "If a service account was used for the most recent update to the datafeed, the account name is listed in the response.", "name": "service_account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Authorization.ts#L31-L43" }, { "kind": "interface", "name": { "name": "DatafeedConfig", "namespace": "ml._types" }, "properties": [ { "aliases": [ "aggs" ], "description": "If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of these time chunks are calculated and is an advanced configuration option.", "name": "chunking_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChunkingConfig", "namespace": "ml._types" } } }, { "description": "A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. The default value is the job identifier.", "name": "datafeed_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally search over indices that have already been read in an effort to determine whether any data has subsequently been added to the index. If missing data is found, it is a good indication that the `query_delay` option is set too low and the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time datafeeds.", "name": "delayed_data_check_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" } } }, { "description": "The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: `150s`. When `frequency` is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation.", "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "aliases": [ "indexes" ], "description": "An array of index names. Wildcards are supported. If any indices are in remote clusters, the machine learning nodes must have the `remote_cluster_client` role.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Specifies index expansion options that are used during search.", "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } }, { "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If a real-time datafeed has never seen any data (including during any initial training period) then it will automatically stop itself and close its associated job after this many real-time searches that return no documents. In other words, it will stop after `frequency` times `max_empty_searches` of real-time operation. If not set then a datafeed with no end time that sees no data will remain started until it is explicitly stopped.", "name": "max_empty_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default value is randomly selected between `60s` and `120s`. This randomness improves the query performance when there are multiple jobs running on the same node.", "name": "query_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies runtime fields for the datafeed search.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "description": "The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. The maximum value is the value of `index.max_result_window`, which is 10,000 by default.", "name": "scroll_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L63-L120" }, { "kind": "interface", "name": { "name": "DatafeedRunningState", "namespace": "ml._types" }, "properties": [ { "description": "Indicates if the datafeed is \"real-time\"; meaning that the datafeed has no configured `end` time.", "name": "real_time_configured", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether the datafeed has finished running on the available past data.\nFor datafeeds without a configured `end` time, this means that the datafeed is now running on \"real-time\" data.", "name": "real_time_running", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Provides the latest time interval the datafeed has searched.", "name": "search_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "RunningStateSearchInterval", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L210-L224" }, { "kind": "enum", "members": [ { "name": "started" }, { "name": "stopped" }, { "name": "starting" }, { "name": "stopping" } ], "name": { "name": "DatafeedState", "namespace": "ml._types" }, "specLocation": "ml/_types/Datafeed.ts#L136-L141" }, { "kind": "interface", "name": { "name": "DatafeedStats", "namespace": "ml._types" }, "properties": [ { "description": "For started datafeeds only, contains messages relating to the selection of a node.", "name": "assignment_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A numerical character string that uniquely identifies the datafeed.\nThis identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.\nIt must start and end with alphanumeric characters.", "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "availability": { "stack": {} }, "description": "For started datafeeds only, this information pertains to the node upon which the datafeed is started.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "DiscoveryNodeCompact", "namespace": "ml._types" } } }, { "description": "The status of the datafeed, which can be one of the following values: `starting`, `started`, `stopping`, `stopped`.", "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "DatafeedState", "namespace": "ml._types" } } }, { "description": "An object that provides statistical information about timing aspect of this datafeed.", "name": "timing_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedTimingStats", "namespace": "ml._types" } } }, { "description": "An object containing the running state for this datafeed.\nIt is only provided if the datafeed is started.", "name": "running_state", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedRunningState", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L143-L172" }, { "kind": "interface", "name": { "name": "DatafeedTimingStats", "namespace": "ml._types" }, "properties": [ { "description": "The number of buckets processed.", "name": "bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The exponential average search time per hour, in milliseconds.", "name": "exponential_average_search_time_per_hour_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "exponential_average_calculation_context", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExponentialAverageCalculationContext", "namespace": "ml._types" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The number of searches run by the datafeed.", "name": "search_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total time the datafeed spent searching, in milliseconds.", "name": "total_search_time_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The average search time per bucket, in milliseconds.", "name": "average_search_time_per_bucket_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L174-L202" }, { "kind": "interface", "name": { "name": "DataframeAnalysis", "namespace": "ml._types" }, "properties": [ { "description": "Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero.", "name": "alpha", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable.\nFor classification analysis, the data type of the field must be numeric (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or `boolean`. There must be no more than 30 different values in this field.\nFor regression analysis, the data type of the field must be numeric.", "name": "dependent_variable", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1.", "name": "downsample_factor", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable.", "name": "early_stopping_enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1.", "name": "eta", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. Specifies the rate at which `eta` increases for each new tree that is added to the forest. For example, a rate of 1.05 increases `eta` by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2.", "name": "eta_growth_rate_per_tree", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization.", "name": "feature_bag_fraction", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple `feature_processors` entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields.", "name": "feature_processors", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeAnalysisFeatureProcessor", "namespace": "ml._types" } } } }, { "description": "Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value.", "name": "gamma", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value.", "name": "lambda", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization.", "name": "max_optimization_rounds_per_hyperparameter", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "aliases": [ "maximum_number_trees" ], "description": "Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization.", "name": "max_trees", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs.", "name": "num_top_feature_importance_values", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Defines the name of the prediction field in the results. Defaults to `_prediction`.", "name": "prediction_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as `source` and `analyzed_fields` are the same).", "name": "randomize_seed", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the `soft_tree_depth_tolerance` to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.", "name": "soft_tree_depth_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds `soft_tree_depth_limit`. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01.", "name": "soft_tree_depth_tolerance", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage.", "name": "training_percent", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "Percentage", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L134-L213" }, { "kind": "interface", "name": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" }, "properties": [ { "description": "An array of strings that defines the fields that will be excluded from the analysis. You do not need to add fields with unsupported data types to excludes, these fields are excluded from the analysis automatically.", "name": "includes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "An array of strings that defines the fields that will be included in the analysis.", "name": "excludes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "shortcutProperty": "includes", "specLocation": "ml/_types/DataframeAnalytics.ts#L238-L244" }, { "kind": "interface", "inherits": { "type": { "name": "DataframeAnalysis", "namespace": "ml._types" } }, "name": { "name": "DataframeAnalysisClassification", "namespace": "ml._types" }, "properties": [ { "name": "class_assignment_objective", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Defines the number of categories for which the predicted probabilities are reported. It must be non-negative or -1. If it is -1 or greater than the total number of categories, probabilities are reported for all categories; if you have a large number of categories, there could be a significant effect on the size of your destination index. NOTE: To use the AUC ROC evaluation method, `num_top_classes` must be set to -1 or a value greater than or equal to the total number of categories.", "name": "num_top_classes", "required": false, "serverDefault": 2, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L227-L236" }, { "kind": "interface", "name": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" }, "properties": [ { "description": "The configuration information necessary to perform classification.", "docId": "ml-classification", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-dfa-classification", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisClassification", "namespace": "ml._types" } } }, { "description": "The configuration information necessary to perform outlier detection. NOTE: Advanced parameters are for fine-tuning classification analysis. They are set automatically by hyperparameter optimization to give the minimum validation error. It is highly recommended to use the default values unless you fully understand the function of these parameters.", "docId": "ml-classification", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-dfa-classification", "name": "outlier_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisOutlierDetection", "namespace": "ml._types" } } }, { "description": "The configuration information necessary to perform regression. NOTE: Advanced parameters are for fine-tuning regression analysis. They are set automatically by hyperparameter optimization to give the minimum validation error. It is highly recommended to use the default values unless you fully understand the function of these parameters.", "docId": "ml-regression", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-dfa-regression", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisRegression", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L84-L101", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "DataframeAnalysisFeatureProcessor", "namespace": "ml._types" }, "properties": [ { "description": "The configuration information necessary to perform frequency encoding.", "name": "frequency_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisFeatureProcessorFrequencyEncoding", "namespace": "ml._types" } } }, { "description": "The configuration information necessary to perform multi encoding. It allows multiple processors to be changed together. This way the output of a processor can then be passed to another as an input.", "name": "multi_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisFeatureProcessorMultiEncoding", "namespace": "ml._types" } } }, { "description": "The configuration information necessary to perform n-gram encoding. Features created by this encoder have the following name format: .. For example, if the feature_prefix is f, the feature name for the second unigram in a string is f.11.", "name": "n_gram_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisFeatureProcessorNGramEncoding", "namespace": "ml._types" } } }, { "description": "The configuration information necessary to perform one hot encoding.", "name": "one_hot_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisFeatureProcessorOneHotEncoding", "namespace": "ml._types" } } }, { "description": "The configuration information necessary to perform target mean encoding.", "name": "target_mean_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisFeatureProcessorTargetMeanEncoding", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L246-L258", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "DataframeAnalysisFeatureProcessorFrequencyEncoding", "namespace": "ml._types" }, "properties": [ { "description": "The resulting feature name.", "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0.", "name": "frequency_map", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L260-L267" }, { "kind": "interface", "name": { "name": "DataframeAnalysisFeatureProcessorMultiEncoding", "namespace": "ml._types" }, "properties": [ { "description": "The ordered array of custom processors to execute. Must be more than 1.", "name": "processors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L269-L272" }, { "kind": "interface", "name": { "name": "DataframeAnalysisFeatureProcessorNGramEncoding", "namespace": "ml._types" }, "properties": [ { "description": "The feature name prefix. Defaults to ngram__.", "name": "feature_prefix", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the text field to encode.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0.", "name": "length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5.", "name": "n_grams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "description": "Specifies the zero-indexed start of the n-gram substring. Negative values are allowed for encoding n-grams of string suffixes. Defaults to 0.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "custom", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L274-L286" }, { "kind": "interface", "name": { "name": "DataframeAnalysisFeatureProcessorOneHotEncoding", "namespace": "ml._types" }, "properties": [ { "description": "The name of the field to encode.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The one hot map mapping the field value with the column name.", "name": "hot_map", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L288-L293" }, { "kind": "interface", "name": { "name": "DataframeAnalysisFeatureProcessorTargetMeanEncoding", "namespace": "ml._types" }, "properties": [ { "description": "The default value if field value is not found in the target_map.", "name": "default_value", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The resulting feature name.", "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the field to encode.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field value to target mean transition map.", "name": "target_map", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L295-L304" }, { "kind": "interface", "name": { "name": "DataframeAnalysisOutlierDetection", "namespace": "ml._types" }, "properties": [ { "description": "Specifies whether the feature influence calculation is enabled.", "name": "compute_feature_influence", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The minimum outlier score that a document needs to have in order to calculate its feature influence score. Value range: 0-1.", "name": "feature_influence_threshold", "required": false, "serverDefault": 0.1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The method that outlier detection uses. Available methods are `lof`, `ldof`, `distance_kth_nn`, `distance_knn`, and `ensemble`. The default value is ensemble, which means that outlier detection uses an ensemble of different methods and normalises and combines their individual outlier scores to obtain the overall outlier score.", "name": "method", "required": false, "serverDefault": "ensemble", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Defines the value for how many nearest neighbors each method of outlier detection uses to calculate its outlier score. When the value is not set, different values are used for different ensemble members. This default behavior helps improve the diversity in the ensemble; only override it if you are confident that the value you choose is appropriate for the data set.", "name": "n_neighbors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The proportion of the data set that is assumed to be outlying prior to outlier detection. For example, 0.05 means it is assumed that 5% of values are real outliers and 95% are inliers.", "name": "outlier_fraction", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If true, the following operation is performed on the columns before computing outlier scores: `(x_i - mean(x_i)) / sd(x_i)`.", "name": "standardization_enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L103-L132" }, { "kind": "interface", "inherits": { "type": { "name": "DataframeAnalysis", "namespace": "ml._types" } }, "name": { "name": "DataframeAnalysisRegression", "namespace": "ml._types" }, "properties": [ { "description": "The loss function used during regression. Available options are `mse` (mean squared error), `msle` (mean squared logarithmic error), `huber` (Pseudo-Huber loss).", "name": "loss_function", "required": false, "serverDefault": "mse", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A positive number that is used as a parameter to the `loss_function`.", "name": "loss_function_parameter", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L215-L225" }, { "kind": "interface", "name": { "name": "DataframeAnalytics", "namespace": "ml._types" }, "properties": [ { "description": "An object containing information about the analysis job.", "name": "analysis_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsContainer", "namespace": "ml._types" } } }, { "description": "For running jobs only, contains messages relating to the selection of a node to run the job.", "name": "assignment_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An object that provides counts for the quantity of documents skipped, used in training, or available for testing.", "name": "data_counts", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsDataCounts", "namespace": "ml._types" } } }, { "description": "The unique identifier of the data frame analytics job.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "An object describing memory usage of the analytics. It is present only after the job is started and memory usage is reported.", "name": "memory_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsMemoryUsage", "namespace": "ml._types" } } }, { "availability": { "stack": {} }, "description": "Contains properties for the node that runs the job. This information is available only for running jobs.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeAttributes", "namespace": "_types" } } }, { "description": "The progress report of the data frame analytics job by phase.", "name": "progress", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsProgress", "namespace": "ml._types" } } } }, { "description": "The status of the data frame analytics job, which can be one of the following values: failed, started, starting, stopping, stopped.", "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeState", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L325-L345" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsAuthorization", "namespace": "ml._types" }, "properties": [ { "description": "If an API key was used for the most recent update to the job, its name and identifier are listed in the response.", "name": "api_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "ApiKeyAuthorization", "namespace": "ml._types" } } }, { "description": "If a user ID was used for the most recent update to the job, its roles at the time of the update are listed in the response.", "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "If a service account was used for the most recent update to the job, the account name is listed in the response.", "name": "service_account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Authorization.ts#L45-L57" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsDestination", "namespace": "ml._types" }, "properties": [ { "description": "Defines the destination index to store the results of the data frame analytics job.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Defines the name of the field in which to store the results of the analysis. Defaults to `ml`.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L77-L82" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsFieldSelection", "namespace": "ml._types" }, "properties": [ { "description": "Whether the field is selected to be included in the analysis.", "name": "is_included", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether the field is required.", "name": "is_required", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The feature type of this field for the analysis. May be categorical or numerical.", "name": "feature_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The mapping types of the field.", "name": "mapping_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field name.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The reason a field is not selected to be included in the analysis.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L55-L68" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsMemoryEstimation", "namespace": "ml._types" }, "properties": [ { "description": "Estimated memory usage under the assumption that overflowing to disk is allowed during data frame analytics. expected_memory_with_disk is usually smaller than expected_memory_without_disk as using disk allows to limit the main memory needed to perform data frame analytics.", "name": "expected_memory_with_disk", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Estimated memory usage under the assumption that the whole data frame analytics should happen in memory (i.e. without overflowing to disk).", "name": "expected_memory_without_disk", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L70-L75" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" }, "properties": [ { "description": "Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {\"match_all\": {}}.", "docId": "query-dsl", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Definitions of runtime fields that will become part of the mapping of the destination index.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "Specify `includes` and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis.", "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L39-L53" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsStatsContainer", "namespace": "ml._types" }, "properties": [ { "description": "An object containing information about the classification analysis job.", "name": "classification_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsHyperparameters", "namespace": "ml._types" } } }, { "description": "An object containing information about the outlier detection job.", "name": "outlier_detection_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsOutlierDetection", "namespace": "ml._types" } } }, { "description": "An object containing information about the regression analysis.", "name": "regression_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsStatsHyperparameters", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L374-L382", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "DataframeAnalyticsStatsDataCounts", "namespace": "ml._types" }, "properties": [ { "description": "The number of documents that are skipped during the analysis because they contained values that are not supported by the analysis. For example, outlier detection does not support missing fields so it skips documents with missing fields. Likewise, all types of analysis skip documents that contain arrays with more than one element.", "name": "skipped_docs_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of documents that are not used for training the model and can be used for testing.", "name": "test_docs_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of documents that are used for training the model.", "name": "training_docs_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L365-L372" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsStatsHyperparameters", "namespace": "ml._types" }, "properties": [ { "description": "An object containing the parameters of the classification analysis job.", "name": "hyperparameters", "required": true, "type": { "kind": "instance_of", "type": { "name": "Hyperparameters", "namespace": "ml._types" } } }, { "description": "The number of iterations on the analysis.", "name": "iteration", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The timestamp when the statistics were reported in milliseconds since the epoch.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "An object containing time statistics about the data frame analytics job.", "name": "timing_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "TimingStats", "namespace": "ml._types" } } }, { "description": "An object containing information about validation loss.", "name": "validation_loss", "required": true, "type": { "kind": "instance_of", "type": { "name": "ValidationLoss", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L384-L403" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsStatsMemoryUsage", "namespace": "ml._types" }, "properties": [ { "description": "This value is present when the status is hard_limit and it is a new estimate of how much memory the job needs.", "name": "memory_reestimate_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of bytes used at the highest peak of memory usage.", "name": "peak_usage_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The memory usage status.", "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The timestamp when memory usage was calculated.", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L354-L363" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsStatsOutlierDetection", "namespace": "ml._types" }, "properties": [ { "description": "The list of job parameters specified by the user or determined by algorithmic heuristics.", "name": "parameters", "required": true, "type": { "kind": "instance_of", "type": { "name": "OutlierDetectionParameters", "namespace": "ml._types" } } }, { "description": "The timestamp when the statistics were reported in milliseconds since the epoch.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "An object containing time statistics about the data frame analytics job.", "name": "timing_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "TimingStats", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L405-L418" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsStatsProgress", "namespace": "ml._types" }, "properties": [ { "description": "Defines the phase of the data frame analytics job.", "name": "phase", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The progress that the data frame analytics job has made expressed in percentage.", "name": "progress_percent", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L347-L352" }, { "kind": "interface", "name": { "name": "DataframeAnalyticsSummary", "namespace": "ml._types" }, "properties": [ { "name": "allow_lazy_start", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analysis", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" } } }, { "name": "analyzed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } }, { "description": "The security privileges that the job uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the job, this property is omitted.", "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsAuthorization", "namespace": "ml._types" } } }, { "name": "create_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsDestination", "namespace": "ml._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max_num_threads", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "model_memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L306-L323" }, { "kind": "interface", "name": { "name": "DataframeEvaluationClassification", "namespace": "ml._types" }, "properties": [ { "description": "The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true).", "name": "actual_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field in the index which contains the predicted value, in other words the results of the classification analysis.", "name": "predicted_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field of the index which is an array of documents of the form { \"class_name\": XXX, \"class_probability\": YYY }. This field must be defined as nested in the mappings.", "name": "top_classes_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the metrics that are used for the evaluation.", "name": "metrics", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationClassificationMetrics", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L35-L44" }, { "kind": "interface", "inherits": { "type": { "name": "DataframeEvaluationMetrics", "namespace": "ml._types" } }, "name": { "name": "DataframeEvaluationClassificationMetrics", "namespace": "ml._types" }, "properties": [ { "description": "Accuracy of predictions (per-class and overall).", "name": "accuracy", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Multiclass confusion matrix.", "name": "multiclass_confusion_matrix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L73-L78" }, { "kind": "interface", "name": { "name": "DataframeEvaluationClassificationMetricsAucRoc", "namespace": "ml._types" }, "properties": [ { "description": "Name of the only class that is treated as positive during AUC ROC calculation. Other classes are treated as negative (\"one-vs-all\" strategy). All the evaluated documents must have class_name in the list of their top classes.", "name": "class_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Whether or not the curve should be returned in addition to the score. Default value is false.", "name": "include_curve", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L85-L90" }, { "kind": "interface", "name": { "name": "DataframeEvaluationContainer", "namespace": "ml._types" }, "properties": [ { "description": "Classification evaluation evaluates the results of a classification analysis which outputs a prediction that identifies to which of the classes each document belongs.", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationClassification", "namespace": "ml._types" } } }, { "description": "Outlier detection evaluates the results of an outlier detection analysis which outputs the probability that each document is an outlier.", "name": "outlier_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationOutlierDetection", "namespace": "ml._types" } } }, { "description": "Regression evaluation evaluates the results of a regression analysis which outputs a prediction of values.", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationRegression", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L25-L33", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "DataframeEvaluationMetrics", "namespace": "ml._types" }, "properties": [ { "description": "The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. It is calculated for a specific class (provided as \"class_name\") treated as positive.", "name": "auc_roc", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationClassificationMetricsAucRoc", "namespace": "ml._types" } } }, { "description": "Precision of predictions (per-class and average).", "name": "precision", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Recall of predictions (per-class and average).", "name": "recall", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L64-L71" }, { "kind": "interface", "name": { "name": "DataframeEvaluationOutlierDetection", "namespace": "ml._types" }, "properties": [ { "description": "The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true).", "name": "actual_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis.", "name": "predicted_probability_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the metrics that are used for the evaluation.", "name": "metrics", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationOutlierDetectionMetrics", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L46-L53" }, { "kind": "interface", "inherits": { "type": { "name": "DataframeEvaluationMetrics", "namespace": "ml._types" } }, "name": { "name": "DataframeEvaluationOutlierDetectionMetrics", "namespace": "ml._types" }, "properties": [ { "description": "Accuracy of predictions (per-class and overall).", "name": "confusion_matrix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L80-L83" }, { "kind": "interface", "name": { "name": "DataframeEvaluationRegression", "namespace": "ml._types" }, "properties": [ { "description": "The field of the index which contains the ground truth. The data type of this field must be numerical.", "name": "actual_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field in the index that contains the predicted value, in other words the results of the regression analysis.", "name": "predicted_field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the metrics that are used for the evaluation. For more information on mse, msle, and huber, consult the Jupyter notebook on regression loss functions.", "name": "metrics", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationRegressionMetrics", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L55-L62" }, { "kind": "interface", "name": { "name": "DataframeEvaluationRegressionMetrics", "namespace": "ml._types" }, "properties": [ { "description": "Average squared difference between the predicted values and the actual (ground truth) value. For more information, read this wiki article.", "docUrl": "https://en.wikipedia.org/wiki/Mean_squared_error", "name": "mse", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Average squared difference between the logarithm of the predicted values and the logarithm of the actual (ground truth) value.", "name": "msle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationRegressionMetricsMsle", "namespace": "ml._types" } } }, { "description": "Pseudo Huber loss function.", "docUrl": "https://en.wikipedia.org/wiki/Huber_loss#Pseudo-Huber_loss_function", "name": "huber", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationRegressionMetricsHuber", "namespace": "ml._types" } } }, { "description": "Proportion of the variance in the dependent variable that is predictable from the independent variables.", "docUrl": "https://en.wikipedia.org/wiki/Coefficient_of_determination", "name": "r_squared", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L92-L110" }, { "kind": "interface", "name": { "name": "DataframeEvaluationRegressionMetricsHuber", "namespace": "ml._types" }, "properties": [ { "description": "Approximates 1/2 (prediction - actual)2 for values much less than delta and approximates a straight line with slope delta for values much larger than delta. Defaults to 1. Delta needs to be greater than 0.", "name": "delta", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L117-L120" }, { "kind": "interface", "name": { "name": "DataframeEvaluationRegressionMetricsMsle", "namespace": "ml._types" }, "properties": [ { "description": "Defines the transition point at which you switch from minimizing quadratic error to minimizing quadratic log error. Defaults to 1.", "name": "offset", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeEvaluation.ts#L112-L115" }, { "kind": "enum", "members": [ { "name": "started" }, { "name": "stopped" }, { "name": "starting" }, { "name": "stopping" }, { "name": "failed" } ], "name": { "name": "DataframeState", "namespace": "ml._types" }, "specLocation": "ml/_types/Dataframe.ts#L20-L26" }, { "kind": "interface", "name": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" }, "properties": [ { "description": "The window of time that is searched for late data. This window of time ends with the latest finalized bucket.\nIt defaults to null, which causes an appropriate `check_window` to be calculated when the real-time datafeed runs.\nIn particular, the default `check_window` span calculation is based on the maximum of `2h` or `8 * bucket_span`.", "name": "check_window", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies whether the datafeed periodically checks for delayed data.", "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Datafeed.ts#L122-L133" }, { "kind": "enum", "members": [ { "description": "The trained model is started on at least one node.", "name": "started" }, { "description": "Trained model deployment is starting but it is not yet deployed on any nodes.", "name": "starting" }, { "description": "Trained model deployment has started on all valid nodes.", "name": "fully_allocated" } ], "name": { "name": "DeploymentAllocationState", "namespace": "ml._types" }, "specLocation": "ml/_types/TrainedModel.ts#L331-L344" }, { "kind": "enum", "members": [ { "description": "The deployment is usable; at least one node has the model allocated.", "name": "started" }, { "description": "The deployment has recently started but is not yet usable; the model is not allocated on any nodes.", "name": "starting" }, { "description": "The deployment is preparing to stop and deallocate the model from the relevant nodes.", "name": "stopping" }, { "description": "The deployment is on a failed state and must be re-deployed.", "name": "failed" } ], "name": { "name": "DeploymentAssignmentState", "namespace": "ml._types" }, "specLocation": "ml/_types/TrainedModel.ts#L346-L363" }, { "kind": "interface", "name": { "name": "DetectionRule", "namespace": "ml._types" }, "properties": [ { "description": "The set of actions to be triggered when the rule applies. If more than one action is specified the effects of all actions are combined.", "name": "actions", "required": false, "serverDefault": [ "skip_result" ], "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RuleAction", "namespace": "ml._types" } } } }, { "description": "An array of numeric conditions when the rule applies. A rule must either have a non-empty scope or at least one condition. Multiple conditions are combined together with a logical AND.", "name": "conditions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RuleCondition", "namespace": "ml._types" } } } }, { "description": "A scope of series where the rule applies. A rule must either have a non-empty scope or at least one condition. By default, the scope includes all series. Scoping is allowed for any of the fields that are also specified in `by_field_name`, `over_field_name`, or `partition_field_name`.", "name": "scope", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FilterRef", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/Rule.ts#L25-L39" }, { "kind": "interface", "name": { "name": "Detector", "namespace": "ml._types" }, "properties": [ { "description": "The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split.", "name": "by_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Custom rules enable you to customize the way detectors operate. For example, a rule may dictate conditions under which results should be skipped. Kibana refers to custom rules as job rules.", "name": "custom_rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DetectionRule", "namespace": "ml._types" } } } }, { "description": "A description of the detector.", "name": "detector_description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A unique identifier for the detector. This identifier is based on the order of the detectors in the `analysis_config`, starting at zero. If you specify a value for this property, it is ignored.", "name": "detector_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If set, frequent entities are excluded from influencing the anomaly results. Entities can be considered frequent over time or frequent in a population. If you are working with both over and by fields, you can set `exclude_frequent` to `all` for both fields, or to `by` or `over` for those specific fields.", "name": "exclude_frequent", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExcludeFrequent", "namespace": "ml._types" } } }, { "description": "The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The `field_name` cannot contain double quotes or backslashes.", "name": "field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The analysis function that is used. For example, `count`, `rare`, `mean`, `min`, `max`, or `sum`.", "name": "function", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits.", "name": "over_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field.", "name": "partition_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Defines whether a new series is used as the null series when there is no value for the by or partition fields.", "name": "use_null", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Detector.ts#L25-L67" }, { "kind": "interface", "attachedBehaviors": [ "OverloadOf" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "Detector", "namespace": "ml._types" } } ], "type": { "name": "OverloadOf", "namespace": "_spec_utils" } } ], "name": { "name": "DetectorRead", "namespace": "ml._types" }, "properties": [ { "description": "The field used to split the data.\nIn particular, this property is used for analyzing the splits with respect to their own history.\nIt is used for finding unusual values in the context of the split.", "name": "by_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "An array of custom rule objects, which enable you to customize the way detectors operate.\nFor example, a rule may dictate to the detector conditions under which results should be skipped.\nKibana refers to custom rules as job rules.", "name": "custom_rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DetectionRule", "namespace": "ml._types" } } } }, { "description": "A description of the detector.", "name": "detector_description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A unique identifier for the detector.\nThis identifier is based on the order of the detectors in the `analysis_config`, starting at zero.", "name": "detector_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Contains one of the following values: `all`, `none`, `by`, or `over`.\nIf set, frequent entities are excluded from influencing the anomaly results.\nEntities can be considered frequent over time or frequent in a population.\nIf you are working with both over and by fields, then you can set `exclude_frequent` to all for both fields, or to `by` or `over` for those specific fields.", "name": "exclude_frequent", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExcludeFrequent", "namespace": "ml._types" } } }, { "description": "The field that the detector uses in the function.\nIf you use an event rate function such as `count` or `rare`, do not specify this field.", "name": "field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The analysis function that is used.\nFor example, `count`, `rare`, `mean`, `min`, `max`, and `sum`.", "docId": "ml-functions", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/anomaly-detection/ml-functions", "name": "function", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The field used to split the data.\nIn particular, this property is used for analyzing the splits with respect to the history of all splits.\nIt is used for finding unusual values in the population of all splits.", "name": "over_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The field used to segment the analysis.\nWhen you use this property, you have completely independent baselines for each value of this field.", "name": "partition_field_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Defines whether a new series is used as the null series when there is no value for the by or partition fields.", "name": "use_null", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Detector.ts#L69-L125" }, { "kind": "interface", "name": { "name": "DetectorUpdate", "namespace": "ml._types" }, "properties": [ { "description": "A unique identifier for the detector.\nThis identifier is based on the order of the detectors in the `analysis_config`, starting at zero.", "name": "detector_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A description of the detector.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An array of custom rule objects, which enable you to customize the way detectors operate.\nFor example, a rule may dictate to the detector conditions under which results should be skipped.\nKibana refers to custom rules as job rules.", "name": "custom_rules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DetectionRule", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/Detector.ts#L127-L143" }, { "kind": "type_alias", "name": { "name": "DiscoveryNode", "namespace": "ml._types" }, "specLocation": "ml/_types/DiscoveryNode.ts#L25-L25", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "DiscoveryNodeContent", "namespace": "ml._types" } } } }, { "kind": "interface", "description": "Alternative representation of DiscoveryNode used in ml.get_job_stats and ml.get_datafeed_stats", "name": { "name": "DiscoveryNodeCompact", "namespace": "ml._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "ephemeral_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/_types/DiscoveryNode.ts#L39-L48" }, { "kind": "interface", "name": { "name": "DiscoveryNodeContent", "namespace": "ml._types" }, "properties": [ { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "ephemeral_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "external_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "min_index_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_index_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/DiscoveryNode.ts#L27-L37" }, { "kind": "enum", "members": [ { "name": "all" }, { "name": "none" }, { "name": "by" }, { "name": "over" } ], "name": { "name": "ExcludeFrequent", "namespace": "ml._types" }, "specLocation": "ml/_types/Detector.ts#L145-L150" }, { "kind": "interface", "name": { "name": "ExponentialAverageCalculationContext", "namespace": "ml._types" }, "properties": [ { "name": "incremental_metric_value_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "latest_timestamp", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "previous_exponential_average_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L204-L208" }, { "kind": "type_alias", "name": { "name": "FeatureExtractor", "namespace": "ml._types" }, "specLocation": "ml/_types/inference.ts#L93-L96", "type": { "kind": "instance_of", "type": { "name": "QueryFeatureExtractor", "namespace": "ml._types" } } }, { "kind": "interface", "description": "Fill mask inference options", "name": { "name": "FillMaskInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The string/token which will be removed from incoming documents and replaced with the inference prediction(s).\nIn a response, this field contains the mask token for the specified model/tokenizer. Each model and tokenizer\nhas a predefined mask token which cannot be changed. Thus, it is recommended not to set this value in requests.\nHowever, if this field is present in a request, its value must match the predefined value for that model/tokenizer,\notherwise the request will fail.", "name": "mask_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "vocabulary", "required": true, "type": { "kind": "instance_of", "type": { "name": "Vocabulary", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L284-L299" }, { "kind": "interface", "name": { "name": "FillMaskInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L430-L437" }, { "kind": "interface", "name": { "name": "Filter", "namespace": "ml._types" }, "properties": [ { "description": "A description of the filter.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A string that uniquely identifies a filter.", "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "An array of strings which is the filter item list.", "name": "items", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/_types/Filter.ts#L22-L29" }, { "kind": "interface", "name": { "name": "FilterRef", "namespace": "ml._types" }, "properties": [ { "description": "The identifier for the filter.", "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If set to `include`, the rule applies for values in the filter. If set to `exclude`, the rule applies for values not in the filter.", "name": "filter_type", "required": false, "serverDefault": "include", "type": { "kind": "instance_of", "type": { "name": "FilterType", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/Filter.ts#L31-L41" }, { "kind": "enum", "members": [ { "name": "include" }, { "name": "exclude" } ], "name": { "name": "FilterType", "namespace": "ml._types" }, "specLocation": "ml/_types/Filter.ts#L43-L46" }, { "kind": "interface", "name": { "name": "GeoResults", "namespace": "ml._types" }, "properties": [ { "description": "The actual value for the bucket formatted as a `geo_point`.", "name": "actual_point", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The typical value for the bucket formatted as a `geo_point`.", "name": "typical_point", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Anomaly.ts#L146-L155" }, { "kind": "interface", "name": { "name": "Hyperparameter", "namespace": "ml._types" }, "properties": [ { "description": "A positive number showing how much the parameter influences the variation of the loss function. For hyperparameters with values that are not specified by the user but tuned during hyperparameter optimization.", "docId": "ml-regression-loss", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/dfa-regression-lossfunction", "name": "absolute_importance", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Name of the hyperparameter.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "A number between 0 and 1 showing the proportion of influence on the variation of the loss function among all tuned hyperparameters. For hyperparameters with values that are not specified by the user but tuned during hyperparameter optimization.", "name": "relative_importance", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Indicates if the hyperparameter is specified by the user (true) or optimized (false).", "name": "supplied", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The value of the hyperparameter, either optimized or specified by the user.", "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L274-L288" }, { "kind": "interface", "name": { "name": "Hyperparameters", "namespace": "ml._types" }, "properties": [ { "description": "Advanced configuration option.\nMachine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly.\nThis parameter affects loss calculations by acting as a multiplier of the tree depth.\nHigher alpha values result in shallower trees and faster training times.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be greater than or equal to zero.", "name": "alpha", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nRegularization parameter to prevent overfitting on the training data set.\nMultiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest.\nA high lambda value causes training to favor small leaf weights.\nThis behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable.\nA small lambda value results in large individual trees and slower training.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be a nonnegative value.", "name": "lambda", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nRegularization parameter to prevent overfitting on the training data set.\nMultiplies a linear penalty associated with the size of individual trees in the forest.\nA high gamma value causes training to prefer small trees.\nA small gamma value results in larger individual trees and slower training.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be a nonnegative value.", "name": "gamma", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nThe shrinkage applied to the weights.\nSmaller values result in larger forests which have a better generalization error.\nHowever, larger forests cause slower training.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be a value between `0.001` and `1`.", "name": "eta", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nSpecifies the rate at which `eta` increases for each new tree that is added to the forest.\nFor example, a rate of 1.05 increases `eta` by 5% for each extra tree.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be between `0.5` and `2`.", "name": "eta_growth_rate_per_tree", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nDefines the fraction of features that will be used when selecting a random bag for each candidate split.\nBy default, this value is calculated during hyperparameter optimization.", "name": "feature_bag_fraction", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nControls the fraction of data that is used to compute the derivatives of the loss function for tree training.\nA small value results in the use of a small fraction of the data.\nIf this value is set to be less than 1, accuracy typically improves.\nHowever, too small a value may result in poor convergence for the ensemble and so require more trees.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be greater than zero and less than or equal to 1.", "name": "downsample_factor", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If the algorithm fails to determine a non-trivial tree (more than a single leaf), this parameter determines how many of such consecutive failures are tolerated.\nOnce the number of attempts exceeds the threshold, the forest training stops.", "name": "max_attempts_to_add_tree", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nA multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure.\nThe maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter.\nBy default, this value is calculated during hyperparameter optimization.", "name": "max_optimization_rounds_per_hyperparameter", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nDefines the maximum number of decision trees in the forest.\nThe maximum value is 2000.\nBy default, this value is calculated during hyperparameter optimization.", "name": "max_trees", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of folds for the cross-validation procedure.", "name": "num_folds", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Determines the maximum number of splits for every feature that can occur in a decision tree when the tree is trained.", "name": "num_splits_per_feature", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nMachine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly.\nThis soft limit combines with the `soft_tree_depth_tolerance` to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be greater than or equal to 0.", "name": "soft_tree_depth_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nThis option controls how quickly the regularized loss increases when the tree depth exceeds `soft_tree_depth_limit`.\nBy default, this value is calculated during hyperparameter optimization.\nIt must be greater than or equal to 0.01.", "name": "soft_tree_depth_tolerance", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L420-L526" }, { "kind": "enum", "members": [ { "description": "Includes the model definition.", "name": "definition" }, { "description": "Includes the baseline for feature importance values.", "name": "feature_importance_baseline" }, { "description": "Includes the information about hyperparameters used to train the model.\nThis information consists of the value, the absolute and relative\nimportance of the hyperparameter as well as an indicator of whether it was\nspecified by the user or tuned during hyperparameter optimization.", "name": "hyperparameters" }, { "description": "Includes the total feature importance for the training data set. The\nbaseline and total feature importance values are returned in the metadata\nfield in the response body.", "name": "total_feature_importance" }, { "description": "Includes the model definition status.", "name": "definition_status" } ], "name": { "name": "Include", "namespace": "ml._types" }, "specLocation": "ml/_types/Include.ts#L20-L47" }, { "kind": "interface", "description": "Inference configuration provided when storing the model config", "name": { "name": "InferenceConfigCreateContainer", "namespace": "ml._types" }, "properties": [ { "description": "Regression configuration for inference.", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "RegressionInferenceOptions", "namespace": "ml._types" } } }, { "description": "Classification configuration for inference.", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClassificationInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "Text classification configuration for inference.", "name": "text_classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextClassificationInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "Zeroshot classification configuration for inference.", "name": "zero_shot_classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "ZeroShotClassificationInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "Fill mask configuration for inference.", "name": "fill_mask", "required": false, "type": { "kind": "instance_of", "type": { "name": "FillMaskInferenceOptions", "namespace": "ml._types" } } }, { "name": "learning_to_rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "LearningToRankConfig", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "Named entity recognition configuration for inference.", "name": "ner", "required": false, "type": { "kind": "instance_of", "type": { "name": "NerInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "Pass through configuration for inference.", "name": "pass_through", "required": false, "type": { "kind": "instance_of", "type": { "name": "PassThroughInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "Text embedding configuration for inference.", "name": "text_embedding", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextEmbeddingInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.8.0" } }, "description": "Text expansion configuration for inference.", "name": "text_expansion", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextExpansionInferenceOptions", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.3.0" } }, "description": "Question answering configuration for inference.", "name": "question_answering", "required": false, "type": { "kind": "instance_of", "type": { "name": "QuestionAnsweringInferenceOptions", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L26-L85", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "InferenceConfigUpdateContainer", "namespace": "ml._types" }, "properties": [ { "description": "Regression configuration for inference.", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "RegressionInferenceOptions", "namespace": "ml._types" } } }, { "description": "Classification configuration for inference.", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClassificationInferenceOptions", "namespace": "ml._types" } } }, { "description": "Text classification configuration for inference.", "name": "text_classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextClassificationInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Zeroshot classification configuration for inference.", "name": "zero_shot_classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "ZeroShotClassificationInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Fill mask configuration for inference.", "name": "fill_mask", "required": false, "type": { "kind": "instance_of", "type": { "name": "FillMaskInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Named entity recognition configuration for inference.", "name": "ner", "required": false, "type": { "kind": "instance_of", "type": { "name": "NerInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Pass through configuration for inference.", "name": "pass_through", "required": false, "type": { "kind": "instance_of", "type": { "name": "PassThroughInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Text embedding configuration for inference.", "name": "text_embedding", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextEmbeddingInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Text expansion configuration for inference.", "name": "text_expansion", "required": false, "type": { "kind": "instance_of", "type": { "name": "TextExpansionInferenceUpdateOptions", "namespace": "ml._types" } } }, { "description": "Question answering configuration for inference", "name": "question_answering", "required": false, "type": { "kind": "instance_of", "type": { "name": "QuestionAnsweringInferenceUpdateOptions", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L315-L337", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "InferenceResponseResult", "namespace": "ml._types" }, "properties": [ { "description": "If the model is trained for named entity recognition (NER) tasks, the response contains the recognized entities.", "name": "entities", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelEntities", "namespace": "ml._types" } } } }, { "description": "Indicates whether the input text was truncated to meet the model's maximum sequence length limit. This property\nis present only when it is true.", "name": "is_truncated", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If the model is trained for a text classification or zero shot classification task, the response is the\npredicted class.\nFor named entity recognition (NER) tasks, it contains the annotated text output.\nFor fill mask tasks, it contains the top prediction for replacing the mask token.\nFor text embedding tasks, it contains the raw numerical text embedding values.\nFor regression models, its a numerical value\nFor classification models, it may be an integer, double, boolean or string depending on prediction type", "name": "predicted_value", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "PredictedValue", "namespace": "ml._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PredictedValue", "namespace": "ml._types" } } } ] } }, { "description": "For fill mask tasks, the response contains the input text sequence with the mask token replaced by the predicted\nvalue.\nAdditionally", "name": "predicted_value_sequence", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies a probability for the predicted value.", "name": "prediction_probability", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Specifies a confidence score for the predicted value.", "name": "prediction_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "For fill mask, text classification, and zero shot classification tasks, the response contains a list of top\nclass entries.", "name": "top_classes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TopClassEntry", "namespace": "ml._types" } } } }, { "description": "If the request failed, the response contains the reason for the failure.", "name": "warning", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The feature importance for the inference results. Relevant only for classification or regression models", "name": "feature_importance", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelInferenceFeatureImportance", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/inference.ts#L478-L526" }, { "kind": "interface", "name": { "name": "Influence", "namespace": "ml._types" }, "properties": [ { "name": "influencer_field_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "influencer_field_values", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/_types/Anomaly.ts#L141-L144" }, { "kind": "interface", "name": { "name": "Influencer", "namespace": "ml._types" }, "properties": [ { "description": "The length of the bucket in seconds. This value matches the bucket span that is specified in the job.", "name": "bucket_span", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "A normalized score between 0-100, which is based on the probability of the influencer in this bucket aggregated\nacross detectors. Unlike `initial_influencer_score`, this value is updated by a re-normalization process as new\ndata is analyzed.", "name": "influencer_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The field name of the influencer.", "name": "influencer_field_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "The entity that influenced, contributed to, or was to blame for the anomaly.", "name": "influencer_field_value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A normalized score between 0-100, which is based on the probability of the influencer aggregated across detectors.\nThis is the initial value that was calculated at the time the bucket was processed.", "name": "initial_influencer_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If true, this is an interim result. In other words, the results are calculated based on partial input data.", "name": "is_interim", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The probability that the influencer has this behavior, in the range 0 to 1. This value can be held to a high\nprecision of over 300 decimal places, so the `influencer_score` is provided as a human-readable and friendly\ninterpretation of this value.", "name": "probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Internal. This value is always set to `influencer`.", "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The start time of the bucket for which these results were calculated.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Additional influencer properties are added, depending on the fields being analyzed. For example, if it’s\nanalyzing `user_name` as an influencer, a field `user_name` is added to the result document. This\ninformation enables you to filter the anomaly results more easily.", "name": "foo", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Influencer.ts#L24-L76" }, { "kind": "interface", "name": { "name": "Job", "namespace": "ml._types" }, "properties": [ { "description": "Advanced configuration option.\nSpecifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node.", "name": "allow_lazy_open", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analysis configuration, which specifies how to analyze the data.\nAfter you create a job, you cannot change the analysis configuration; all the properties are informational.", "name": "analysis_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfig", "namespace": "ml._types" } } }, { "description": "Limits can be applied for the resources required to hold the mathematical models in memory.\nThese limits are approximate and can be set per job.\nThey do not control the memory used by other processes, for example the Elasticsearch Java processes.", "name": "analysis_limits", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisLimits", "namespace": "ml._types" } } }, { "description": "Advanced configuration option.\nThe time between each periodic persistence of the model.\nThe default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time.\nThe smallest allowed value is 1 hour.", "name": "background_persist_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "blocked", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobBlocked", "namespace": "ml._types" } } }, { "name": "create_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nContains custom metadata about the job.", "name": "custom_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "CustomSettings", "namespace": "ml._types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old model snapshots for this job.\nIt specifies a period of time (in days) after which only the first snapshot per day is retained.\nThis period is relative to the timestamp of the most recent snapshot for this job.\nValid values range from 0 to `model_snapshot_retention_days`.", "name": "daily_model_snapshot_retention_after_days", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The data description defines the format of the input data when you send data to the job by using the post data API.\nNote that when configuring a datafeed, these properties are automatically set.\nWhen data is received via the post data API, it is not stored in Elasticsearch.\nOnly the results for anomaly detection are retained.", "name": "data_description", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataDescription", "namespace": "ml._types" } } }, { "description": "The datafeed, which retrieves data from Elasticsearch for analysis by the job.\nYou can associate only one datafeed with each anomaly detection job.", "name": "datafeed_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "Datafeed", "namespace": "ml._types" } } }, { "description": "Indicates that the process of deleting the job is in progress but not yet completed.\nIt is only reported when `true`.", "name": "deleting", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If the job closed or failed, this is the time the job finished, otherwise it is `null`.\nThis property is informational; you cannot change its value.", "name": "finished_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "A list of job groups.\nA job can belong to no groups or many.", "name": "groups", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Identifier for the anomaly detection job.\nThis identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.\nIt must start and end with alphanumeric characters.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Reserved for future use, currently set to `anomaly_detector`.", "name": "job_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The machine learning configuration version number at which the the job was created.", "name": "job_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "This advanced configuration option stores model information along with the results.\nIt provides a more detailed view into anomaly detection.\nModel plot provides a simplified and indicative view of the model and its bounds.", "name": "model_plot_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "name": "model_snapshot_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old model snapshots for this job.\nIt specifies the maximum period of time (in days) that snapshots are retained.\nThis period is relative to the timestamp of the most recent snapshot for this job.\nBy default, snapshots ten days older than the newest snapshot are deleted.", "name": "model_snapshot_retention_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nThe period over which adjustments to the score are applied, as new data is seen.\nThe default value is the longer of 30 days or 100 `bucket_spans`.", "name": "renormalization_window_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A text string that affects the name of the machine learning results index.\nThe default value is `shared`, which generates an index named `.ml-anomalies-shared`.", "name": "results_index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nThe period of time (in days) that results are retained.\nAge is calculated relative to the timestamp of the latest bucket result.\nIf this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch.\nThe default value is null, which means all results are retained.\nAnnotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results.\nAnnotations added by users are retained forever.", "name": "results_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L61-L180" }, { "kind": "interface", "name": { "name": "JobBlocked", "namespace": "ml._types" }, "properties": [ { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobBlockedReason", "namespace": "ml._types" } } }, { "name": "task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L392-L395" }, { "kind": "enum", "members": [ { "name": "delete" }, { "name": "reset" }, { "name": "revert" } ], "name": { "name": "JobBlockedReason", "namespace": "ml._types" }, "specLocation": "ml/_types/Job.ts#L397-L401" }, { "kind": "interface", "name": { "name": "JobConfig", "namespace": "ml._types" }, "properties": [ { "description": "Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node.", "docId": "ml-put-job", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-job", "name": "allow_lazy_open", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analysis configuration, which specifies how to analyze the data.\nAfter you create a job, you cannot change the analysis configuration; all the properties are informational.", "name": "analysis_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfig", "namespace": "ml._types" } } }, { "description": "Limits can be applied for the resources required to hold the mathematical models in memory.\nThese limits are approximate and can be set per job.\nThey do not control the memory used by other processes, for example the Elasticsearch Java processes.", "name": "analysis_limits", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisLimits", "namespace": "ml._types" } } }, { "description": "Advanced configuration option.\nThe time between each periodic persistence of the model.\nThe default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time.\nThe smallest allowed value is 1 hour.", "name": "background_persist_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nContains custom metadata about the job.", "name": "custom_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "CustomSettings", "namespace": "ml._types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old model snapshots for this job.\nIt specifies a period of time (in days) after which only the first snapshot per day is retained.\nThis period is relative to the timestamp of the most recent snapshot for this job.", "name": "daily_model_snapshot_retention_after_days", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The data description defines the format of the input data when you send data to the job by using the post data API.\nNote that when configure a datafeed, these properties are automatically set.", "name": "data_description", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataDescription", "namespace": "ml._types" } } }, { "description": "The datafeed, which retrieves data from Elasticsearch for analysis by the job.\nYou can associate only one datafeed with each anomaly detection job.", "name": "datafeed_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedConfig", "namespace": "ml._types" } } }, { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of job groups. A job can belong to no groups or many.", "name": "groups", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Identifier for the anomaly detection job.\nThis identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.\nIt must start and end with alphanumeric characters.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Reserved for future use, currently set to `anomaly_detector`.", "name": "job_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "This advanced configuration option stores model information along with the results.\nIt provides a more detailed view into anomaly detection.\nModel plot provides a simplified and indicative view of the model and its bounds.", "name": "model_plot_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old model snapshots for this job.\nIt specifies the maximum period of time (in days) that snapshots are retained.\nThis period is relative to the timestamp of the most recent snapshot for this job.\nThe default value is `10`, which means snapshots ten days older than the newest snapshot are deleted.", "name": "model_snapshot_retention_days", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nThe period over which adjustments to the score are applied, as new data is seen.\nThe default value is the longer of 30 days or 100 `bucket_spans`.", "name": "renormalization_window_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A text string that affects the name of the machine learning results index.\nThe default value is `shared`, which generates an index named `.ml-anomalies-shared`.", "name": "results_index_name", "required": false, "serverDefault": "shared", "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Advanced configuration option.\nThe period of time (in days) that results are retained.\nAge is calculated relative to the timestamp of the latest bucket result.\nIf this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch.\nThe default value is null, which means all results are retained.\nAnnotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results.\nAnnotations added by users are retained forever.", "name": "results_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L182-L283" }, { "kind": "interface", "name": { "name": "JobForecastStatistics", "namespace": "ml._types" }, "properties": [ { "name": "memory_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "processing_time_ms", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "records", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "status", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "forecasted_jobs", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L343-L350" }, { "kind": "enum", "members": [ { "description": "The job close action is in progress and has not yet completed. A closing job cannot accept further data.", "name": "closing" }, { "description": "The job finished successfully with its model state persisted. The job must be opened before it can accept further data.", "name": "closed" }, { "description": "The job is available to receive and process data.", "name": "opened" }, { "description": "The job did not finish successfully due to an error.\nThis situation can occur due to invalid input data, a fatal error occurring during the analysis, or an external interaction such as the process being killed by the Linux out of memory (OOM) killer.\nIf the job had irrevocably failed, it must be force closed and then deleted.\nIf the datafeed can be corrected, the job can be closed and then re-opened.", "name": "failed" }, { "description": "The job open action is in progress and has not yet completed.", "name": "opening" } ], "name": { "name": "JobState", "namespace": "ml._types" }, "specLocation": "ml/_types/Job.ts#L36-L52" }, { "kind": "interface", "name": { "name": "JobStatistics", "namespace": "ml._types" }, "properties": [ { "name": "avg", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L54-L59" }, { "kind": "interface", "name": { "name": "JobStats", "namespace": "ml._types" }, "properties": [ { "description": "For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.", "name": "assignment_explanation", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An object that describes the quantity of input to the job and any related error counts.\nThe `data_count` values are cumulative for the lifetime of a job.\nIf a model snapshot is reverted or old results are deleted, the job counts are not reset.", "name": "data_counts", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataCounts", "namespace": "ml._types" } } }, { "description": "An object that provides statistical information about forecasts belonging to this job.\nSome statistics are omitted if no forecasts have been made.", "name": "forecasts_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobForecastStatistics", "namespace": "ml._types" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An object that provides information about the size and contents of the model.", "name": "model_size_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "ModelSizeStats", "namespace": "ml._types" } } }, { "availability": { "stack": {} }, "description": "Contains properties for the node that runs the job.\nThis information is available only for open jobs.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "DiscoveryNodeCompact", "namespace": "ml._types" } } }, { "description": "For open jobs only, the elapsed time for which the job has been open.", "name": "open_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The status of the anomaly detection job, which can be one of the following values: `closed`, `closing`, `failed`, `opened`, `opening`.", "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobState", "namespace": "ml._types" } } }, { "description": "An object that provides statistical information about timing aspect of this job.", "name": "timing_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobTimingStats", "namespace": "ml._types" } } }, { "description": "Indicates that the process of deleting the job is in progress but not yet completed. It is only reported when `true`.", "name": "deleting", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Job.ts#L284-L330" }, { "kind": "interface", "name": { "name": "JobTimingStats", "namespace": "ml._types" }, "properties": [ { "name": "average_bucket_processing_time_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "exponential_average_bucket_processing_time_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "exponential_average_bucket_processing_time_per_hour_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "total_bucket_processing_time_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "maximum_bucket_processing_time_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "minimum_bucket_processing_time_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "ml/_types/Job.ts#L332-L341" }, { "kind": "interface", "name": { "name": "LearningToRankConfig", "namespace": "ml._types" }, "properties": [ { "name": "default_params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "feature_extractors", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FeatureExtractor", "namespace": "ml._types" } } } } }, { "name": "num_top_feature_importance_values", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L87-L91" }, { "kind": "enum", "members": [ { "name": "ok" }, { "name": "soft_limit" }, { "name": "hard_limit" } ], "name": { "name": "MemoryStatus", "namespace": "ml._types" }, "specLocation": "ml/_types/Model.ts#L89-L93" }, { "kind": "interface", "name": { "name": "ModelPackageConfig", "namespace": "ml._types" }, "properties": [ { "name": "create_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "inference_config", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "minimum_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "packaged_model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "platform_architecture", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "prefix_strings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelPrefixStrings", "namespace": "ml._types" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "sha256", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "vocabulary_file", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L257-L272" }, { "kind": "interface", "name": { "name": "ModelPlotConfig", "namespace": "ml._types" }, "properties": [ { "availability": { "serverless": {}, "stack": { "since": "7.9.0" } }, "description": "If true, enables calculation and storage of the model change annotations for each entity that is being analyzed.", "name": "annotations_enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, enables calculation and storage of the model bounds for each entity that is being analyzed.", "name": "enabled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.9.0" } }, "description": "Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer.", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "ml/_types/ModelPlot.ts#L23-L42" }, { "kind": "interface", "name": { "name": "ModelSizeStats", "namespace": "ml._types" }, "properties": [ { "name": "bucket_allocation_failures_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "log_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "memory_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "MemoryStatus", "namespace": "ml._types" } } }, { "name": "model_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "model_bytes_exceeded", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "model_bytes_memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "output_memory_allocator_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "peak_model_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "assignment_memory_basis", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_by_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_over_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_partition_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "categorization_status", "required": true, "type": { "kind": "instance_of", "type": { "name": "CategorizationStatus", "namespace": "ml._types" } } }, { "name": "categorized_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "dead_category_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failed_category_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "frequent_category_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "rare_category_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_category_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "ml/_types/Model.ts#L59-L82" }, { "kind": "interface", "name": { "name": "ModelSnapshot", "namespace": "ml._types" }, "properties": [ { "description": "An optional description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A numerical character string that uniquely identifies the job that the snapshot was created for.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The timestamp of the latest processed record.", "name": "latest_record_time_stamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The timestamp of the latest bucket result.", "name": "latest_result_time_stamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum version required to be able to restore the model snapshot.", "name": "min_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "description": "Summary information describing the model.", "name": "model_size_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelSizeStats", "namespace": "ml._types" } } }, { "description": "If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days. However, this snapshot will be deleted when the job is deleted. The default value is false.", "name": "retain", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For internal use only.", "name": "snapshot_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A numerical character string that uniquely identifies the model snapshot.", "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The creation timestamp for the snapshot.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "ml/_types/Model.ts#L25-L46" }, { "kind": "interface", "name": { "name": "ModelSnapshotUpgrade", "namespace": "ml._types" }, "properties": [ { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnapshotUpgradeState", "namespace": "ml._types" } } }, { "availability": { "stack": {} }, "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "DiscoveryNode", "namespace": "ml._types" } } }, { "name": "assignment_explanation", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Model.ts#L48-L57" }, { "kind": "interface", "description": "Named entity recognition options", "name": { "name": "NerInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The token classification labels. Must be IOB formatted tags", "name": "classification_labels", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "vocabulary", "required": false, "type": { "kind": "instance_of", "type": { "name": "Vocabulary", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L273-L282" }, { "kind": "interface", "name": { "name": "NerInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L423-L428" }, { "kind": "interface", "description": "BERT and MPNet tokenization configuration options", "inherits": { "type": { "name": "CommonTokenizationConfig", "namespace": "ml._types" } }, "name": { "name": "NlpBertTokenizationConfig", "namespace": "ml._types" }, "properties": [], "specLocation": "ml/_types/inference.ts#L188-L189" }, { "kind": "interface", "description": "RoBERTa tokenization configuration options", "inherits": { "type": { "name": "CommonTokenizationConfig", "namespace": "ml._types" } }, "name": { "name": "NlpRobertaTokenizationConfig", "namespace": "ml._types" }, "properties": [ { "description": "Should the tokenizer prefix input with a space character", "name": "add_prefix_space", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L191-L198" }, { "kind": "interface", "name": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "Truncate options to apply", "name": "truncate", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationTruncate", "namespace": "ml._types" } } }, { "description": "Span options to apply", "name": "span", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L375-L380" }, { "kind": "interface", "name": { "name": "OutlierDetectionParameters", "namespace": "ml._types" }, "properties": [ { "description": "Specifies whether the feature influence calculation is enabled.", "name": "compute_feature_influence", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The minimum outlier score that a document needs to have in order to calculate its feature influence score.\nValue range: 0-1", "name": "feature_influence_threshold", "required": false, "serverDefault": 0.1, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The method that outlier detection uses.\nAvailable methods are `lof`, `ldof`, `distance_kth_nn`, `distance_knn`, and `ensemble`.\nThe default value is ensemble, which means that outlier detection uses an ensemble of different methods and normalises and combines their individual outlier scores to obtain the overall outlier score.", "name": "method", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Defines the value for how many nearest neighbors each method of outlier detection uses to calculate its outlier score.\nWhen the value is not set, different values are used for different ensemble members.\nThis default behavior helps improve the diversity in the ensemble; only override it if you are confident that the value you choose is appropriate for the data set.", "name": "n_neighbors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The proportion of the data set that is assumed to be outlying prior to outlier detection.\nFor example, 0.05 means it is assumed that 5% of values are real outliers and 95% are inliers.", "name": "outlier_fraction", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If `true`, the following operation is performed on the columns before computing outlier scores: (x_i - mean(x_i)) / sd(x_i).", "name": "standardization_enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L528-L562" }, { "kind": "interface", "name": { "name": "OverallBucket", "namespace": "ml._types" }, "properties": [ { "description": "The length of the bucket in seconds. Matches the job with the longest bucket_span value.", "name": "bucket_span", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "If true, this is an interim result. In other words, the results are calculated based on partial input data.", "name": "is_interim", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "An array of objects that contain the max_anomaly_score per job_id.", "name": "jobs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "OverallBucketJob", "namespace": "ml._types" } } } }, { "description": "The top_n average of the maximum bucket anomaly_score per job.", "name": "overall_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Internal. This is always set to overall_bucket.", "name": "result_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The start time of the bucket for which these results were calculated.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The start time of the bucket for which these results were calculated.", "name": "timestamp_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/_types/Bucket.ts#L129-L144" }, { "kind": "interface", "name": { "name": "OverallBucketJob", "namespace": "ml._types" }, "properties": [ { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max_anomaly_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/Bucket.ts#L145-L148" }, { "kind": "interface", "name": { "name": "Page", "namespace": "ml._types" }, "properties": [ { "description": "Skips the specified number of items.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of items to obtain.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/Page.ts#L22-L33" }, { "kind": "interface", "description": "Pass through configuration options", "name": { "name": "PassThroughInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "vocabulary", "required": false, "type": { "kind": "instance_of", "type": { "name": "Vocabulary", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L239-L246" }, { "kind": "interface", "name": { "name": "PassThroughInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L404-L409" }, { "kind": "interface", "name": { "name": "PerPartitionCategorization", "namespace": "ml._types" }, "properties": [ { "description": "To enable this setting, you must also set the `partition_field_name` property to the same value in every detector that uses the keyword `mlcategory`. Otherwise, job creation fails.", "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "This setting can be set to true only if per-partition categorization is enabled. If true, both categorization and subsequent anomaly detection stops for partitions where the categorization status changes to warn. This setting makes it viable to have a job where it is expected that categorization works well for some partitions but not others; you do not pay the cost of bad categorization forever in the partitions where it works badly.", "name": "stop_on_warn", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Analysis.ts#L150-L159" }, { "kind": "type_alias", "name": { "name": "PredictedValue", "namespace": "ml._types" }, "specLocation": "ml/_types/inference.ts#L476-L476", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ScalarValue", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ScalarValue", "namespace": "_types" } } } ] } }, { "kind": "interface", "name": { "name": "QueryFeatureExtractor", "namespace": "ml._types" }, "properties": [ { "name": "default_score", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "ml/_types/inference.ts#L98-L105", "variantName": "query_extractor" }, { "kind": "interface", "description": "Question answering inference options", "name": { "name": "QuestionAnsweringInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum answer length to consider", "name": "max_answer_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L301-L311" }, { "kind": "interface", "name": { "name": "QuestionAnsweringInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "The question to answer given the inference context", "name": "question", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum answer length to consider for extraction", "name": "max_answer_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L439-L450" }, { "kind": "interface", "name": { "name": "RegressionInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the maximum number of feature importance values per document.", "docId": "ml-feature-importance", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/data-frame-analytics/ml-feature-importance", "name": "num_top_feature_importance_values", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L107-L116" }, { "kind": "enum", "members": [ { "description": "The allocation attempt failed.", "name": "failed" }, { "description": "The trained model is allocated and ready to accept inference requests.", "name": "started" }, { "description": "The trained model is attempting to allocate on this node; inference requests are not yet accepted.", "name": "starting" }, { "description": "The trained model is fully deallocated from this node.", "name": "stopped" }, { "description": "The trained model is being deallocated from this node.", "name": "stopping" } ], "name": { "name": "RoutingState", "namespace": "ml._types" }, "specLocation": "ml/_types/TrainedModel.ts#L408-L429" }, { "kind": "enum", "members": [ { "description": "The result will not be created. Unless you also specify `skip_model_update`, the model will be updated as usual with the corresponding series value.", "name": "skip_result" }, { "description": "The value for that series will not be used to update the model. Unless you also specify `skip_result`, the results will be created as usual. This action is suitable when certain values are expected to be consistently anomalous and they affect the model in a way that negatively impacts the rest of the results.", "name": "skip_model_update" } ], "name": { "name": "RuleAction", "namespace": "ml._types" }, "specLocation": "ml/_types/Rule.ts#L41-L50" }, { "kind": "interface", "name": { "name": "RuleCondition", "namespace": "ml._types" }, "properties": [ { "description": "Specifies the result property to which the condition applies. If your detector uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can only specify conditions that apply to time.", "name": "applies_to", "required": true, "type": { "kind": "instance_of", "type": { "name": "AppliesTo", "namespace": "ml._types" } } }, { "description": "Specifies the condition operator. The available options are greater than, greater than or equals, less than, and less than or equals.", "name": "operator", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConditionOperator", "namespace": "ml._types" } } }, { "description": "The value that is compared against the `applies_to` field using the operator.", "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/Rule.ts#L52-L65" }, { "kind": "interface", "name": { "name": "RunningStateSearchInterval", "namespace": "ml._types" }, "properties": [ { "description": "The end time.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The end time as an epoch in milliseconds.", "name": "end_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The start time.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The start time as an epoch in milliseconds.", "name": "start_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "ml/_types/Datafeed.ts#L226-L243" }, { "kind": "enum", "members": [ { "name": "loading_old_state" }, { "name": "saving_new_state" }, { "name": "stopped" }, { "name": "failed" } ], "name": { "name": "SnapshotUpgradeState", "namespace": "ml._types" }, "specLocation": "ml/_types/Model.ts#L95-L100" }, { "kind": "interface", "description": "Text classification configuration options", "name": { "name": "TextClassificationInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labels", "name": "classification_labels", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "vocabulary", "required": false, "type": { "kind": "instance_of", "type": { "name": "Vocabulary", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L202-L214" }, { "kind": "interface", "name": { "name": "TextClassificationInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "Specifies the number of top class predictions to return. Defaults to 0.", "name": "num_top_classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labels", "name": "classification_labels", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/_types/inference.ts#L382-L391" }, { "kind": "interface", "description": "Text embedding inference options", "name": { "name": "TextEmbeddingInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The number of dimensions in the embedding output", "name": "embedding_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The tokenization options", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "vocabulary", "required": true, "type": { "kind": "instance_of", "type": { "name": "Vocabulary", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L252-L262" }, { "kind": "interface", "name": { "name": "TextEmbeddingInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L411-L415" }, { "kind": "interface", "description": "Text expansion inference options", "name": { "name": "TextExpansionInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "vocabulary", "required": true, "type": { "kind": "instance_of", "type": { "name": "Vocabulary", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L264-L271" }, { "kind": "interface", "name": { "name": "TextExpansionInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/inference.ts#L417-L421" }, { "kind": "interface", "name": { "name": "TimingStats", "namespace": "ml._types" }, "properties": [ { "description": "Runtime of the analysis in milliseconds.", "name": "elapsed_time", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Runtime of the latest iteration of the analysis in milliseconds.", "name": "iteration_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L564-L569" }, { "kind": "interface", "description": "Tokenization options stored in inference configuration", "name": { "name": "TokenizationConfigContainer", "namespace": "ml._types" }, "properties": [ { "description": "Indicates BERT tokenization and its options", "name": "bert", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpBertTokenizationConfig", "namespace": "ml._types" } } }, { "description": "Indicates BERT Japanese tokenization and its options", "name": "bert_ja", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpBertTokenizationConfig", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.1.0" } }, "description": "Indicates MPNET tokenization and its options", "name": "mpnet", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpBertTokenizationConfig", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.2.0" } }, "description": "Indicates RoBERTa tokenization and its options", "name": "roberta", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpRobertaTokenizationConfig", "namespace": "ml._types" } } }, { "name": "xlm_roberta", "required": false, "type": { "kind": "instance_of", "type": { "name": "XlmRobertaTokenizationConfig", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/inference.ts#L135-L158", "variants": { "kind": "container" } }, { "kind": "enum", "members": [ { "name": "first" }, { "name": "second" }, { "name": "none" } ], "name": { "name": "TokenizationTruncate", "namespace": "ml._types" }, "specLocation": "ml/_types/inference.ts#L369-L373" }, { "kind": "interface", "name": { "name": "TopClassEntry", "namespace": "ml._types" }, "properties": [ { "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "class_probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "class_score", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L459-L463" }, { "kind": "interface", "name": { "name": "TotalFeatureImportance", "namespace": "ml._types" }, "properties": [ { "description": "The feature for which this importance was calculated.", "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "A collection of feature importance statistics related to the training data set for this particular feature.", "name": "importance", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TotalFeatureImportanceStatistics", "namespace": "ml._types" } } } }, { "description": "If the trained model is a classification model, feature importance statistics are gathered per target class value.", "name": "classes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TotalFeatureImportanceClass", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/TrainedModel.ts#L290-L297" }, { "kind": "interface", "name": { "name": "TotalFeatureImportanceClass", "namespace": "ml._types" }, "properties": [ { "description": "The target class value. Could be a string, boolean, or number.", "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "A collection of feature importance statistics related to the training data set for this particular feature.", "name": "importance", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TotalFeatureImportanceStatistics", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/TrainedModel.ts#L299-L304" }, { "kind": "interface", "name": { "name": "TotalFeatureImportanceStatistics", "namespace": "ml._types" }, "properties": [ { "description": "The average magnitude of this feature across all the training data. This value is the average of the absolute values of the importance for this feature.", "name": "mean_magnitude", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The maximum importance value across all the training data for this feature.", "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum importance value across all the training data for this feature.", "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L306-L313" }, { "kind": "interface", "name": { "name": "TrainedModelAssignment", "namespace": "ml._types" }, "properties": [ { "name": "adaptive_allocations", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "AdaptiveAllocationsSettings", "namespace": "ml._types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The overall assignment state.", "name": "assignment_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "DeploymentAssignmentState", "namespace": "ml._types" } } }, { "name": "max_assigned_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The allocation state for each node.", "name": "routing_table", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TrainedModelAssignmentRoutingTable", "namespace": "ml._types" } } } }, { "description": "The timestamp when the deployment started.", "name": "start_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "task_parameters", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelAssignmentTaskParameters", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L472-L489" }, { "kind": "interface", "name": { "name": "TrainedModelAssignmentRoutingStateAndReason", "namespace": "ml._types" }, "properties": [ { "description": "The reason for the current state. It is usually populated only when the\n`routing_state` is `failed`.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The current routing state.", "name": "routing_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "RoutingState", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L431-L441" }, { "kind": "interface", "name": { "name": "TrainedModelAssignmentRoutingTable", "namespace": "ml._types" }, "properties": [ { "description": "The reason for the current state. It is usually populated only when the\n`routing_state` is `failed`.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The current routing state.", "name": "routing_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "RoutingState", "namespace": "ml._types" } } }, { "description": "Current number of allocations.", "name": "current_allocations", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Target number of allocations.", "name": "target_allocations", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L443-L461" }, { "kind": "interface", "name": { "name": "TrainedModelAssignmentTaskParameters", "namespace": "ml._types" }, "properties": [ { "description": "The size of the trained model in bytes.", "name": "model_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The unique identifier for the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The unique identifier for the trained model deployment.", "name": "deployment_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.4.0" } }, "description": "The size of the trained model cache.", "name": "cache_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The total number of allocations this model is assigned across ML nodes.", "name": "number_of_allocations", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "priority", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainingPriority", "namespace": "ml._types" } } }, { "name": "per_deployment_memory_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "per_allocation_memory_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Number of inference requests are allowed in the queue at a time.", "name": "queue_capacity", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Number of threads per allocation.", "name": "threads_per_allocation", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L370-L406" }, { "kind": "interface", "name": { "name": "TrainedModelConfig", "namespace": "ml._types" }, "properties": [ { "description": "Identifier for the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The model type", "name": "model_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelType", "namespace": "ml._types" } } }, { "description": "A comma delimited string of tags. A trained model can have many tags, or none.", "name": "tags", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The Elasticsearch version number in which the trained model was created.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "compressed_definition", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Information on the creator of the trained model.", "name": "created_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The time when the trained model was created.", "name": "create_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Any field map described in the inference configuration takes precedence.", "name": "default_field_map", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The free-text description of the trained model.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The estimated heap usage in bytes to keep the trained model in memory.", "name": "estimated_heap_memory_usage_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The estimated number of operations to use the trained model.", "name": "estimated_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "True if the full model definition is present.", "name": "fully_defined", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required.", "name": "inference_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfigCreateContainer", "namespace": "ml._types" } } }, { "description": "The input field names for the model definition.", "name": "input", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelConfigInput", "namespace": "ml._types" } } }, { "description": "The license level of the trained model.", "name": "license_level", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An object containing metadata about the trained model. For example, models created by data frame analytics contain analysis_config and input objects.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelConfigMetadata", "namespace": "ml._types" } } }, { "name": "model_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "model_package", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPackageConfig", "namespace": "ml._types" } } }, { "name": "location", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelLocation", "namespace": "ml._types" } } }, { "name": "platform_architecture", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "prefix_strings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelPrefixStrings", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L203-L240" }, { "kind": "interface", "name": { "name": "TrainedModelConfigInput", "namespace": "ml._types" }, "properties": [ { "description": "An array of input field names for the model.", "name": "field_names", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } } ], "specLocation": "ml/_types/TrainedModel.ts#L242-L245" }, { "kind": "interface", "name": { "name": "TrainedModelConfigMetadata", "namespace": "ml._types" }, "properties": [ { "name": "model_aliases", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "An object that contains the baseline for feature importance values. For regression analysis, it is a single value. For classification analysis, there is a value for each class.", "name": "feature_importance_baseline", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "List of the available hyperparameters optimized during the fine_parameter_tuning phase as well as specified by the user.", "name": "hyperparameters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Hyperparameter", "namespace": "ml._types" } } } }, { "description": "An array of the total feature importance for each feature used from the training data set. This array of objects is returned if data frame analytics trained the model and the request includes total_feature_importance in the include request parameter.", "name": "total_feature_importance", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TotalFeatureImportance", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/TrainedModel.ts#L247-L255" }, { "kind": "interface", "name": { "name": "TrainedModelDeploymentAllocationStatus", "namespace": "ml._types" }, "properties": [ { "description": "The current number of nodes where the model is allocated.", "name": "allocation_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The detailed allocation state related to the nodes.", "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "DeploymentAllocationState", "namespace": "ml._types" } } }, { "description": "The desired number of nodes for model allocation.", "name": "target_allocation_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L463-L470" }, { "kind": "interface", "name": { "name": "TrainedModelDeploymentNodesStats", "namespace": "ml._types" }, "properties": [ { "description": "The average time for each inference call to complete on this node.", "name": "average_inference_time_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "average_inference_time_ms_last_minute", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The average time for each inference call to complete on this node, excluding cache", "name": "average_inference_time_ms_excluding_cache_hits", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The number of errors when evaluating the trained model.", "name": "error_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The total number of inference calls made against this node for this model.", "name": "inference_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "inference_cache_hit_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "inference_cache_hit_count_last_minute", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The epoch time stamp of the last inference call for the model on this node.", "name": "last_access", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "availability": { "stack": {} }, "description": "Information pertaining to the node.", "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "DiscoveryNode", "namespace": "ml._types" } } }, { "description": "The number of allocations assigned to this node.", "name": "number_of_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of inference requests queued to be processed.", "name": "number_of_pending_requests", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "peak_throughput_per_minute", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of inference requests that were not processed because the queue was full.", "name": "rejected_execution_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The current routing state and reason for the current routing state for this allocation.", "name": "routing_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelAssignmentRoutingStateAndReason", "namespace": "ml._types" } } }, { "description": "The epoch timestamp when the allocation started.", "name": "start_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The number of threads used by each allocation during inference.", "name": "threads_per_allocation", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "throughput_last_minute", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of inference requests that timed out before being processed.", "name": "timeout_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L156-L201" }, { "kind": "interface", "name": { "name": "TrainedModelDeploymentStats", "namespace": "ml._types" }, "properties": [ { "name": "adaptive_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "AdaptiveAllocationsSettings", "namespace": "ml._types" } } }, { "description": "The detailed allocation status for the deployment.", "name": "allocation_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelDeploymentAllocationStatus", "namespace": "ml._types" } } }, { "name": "cache_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The unique identifier for the trained model deployment.", "name": "deployment_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The sum of `error_count` for all nodes in the deployment.", "name": "error_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The sum of `inference_count` for all nodes in the deployment.", "name": "inference_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The unique identifier for the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The deployment stats for each node that currently has the model allocated.\nIn serverless, stats are reported for a single unnamed virtual node.", "name": "nodes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelDeploymentNodesStats", "namespace": "ml._types" } } } }, { "description": "The number of allocations requested.", "name": "number_of_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "peak_throughput_per_minute", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "priority", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainingPriority", "namespace": "ml._types" } } }, { "description": "The number of inference requests that can be queued before new requests are rejected.", "name": "queue_capacity", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The sum of `rejected_execution_count` for all nodes in the deployment.\nIndividual nodes reject an inference request if the inference queue is full.\nThe queue size is controlled by the `queue_capacity` setting in the start\ntrained model deployment API.", "name": "rejected_execution_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The reason for the current deployment state. Usually only populated when\nthe model is not deployed to a node.", "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The epoch timestamp when the deployment started.", "name": "start_time", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The overall state of the deployment.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "DeploymentAssignmentState", "namespace": "ml._types" } } }, { "description": "The number of threads used be each allocation during inference.", "name": "threads_per_allocation", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The sum of `timeout_count` for all nodes in the deployment.", "name": "timeout_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L62-L107" }, { "kind": "interface", "name": { "name": "TrainedModelEntities", "namespace": "ml._types" }, "properties": [ { "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "class_probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "entity", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "start_pos", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "end_pos", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L452-L458" }, { "kind": "interface", "name": { "name": "TrainedModelInferenceClassImportance", "namespace": "ml._types" }, "properties": [ { "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "importance", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L465-L468" }, { "kind": "interface", "name": { "name": "TrainedModelInferenceFeatureImportance", "namespace": "ml._types" }, "properties": [ { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "importance", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "classes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelInferenceClassImportance", "namespace": "ml._types" } } } } ], "specLocation": "ml/_types/inference.ts#L470-L474" }, { "kind": "interface", "name": { "name": "TrainedModelInferenceStats", "namespace": "ml._types" }, "properties": [ { "description": "The number of times the model was loaded for inference and was not retrieved from the cache.\nIf this number is close to the `inference_count`, the cache is not being appropriately used.\nThis can be solved by increasing the cache size or its time-to-live (TTL).\nRefer to general machine learning settings for the appropriate settings.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "cache_miss_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of failures when using the model for inference.", "name": "failure_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The total number of times the model has been called for inference.\nThis is across all inference contexts, including all pipelines.", "name": "inference_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of inference calls where all the training features for the model were missing.", "name": "missing_all_fields_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The time when the statistics were last updated.", "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L127-L147" }, { "kind": "interface", "name": { "name": "TrainedModelLocation", "namespace": "ml._types" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelLocationIndex", "namespace": "ml._types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L491-L493" }, { "kind": "interface", "name": { "name": "TrainedModelLocationIndex", "namespace": "ml._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L495-L497" }, { "kind": "interface", "name": { "name": "TrainedModelPrefixStrings", "namespace": "ml._types" }, "properties": [ { "description": "String prepended to input at ingest", "name": "ingest", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "String prepended to input at search", "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L499-L508" }, { "kind": "interface", "name": { "name": "TrainedModelSizeStats", "namespace": "ml._types" }, "properties": [ { "description": "The size of the model in bytes.", "name": "model_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The amount of memory required to load the model in bytes.", "name": "required_native_memory_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L149-L154" }, { "kind": "interface", "name": { "name": "TrainedModelStats", "namespace": "ml._types" }, "properties": [ { "description": "A collection of deployment stats, which is present when the models are deployed.", "name": "deployment_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelDeploymentStats", "namespace": "ml._types" } } }, { "description": "A collection of inference stats fields.", "name": "inference_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelInferenceStats", "namespace": "ml._types" } } }, { "description": "A collection of ingest stats for the model across all nodes.\nThe values are summations of the individual node statistics.\nThe format matches the ingest section in the nodes stats API.", "docId": "cluster-nodes-stats", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-stats", "name": "ingest", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A collection of model size stats.", "name": "model_size_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelSizeStats", "namespace": "ml._types" } } }, { "description": "The number of ingest pipelines that currently refer to the model.", "name": "pipeline_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/_types/TrainedModel.ts#L42-L60" }, { "kind": "enum", "members": [ { "description": "The model definition is an ensemble model of decision trees.", "name": "tree_ensemble" }, { "description": "A special type reserved for language identification models.", "name": "lang_ident" }, { "description": "The stored definition is a PyTorch (specifically a TorchScript) model.\nCurrently only NLP models are supported.", "name": "pytorch" } ], "name": { "name": "TrainedModelType", "namespace": "ml._types" }, "specLocation": "ml/_types/TrainedModel.ts#L315-L329" }, { "kind": "enum", "members": [ { "name": "normal" }, { "name": "low" } ], "name": { "name": "TrainingPriority", "namespace": "ml._types" }, "specLocation": "ml/_types/TrainedModel.ts#L365-L368" }, { "kind": "interface", "name": { "name": "TransformAuthorization", "namespace": "ml._types" }, "properties": [ { "description": "If an API key was used for the most recent update to the transform, its name and identifier are listed in the response.", "name": "api_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "ApiKeyAuthorization", "namespace": "ml._types" } } }, { "description": "If a user ID was used for the most recent update to the transform, its roles at the time of the update are listed in the response.", "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "If a service account was used for the most recent update to the transform, the account name is listed in the response.", "name": "service_account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/Authorization.ts#L59-L71" }, { "kind": "interface", "name": { "name": "ValidationLoss", "namespace": "ml._types" }, "properties": [ { "description": "Validation loss values for every added decision tree during the forest growing procedure.", "name": "fold_values", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The type of the loss metric. For example, binomial_logistic.", "name": "loss_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/_types/DataframeAnalytics.ts#L571-L576" }, { "kind": "interface", "name": { "name": "Vocabulary", "namespace": "ml._types" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "ml/_types/inference.ts#L248-L250" }, { "kind": "interface", "inherits": { "type": { "name": "CommonTokenizationConfig", "namespace": "ml._types" } }, "name": { "name": "XlmRobertaTokenizationConfig", "namespace": "ml._types" }, "properties": [], "specLocation": "ml/_types/inference.ts#L200-L200" }, { "kind": "interface", "description": "Zero shot classification configuration options", "name": { "name": "ZeroShotClassificationInferenceOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TokenizationConfigContainer", "namespace": "ml._types" } } }, { "description": "Hypothesis template used when tokenizing labels for prediction", "name": "hypothesis_template", "required": false, "serverDefault": "\"This example is {}.\"", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The zero shot classification labels indicating entailment, neutral, and contradiction\nMust contain exactly and only entailment, neutral, and contradiction", "name": "classification_labels", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates if more than one true label exists.", "name": "multi_label", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The labels to predict.", "name": "labels", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/_types/inference.ts#L216-L237" }, { "kind": "interface", "name": { "name": "ZeroShotClassificationInferenceUpdateOptions", "namespace": "ml._types" }, "properties": [ { "description": "The tokenization options to update when inferring", "name": "tokenization", "required": false, "type": { "kind": "instance_of", "type": { "name": "NlpTokenizationUpdateOptions", "namespace": "ml._types" } } }, { "description": "The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.", "name": "results_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Update the configured multi label option. Indicates if more than one true label exists. Defaults to the configured value.", "name": "multi_label", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The labels to predict.", "name": "labels", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/_types/inference.ts#L393-L402" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear trained model deployment cache.\n\nCache will be cleared on all nodes where the trained model is assigned.\nA trained model deployment may have an inference cache enabled.\nAs requests are handled by each allocated node, their responses may be cached on that individual node.\nCalling this API clears the caches without restarting the deployment.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.clear_trained_model_deployment_cache" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "cleared", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "MlClearTrainedModelDeploymentCacheResponseExample1": { "description": "A successful response when clearing the inference cache.", "value": "{\n \"cleared\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.clear_trained_model_deployment_cache" }, "specLocation": "ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `allow_no_match` query parameter.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the descriptiion for the `force` query parameter.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `timeout` query parameter.", "name": "timeout", "required": false, "serverDefault": "30m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Close anomaly detection jobs.\n\nA job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.\nWhen you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.\nIf you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.\nWhen a datafeed that has a specified end date stops, it automatically closes its associated job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.close_job" }, "path": [ { "description": "Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using `_all` or by specifying `*` as the job identifier.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches.\nIf `false`, the request returns a 404 status code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Use to close a failed job, or to forcefully close a job which has not responded to its initial close request; the request returns without performing the associated actions such as flushing buffers and persisting the model snapshots.\nIf you want the job to be in a consistent state after the close job API returns, do not set to `true`. This parameter should be used only in situations where the job has already failed or where you are not interested in results the job might have recently produced or might produce in the future.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls the time to wait until a job has closed.", "name": "timeout", "required": false, "serverDefault": "30m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/close_job/MlCloseJobRequest.ts#L24-L85" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "closed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "MlCloseJobResponseExample1": { "description": "A successful response when closing anomaly detection jobs.", "value": "{\n \"closed\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.close_job" }, "specLocation": "ml/close_job/MlCloseJobResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a calendar.\n\nRemove all scheduled events from a calendar, then delete it.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_calendar" }, "path": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/delete_calendar/MlDeleteCalendarRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteCalendarResponseExample1": { "description": "A successful response when deleting a calendar.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_calendar" }, "specLocation": "ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete events from a calendar.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_calendar_event" }, "path": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Identifier for the scheduled event.\nYou can obtain this identifier by using the get calendar events API.", "name": "event_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/delete_calendar_event/MlDeleteCalendarEventRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteCalendarEventResponseExample1": { "description": "A successful response when deleting a calendar event.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_calendar_event" }, "specLocation": "ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete anomaly jobs from a calendar.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_calendar_job" }, "path": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a\ncomma-separated list of jobs or groups.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/delete_calendar_job/MlDeleteCalendarJobRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A description of the calendar.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of anomaly detection job identifiers or group names.", "name": "job_ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ] }, "examples": { "MlDeleteCalendarJobResponseExample1": { "description": "A successful response when deleting an anomaly detection job from a calendar.", "value": "{\n \"calendar_id\": \"planned-outages\",\n \"job_ids\": []\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_calendar_job" }, "specLocation": "ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a data frame analytics job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The time to wait for the job to be deleted.", "name": "timeout", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteDataFrameAnalyticsResponseExample1": { "description": "A successful response when deleting a data frame analytics job.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_data_frame_analytics" }, "specLocation": "ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a datafeed.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_datafeed" }, "path": [ { "description": "A numerical character string that uniquely identifies the datafeed. This\nidentifier can contain lowercase alphanumeric characters (a-z and 0-9),\nhyphens, and underscores. It must start and end with alphanumeric\ncharacters.", "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Use to forcefully delete a started datafeed; this method is quicker than\nstopping and deleting the datafeed.", "name": "force", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/delete_datafeed/MlDeleteDatafeedRequest.ts#L23-L55" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteDatafeedResponseExample1": { "description": "A successful response when deleting a datafeed.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_datafeed" }, "specLocation": "ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The desired requests per second for the deletion processes. The default\nbehavior is no throttling.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "How long can the underlying delete processes run until they are canceled.", "name": "timeout", "required": false, "serverDefault": "8h", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Delete expired ML data.\n\nDelete all job results, model snapshots and forecast data that have exceeded\ntheir retention days period. Machine learning state documents that are not\nassociated with any job are also deleted.\nYou can limit the request to a single or set of anomaly detection jobs by\nusing a job identifier, a group name, a comma-separated list of jobs, or a\nwildcard expression. You can delete expired data for all anomaly detection\njobs by using `_all`, by specifying `*` as the ``, or by omitting the\n``.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_expired_data" }, "path": [ { "description": "Identifier for an anomaly detection job. It can be a job identifier, a\ngroup name, or a wildcard expression.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The desired requests per second for the deletion processes. The default\nbehavior is no throttling.", "name": "requests_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "How long can the underlying delete processes run until they are canceled.", "name": "timeout", "required": false, "serverDefault": "8h", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "deleted", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "MlDeleteExpiredDataResponseExample1": { "description": "A successful response when deleting expired and unused anomaly detection data.", "value": "{\n \"deleted\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_expired_data" }, "specLocation": "ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a filter.\n\nIf an anomaly detection job references the filter, you cannot delete the\nfilter. You must update or delete the job before you can delete the filter.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_filter" }, "path": [ { "description": "A string that uniquely identifies a filter.", "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/delete_filter/MlDeleteFilterRequest.ts#L23-L48" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteFilterResponseExample1": { "description": "A successful response when deleting a filter.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_filter" }, "specLocation": "ml/delete_filter/MlDeleteFilterResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete forecasts from a job.\n\nBy default, forecasts are retained for 14 days. You can specify a\ndifferent retention period with the `expires_in` parameter in the forecast\njobs API. The delete forecast API enables you to delete one or more\nforecasts before they expire.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_forecast" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A comma-separated list of forecast identifiers. If you do not specify\nthis optional parameter or if you specify `_all` or `*` the API deletes\nall forecasts from the job.", "name": "forecast_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies whether an error occurs when there are no forecasts. In\nparticular, if this parameter is set to `false` and there are no\nforecasts associated with the job, attempts to delete all forecasts\nreturn an error.", "name": "allow_no_forecasts", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies the period of time to wait for the completion of the delete\noperation. When this period of time elapses, the API fails and returns an\nerror.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/delete_forecast/MlDeleteForecastRequest.ts#L24-L78" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteForecastResponseExample1": { "description": "A successful response when deleting a forecast from an anomaly detection job.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_forecast" }, "specLocation": "ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an anomaly detection job.\n\nAll job configuration, model state and results are deleted.\nIt is not currently possible to delete multiple jobs using wildcards or a\ncomma separated list. If you delete a job that has a datafeed, the request\nfirst tries to delete the datafeed. This behavior is equivalent to calling\nthe delete datafeed API with the same timeout and force parameters as the\ndelete job request.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_job" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Use to forcefully delete an opened job; this method is quicker than\nclosing and deleting the job.", "name": "force", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether annotations that have been added by the\nuser should be deleted along with any auto-generated annotations when the job is\nreset.", "name": "delete_user_annotations", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether the request should return immediately or wait until the\njob deletion completes.", "name": "wait_for_completion", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/delete_job/MlDeleteJobRequest.ts#L23-L72" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteJobResponseExample1": { "description": "A successful response when deleting an anomaly detection job.", "summary": "Delete job", "value": "{\n \"acknowledged\": true\n}" }, "MlDeleteJobResponseExample2": { "description": "A successful response when deleting an anomaly detection job asynchronously. When the `wait_for_completion` query parameter is set to `false`, the response contains an identifier for the job deletion task.\n", "summary": "Delete job asynchronously", "value": "{\n \"task\": \"oTUltX4IQMOUUVeiohTt8A:39\"\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_job" }, "specLocation": "ml/delete_job/MlDeleteJobResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a model snapshot.\n\nYou cannot delete the active model snapshot. To delete that snapshot, first\nrevert to a different one. To identify the active model snapshot, refer to\nthe `model_snapshot_id` in the results from the get jobs API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_model_snapshot" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Identifier for the model snapshot.", "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/delete_model_snapshot/MlDeleteModelSnapshotRequest.ts#L23-L53" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteModelSnapshotResponseExample1": { "description": "A successful response when deleting an existing model snapshot.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_model_snapshot" }, "specLocation": "ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an unreferenced trained model.\n\nThe request deletes a trained inference model that is not referenced by an ingest pipeline.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_trained_model" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.", "name": "force", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteTrainedModelResponseExample1": { "description": "A successful response when deleting an existing trained inference model.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_trained_model" }, "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a trained model alias.\n\nThis API deletes an existing model alias that refers to a trained model. If\nthe model alias is missing or refers to a model other than the one identified\nby the `model_id`, this API returns an error.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.delete_trained_model_alias" }, "path": [ { "description": "The model alias to delete.", "name": "model_alias", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The trained model ID to which the model alias refers.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/delete_trained_model_alias/MlDeleteTrainedModelAliasRequest.ts#L23-L53" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "MlDeleteTrainedModelAliasResponseExample1": { "description": "A successful response when deleting a trained model alias.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "ml.delete_trained_model_alias" }, "specLocation": "ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "For a list of the properties that you can specify in the\n`analysis_config` component of the body of this API.", "name": "analysis_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfig", "namespace": "ml._types" } } }, { "description": "Estimates of the highest cardinality in a single bucket that is observed\nfor influencer fields over the time period that the job analyzes data.\nTo produce a good answer, values must be provided for all influencer\nfields. Providing values for fields that are not listed as `influencers`\nhas no effect on the estimation.", "name": "max_bucket_cardinality", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "description": "Estimates of the cardinality that is observed for fields over the whole\ntime period that the job analyzes data. To produce a good answer, values\nmust be provided for fields referenced in the `by_field_name`,\n`over_field_name` and `partition_field_name` of any detectors. Providing\nvalues for other fields has no effect on the estimation. It can be\nomitted from the request if no detectors have a `by_field_name`,\n`over_field_name` or `partition_field_name`.", "name": "overall_cardinality", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } } ] }, "description": "Estimate job model memory usage.\n\nMake an estimation of the memory usage for an anomaly detection job model.\nThe estimate is based on analysis configuration details for the job and cardinality\nestimates for the fields it references.", "examples": { "MlEstimateModelMemoryRequestExample1": { "description": "Run `POST _ml/anomaly_detectors/_estimate_model_memory` to estimate the model memory limit based on the analysis configuration details provided in the request body.", "value": "{\n \"analysis_config\": {\n \"bucket_span\": \"5m\",\n \"detectors\": [\n {\n \"function\": \"sum\",\n \"field_name\": \"bytes\",\n \"by_field_name\": \"status\",\n \"partition_field_name\": \"app\"\n }\n ],\n \"influencers\": [\n \"source_ip\",\n \"dest_ip\"\n ]\n },\n \"overall_cardinality\": {\n \"status\": 10,\n \"app\": 50\n },\n \"max_bucket_cardinality\": {\n \"source_ip\": 300,\n \"dest_ip\": 30\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.estimate_model_memory" }, "path": [], "query": [], "specLocation": "ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "model_memory_estimate", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "MlEstimateModelMemoryResponseExample1": { "description": "A successful response from `POST _ml/anomaly_detectors/_estimate_model_memory`.", "value": "{\n \"model_memory_estimate\": \"21mb\"\n}" } }, "name": { "name": "Response", "namespace": "ml.estimate_model_memory" }, "specLocation": "ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24" }, { "kind": "interface", "name": { "name": "ConfusionMatrixItem", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "actual_class", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "actual_class_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "predicted_classes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ConfusionMatrixPrediction", "namespace": "ml.evaluate_data_frame" } } } }, { "name": "other_predicted_class_doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L125-L130" }, { "kind": "interface", "name": { "name": "ConfusionMatrixPrediction", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "predicted_class", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L132-L135" }, { "kind": "interface", "name": { "name": "ConfusionMatrixThreshold", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "codegenName": "true_positive", "description": "True Positive", "name": "tp", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "codegenName": "false_positive", "description": "False Positive", "name": "fp", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "codegenName": "true_negative", "description": "True Negative", "name": "tn", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "codegenName": "false_negative", "description": "False Negative", "name": "fn", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L137-L158" }, { "kind": "interface", "name": { "name": "DataframeClassificationSummary", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "description": "The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve.\nIt is calculated for a specific class (provided as \"class_name\") treated as positive.", "name": "auc_roc", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationSummaryAucRoc", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Accuracy of predictions (per-class and overall).", "name": "accuracy", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeClassificationSummaryAccuracy", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Multiclass confusion matrix.", "name": "multiclass_confusion_matrix", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeClassificationSummaryMulticlassConfusionMatrix", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Precision of predictions (per-class and average).", "name": "precision", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeClassificationSummaryPrecision", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Recall of predictions (per-class and average).", "name": "recall", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeClassificationSummaryRecall", "namespace": "ml.evaluate_data_frame" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L44-L66" }, { "kind": "interface", "name": { "name": "DataframeClassificationSummaryAccuracy", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "classes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeEvaluationClass", "namespace": "ml.evaluate_data_frame" } } } }, { "name": "overall_accuracy", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L111-L114" }, { "kind": "interface", "name": { "name": "DataframeClassificationSummaryMulticlassConfusionMatrix", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "confusion_matrix", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ConfusionMatrixItem", "namespace": "ml.evaluate_data_frame" } } } }, { "name": "other_actual_class_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L120-L123" }, { "kind": "interface", "name": { "name": "DataframeClassificationSummaryPrecision", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "classes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeEvaluationClass", "namespace": "ml.evaluate_data_frame" } } } }, { "name": "avg_precision", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L101-L104" }, { "kind": "interface", "name": { "name": "DataframeClassificationSummaryRecall", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "classes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeEvaluationClass", "namespace": "ml.evaluate_data_frame" } } } }, { "name": "avg_recall", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L106-L109" }, { "kind": "interface", "inherits": { "type": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" } }, "name": { "name": "DataframeEvaluationClass", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "class_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L116-L118" }, { "kind": "interface", "inherits": { "type": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" } }, "name": { "name": "DataframeEvaluationSummaryAucRoc", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "curve", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeEvaluationSummaryAucRocCurveItem", "namespace": "ml.evaluate_data_frame" } } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L91-L93" }, { "kind": "interface", "name": { "name": "DataframeEvaluationSummaryAucRocCurveItem", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "tpr", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "fpr", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "threshold", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L95-L99" }, { "kind": "interface", "name": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L87-L89" }, { "kind": "interface", "name": { "name": "DataframeOutlierDetectionSummary", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "description": "The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve.", "name": "auc_roc", "required": false, "serverDefault": "{\"include_curve\": false}", "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationSummaryAucRoc", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Set the different thresholds of the outlier score at where the metric is calculated.", "name": "precision", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "description": "Set the different thresholds of the outlier score at where the metric is calculated.", "name": "recall", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "description": "Set the different thresholds of the outlier score at where the metrics (`tp` - true positive, `fp` - false positive, `tn` - true negative, `fn` - false negative) are calculated.", "name": "confusion_matrix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ConfusionMatrixThreshold", "namespace": "ml.evaluate_data_frame" } } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L24-L42" }, { "kind": "interface", "name": { "name": "DataframeRegressionSummary", "namespace": "ml.evaluate_data_frame" }, "properties": [ { "description": "Pseudo Huber loss function.", "name": "huber", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Average squared difference between the predicted values and the actual (`ground truth`) value.", "name": "mse", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Average squared difference between the logarithm of the predicted values and the logarithm of the actual (`ground truth`) value.", "name": "msle", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Proportion of the variance in the dependent variable that is predictable from the independent variables.", "name": "r_squared", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationValue", "namespace": "ml.evaluate_data_frame" } } } ], "specLocation": "ml/evaluate_data_frame/types.ts#L68-L85" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Defines the type of evaluation you want to perform.", "name": "evaluation", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeEvaluationContainer", "namespace": "ml._types" } } }, { "description": "Defines the `index` in which the evaluation will be performed.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "A query clause that retrieves a subset of data from the source index.", "docId": "query-dsl", "docUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/querydsl", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ] }, "description": "Evaluate data frame analytics.\n\nThe API packages together commonly used evaluation metrics for various types\nof machine learning features. This has been designed for use on indexes\ncreated by data frame analytics. Evaluation requires both a ground truth\nfield and an analytics result field to be present.", "examples": { "MlEvaluateDataFrameRequestExample1": { "description": "Run `POST _ml/data_frame/_evaluate` to evaluate a a classification job for an annotated index. The `actual_field` contains the ground truth for classification. The `predicted_field` contains the predicted value calculated by the classification analysis.\n", "summary": "Classification example 1", "value": "{\n \"index\": \"animal_classification\",\n \"evaluation\": {\n \"classification\": {\n \"actual_field\": \"animal_class\",\n \"predicted_field\": \"ml.animal_class_prediction\",\n \"metrics\": {\n \"multiclass_confusion_matrix\": {}\n }\n }\n }\n}" }, "MlEvaluateDataFrameRequestExample2": { "description": "Run `POST _ml/data_frame/_evaluate` to evaluate a classification job with AUC ROC metrics for an annotated index. The `actual_field` contains the ground truth value for the actual animal classification. This is required in order to evaluate results. The `class_name` specifies the class name that is treated as positive during the evaluation, all the other classes are treated as negative.\n", "summary": "Classification example 2", "value": "{\n \"index\": \"animal_classification\",\n \"evaluation\": {\n \"classification\": {\n \"actual_field\": \"animal_class\",\n \"metrics\": {\n \"auc_roc\": {\n \"class_name\": \"dog\"\n }\n }\n }\n }\n}" }, "MlEvaluateDataFrameRequestExample3": { "description": "Run `POST _ml/data_frame/_evaluate` to evaluate an outlier detection job for an annotated index.\n", "summary": "Outlier detection", "value": "{\n \"index\": \"my_analytics_dest_index\",\n \"evaluation\": {\n \"outlier_detection\": {\n \"actual_field\": \"is_outlier\",\n \"predicted_probability_field\": \"ml.outlier_score\"\n }\n }\n}" }, "MlEvaluateDataFrameRequestExample4": { "description": "Run `POST _ml/data_frame/_evaluate` to evaluate the testing error of a regression job for an annotated index. The term query in the body limits evaluation to be performed on the test split only. The `actual_field` contains the ground truth for house prices. The `predicted_field` contains the house price calculated by the regression analysis.\n", "summary": "Regression example 1", "value": "{\n \"index\": \"house_price_predictions\",\n \"query\": {\n \"bool\": {\n \"filter\": [\n {\n \"term\": {\n \"ml.is_training\": false\n }\n }\n ]\n }\n },\n \"evaluation\": {\n \"regression\": {\n \"actual_field\": \"price\",\n \"predicted_field\": \"ml.price_prediction\",\n \"metrics\": {\n \"r_squared\": {},\n \"mse\": {},\n \"msle\": {\n \"offset\": 10\n },\n \"huber\": {\n \"delta\": 1.5\n }\n }\n }\n }\n}" }, "MlEvaluateDataFrameRequestExample5": { "description": "Run `POST _ml/data_frame/_evaluate` to evaluate the training error of a regression job for an annotated index. The term query in the body limits evaluation to be performed on the training split only. The `actual_field` contains the ground truth for house prices. The `predicted_field` contains the house price calculated by the regression analysis.\n", "summary": "Regression example 2", "value": "{\n \"index\": \"house_price_predictions\",\n \"query\": {\n \"term\": {\n \"ml.is_training\": {\n \"value\": true\n }\n }\n },\n \"evaluation\": {\n \"regression\": {\n \"actual_field\": \"price\",\n \"predicted_field\": \"ml.price_prediction\",\n \"metrics\": {\n \"r_squared\": {},\n \"mse\": {},\n \"msle\": {},\n \"huber\": {}\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.evaluate_data_frame" }, "path": [], "query": [], "specLocation": "ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Evaluation results for a classification analysis.\nIt outputs a prediction that identifies to which of the classes each document belongs.", "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeClassificationSummary", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Evaluation results for an outlier detection analysis.\nIt outputs the probability that each document is an outlier.", "name": "outlier_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeOutlierDetectionSummary", "namespace": "ml.evaluate_data_frame" } } }, { "description": "Evaluation results for a regression analysis which outputs a prediction of values.", "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeRegressionSummary", "namespace": "ml.evaluate_data_frame" } } } ] }, "examples": { "MlEvaluateDataFrameResponseExample1": { "description": "A succesful response from `POST _ml/data_frame/_evaluate` to evaluate a classification analysis job for an annotated index. The `actual_class` contains the name of the class the analysis tried to predict. The `actual_class_doc_count` is the number of documents in the index belonging to the `actual_class`. The `predicted_classes` object contains the list of the predicted classes and the number of predictions associated with the class.\n", "summary": "Classification example 1", "value": "{\n \"classification\": {\n \"multiclass_confusion_matrix\": {\n \"confusion_matrix\": [\n {\n \"actual_class\": \"cat\",\n \"actual_class_doc_count\": 12,\n \"predicted_classes\": [\n {\n \"predicted_class\": \"cat\",\n \"count\": 12\n },\n {\n \"predicted_class\": \"dog\",\n \"count\": 0\n }\n ],\n \"other_predicted_class_doc_count\": 0\n },\n {\n \"actual_class\": \"dog\",\n \"actual_class_doc_count\": 11,\n \"predicted_classes\": [\n {\n \"predicted_class\": \"dog\",\n \"count\": 7\n },\n {\n \"predicted_class\": \"cat\",\n \"count\": 4\n }\n ],\n \"other_predicted_class_doc_count\": 0\n }\n ],\n \"other_actual_class_count\": 0\n }\n }\n}" }, "MlEvaluateDataFrameResponseExample2": { "description": "A succesful response from `POST _ml/data_frame/_evaluate` to evaluate a classification analysis job with the AUC ROC metrics for an annotated index.\n", "summary": "Classification example 2", "value": "{\n \"classification\": {\n \"auc_roc\": {\n \"value\": 0.8941788639536681\n }\n }\n}" }, "MlEvaluateDataFrameResponseExample3": { "description": "A successful response from `POST _ml/data_frame/_evaluate` to evaluate an outlier detection job.", "summary": "Outlier detection", "value": "{\n \"outlier_detection\": {\n \"auc_roc\": {\n \"value\": 0.9258475774641445\n },\n \"confusion_matrix\": {\n \"0.25\": {\n \"tp\": 5,\n \"fp\": 9,\n \"tn\": 204,\n \"fn\": 5\n },\n \"0.5\": {\n \"tp\": 1,\n \"fp\": 5,\n \"tn\": 208,\n \"fn\": 9\n },\n \"0.75\": {\n \"tp\": 0,\n \"fp\": 4,\n \"tn\": 209,\n \"fn\": 10\n }\n },\n \"precision\": {\n \"0.25\": 0.35714285714285715,\n \"0.5\": 0.16666666666666666,\n \"0.75\": 0\n },\n \"recall\": {\n \"0.25\": 0.5,\n \"0.5\": 0.1,\n \"0.75\": 0\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "ml.evaluate_data_frame" }, "specLocation": "ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L44" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The configuration of how to source the analysis data. It requires an\nindex. Optionally, query and _source may be specified.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" } } }, { "description": "The destination configuration, consisting of index and optionally\nresults_field (ml by default).", "name": "dest", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsDestination", "namespace": "ml._types" } } }, { "description": "The analysis configuration, which contains the information necessary to\nperform one of the following types of analysis: classification, outlier\ndetection, or regression.", "name": "analysis", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" } } }, { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The approximate maximum amount of memory resources that are permitted for\nanalytical processing. If your `elasticsearch.yml` file contains an\n`xpack.ml.max_model_memory_limit` setting, an error occurs when you try to\ncreate data frame analytics jobs that have `model_memory_limit` values\ngreater than that setting.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "model_memory_limit", "required": false, "serverDefault": "1gb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of threads to be used by the analysis. Using more\nthreads may decrease the time necessary to complete the analysis at the\ncost of using more CPU. Note that the process may use additional threads\nfor operational functionality other than the analysis itself.", "name": "max_num_threads", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specify includes and/or excludes patterns to select which fields will be\nincluded in the analysis. The patterns specified in excludes are applied\nlast, therefore excludes takes precedence. In other words, if the same\nfield is specified in both includes and excludes, then the field will not\nbe included in the analysis.", "name": "analyzed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } }, { "description": "Specifies whether this job can start when there is insufficient machine\nlearning node capacity for it to be immediately assigned to a node.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "allow_lazy_start", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Explain data frame analytics config.\n\nThis API provides explanations for a data frame analytics config that either\nexists already or one that has not been created yet. The following\nexplanations are provided:\n* which fields are included or not in the analysis and why,\n* how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on.\nIf you have object fields or fields that are excluded via source filtering, they are not included in the explanation.", "examples": { "MlExplainDataFrameAnalyticsRequestExample1": { "description": "Run `POST _ml/data_frame/analytics/_explain` to explain a data frame analytics job configuration.", "value": "{\n \"source\": {\n \"index\": \"houses_sold_last_10_yrs\"\n },\n \"analysis\": {\n \"regression\": {\n \"dependent_variable\": \"price\"\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.explain_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job. This identifier can contain\nlowercase alphanumeric characters (a-z and 0-9), hyphens, and\nunderscores. It must start and end with alphanumeric characters.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "An array of objects that explain selection for each field, sorted by the field names.", "name": "field_selection", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsFieldSelection", "namespace": "ml._types" } } } }, { "description": "An array of objects that explain selection for each field, sorted by the field names.", "name": "memory_estimation", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsMemoryEstimation", "namespace": "ml._types" } } } ] }, "examples": { "MlExplainDataFrameAnalyticsResponseExample1": { "description": "A succesful response for explaining a data frame analytics job configuration.", "value": "{\n \"field_selection\": [\n {\n \"field\": \"number_of_bedrooms\",\n \"mappings_types\": [\n \"integer\"\n ],\n \"is_included\": true,\n \"is_required\": false,\n \"feature_type\": \"numerical\"\n },\n {\n \"field\": \"postcode\",\n \"mappings_types\": [\n \"text\"\n ],\n \"is_included\": false,\n \"is_required\": false,\n \"reason\": \"[postcode.keyword] is preferred because it is aggregatable\"\n },\n {\n \"field\": \"postcode.keyword\",\n \"mappings_types\": [\n \"keyword\"\n ],\n \"is_included\": true,\n \"is_required\": false,\n \"feature_type\": \"categorical\"\n },\n {\n \"field\": \"price\",\n \"mappings_types\": [\n \"float\"\n ],\n \"is_included\": true,\n \"is_required\": true,\n \"feature_type\": \"numerical\"\n }\n ],\n \"memory_estimation\": {\n \"expected_memory_without_disk\": \"128MB\",\n \"expected_memory_with_disk\": \"32MB\"\n }\n}" } }, "name": { "name": "Response", "namespace": "ml.explain_data_frame_analytics" }, "specLocation": "ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `advance_time` query parameter.", "name": "advance_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `calc_interim` query parameter.", "name": "calc_interim", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `end` query parameter.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `skip_time` query parameter.", "name": "skip_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `start` query parameter.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ] }, "deprecation": { "description": "Forcing any buffered data to be processed is deprecated, in a future major version a datafeed will be required.", "version": "9.1.0" }, "description": "Force buffered data to be processed.\nThe flush jobs API is only applicable when sending data for analysis using\nthe post data API. Depending on the content of the buffer, then it might\nadditionally calculate new results. Both flush and close operations are\nsimilar, however the flush is more efficient if you are expecting to send\nmore data for analysis. When flushing, the job remains open and is available\nto continue analyzing data. A close operation additionally prunes and\npersists the model state to disk and the job must be opened again before\nanalyzing further data.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.flush_job" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies to advance to a particular time value. Results are generated\nand the model is updated for data from the specified time interval.", "name": "advance_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "If true, calculates the interim results for the most recent bucket or all\nbuckets within the latency period.", "name": "calc_interim", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "When used in conjunction with `calc_interim` and `start`, specifies the\nrange of buckets on which to calculate interim results.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Specifies to skip to a particular time value. Results are not generated\nand the model is not updated for data from the specified time interval.", "name": "skip_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "When used in conjunction with `calc_interim`, specifies the range of\nbuckets on which to calculate interim results.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/flush_job/MlFlushJobRequest.ts#L24-L108" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "flushed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Provides the timestamp (in milliseconds since the epoch) of the end of\nthe last bucket that was processed.", "name": "last_finalized_bucket_end", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.flush_job" }, "specLocation": "ml/flush_job/MlFlushJobResponse.ts#L22-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `duration` query parameter.", "name": "duration", "required": false, "serverDefault": "1d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Refer to the description for the `expires_in` query parameter.", "name": "expires_in", "required": false, "serverDefault": "14d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Refer to the description for the `max_model_memory` query parameter.", "name": "max_model_memory", "required": false, "serverDefault": "20mb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Predict future behavior of a time series.\n\nForecasts are not supported for jobs that perform population analysis; an\nerror occurs if you try to create a forecast for a job that has an\n`over_field_name` in its configuration. Forcasts predict future behavior\nbased on historical data.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.forecast" }, "path": [ { "description": "Identifier for the anomaly detection job. The job must be open when you\ncreate a forecast; otherwise, an error occurs.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "A period of time that indicates how far into the future to forecast. For\nexample, `30d` corresponds to 30 days. The forecast starts at the last\nrecord that was processed.", "name": "duration", "required": false, "serverDefault": "1d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period of time that forecast results are retained. After a forecast\nexpires, the results are deleted. If set to a value of 0, the forecast is\nnever automatically deleted.", "name": "expires_in", "required": false, "serverDefault": "14d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum memory the forecast can use. If the forecast needs to use\nmore than the provided amount, it will spool to disk. Default is 20mb,\nmaximum is 500mb and minimum is 1mb. If set to 40% or more of the job’s\nconfigured memory limit, it is automatically reduced to below that\namount.", "name": "max_model_memory", "required": false, "serverDefault": "20mb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ml/forecast/MlForecastJobRequest.ts#L24-L95" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "forecast_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.forecast" }, "specLocation": "ml/forecast/MlForecastJobResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `anomaly_score` query parameter.", "name": "anomaly_score", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Refer to the description for the `desc` query parameter.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `end` query parameter.", "name": "end", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `exclude_interim` query parameter.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `expand` query parameter.", "name": "expand", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "page", "required": false, "type": { "kind": "instance_of", "type": { "name": "Page", "namespace": "ml._types" } } }, { "description": "Refer to the desription for the `sort` query parameter.", "name": "sort", "required": false, "serverDefault": "timestamp", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Refer to the description for the `start` query parameter.", "name": "start", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ] }, "description": "Get anomaly detection job results for buckets.\nThe API presents a chronological view of the records, grouped by bucket.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_buckets" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The timestamp of a single bucket result. If you do not specify this\nparameter, the API returns information about all buckets.", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "query": [ { "description": "Returns buckets with anomaly scores greater or equal than this value.", "name": "anomaly_score", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "If `true`, the buckets are sorted in descending order.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Returns buckets with timestamps earlier than this time. `-1` means it is\nunset and results are not limited to specific timestamps.", "name": "end", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "If `true`, the output excludes interim results.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the output includes anomaly records.", "name": "expand", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of buckets.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of buckets to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the sort field for the requested buckets.", "name": "sort", "required": false, "serverDefault": "timestamp", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Returns buckets with timestamps after this time. `-1` means it is unset\nand results are not limited to specific timestamps.", "name": "start", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/get_buckets/MlGetBucketsRequest.ts#L26-L145" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "buckets", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "BucketSummary", "namespace": "ml._types" } } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.get_buckets" }, "specLocation": "ml/get_buckets/MlGetBucketsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get info about events in calendars.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_calendar_events" }, "path": [ { "description": "A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies to get events with timestamps earlier than this time.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Skips the specified number of events.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of `_all` or `*`.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Specifies the maximum number of events to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies to get events with timestamps after this time.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/get_calendar_events/MlGetCalendarEventsRequest.ts#L25-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "events", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CalendarEvent", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_calendar_events" }, "specLocation": "ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28" }, { "kind": "interface", "name": { "name": "Calendar", "namespace": "ml.get_calendars" }, "properties": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A description of the calendar.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An array of anomaly detection job identifiers.", "name": "job_ids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } } ], "specLocation": "ml/get_calendars/types.ts#L22-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "This object is supported only when you omit the calendar identifier.", "name": "page", "required": false, "type": { "kind": "instance_of", "type": { "name": "Page", "namespace": "ml._types" } } } ] }, "description": "Get calendar configuration info.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_calendars" }, "path": [ { "description": "A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier.", "name": "calendar_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier.", "name": "size", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "calendars", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Calendar", "namespace": "ml.get_calendars" } } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.get_calendars" }, "specLocation": "ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Configures pagination.\nThis parameter has the `from` and `size` properties.", "name": "page", "required": false, "type": { "kind": "instance_of", "type": { "name": "Page", "namespace": "ml._types" } } } ] }, "description": "Get anomaly detection job results for categories.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_categories" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Identifier for the category, which is unique in the job. If you specify\nneither the category ID nor the partition_field_value, the API returns\ninformation about all categories. If you specify only the\npartition_field_value, it returns information about all categories for\nthe specified partition.", "name": "category_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "CategoryId", "namespace": "_types" } } } ], "query": [ { "description": "Skips the specified number of categories.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Only return categories for the specified partition.", "name": "partition_field_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Specifies the maximum number of categories to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_categories/MlGetCategoriesRequest.ts#L25-L82" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "categories", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Category", "namespace": "ml._types" } } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.get_categories" }, "specLocation": "ml/get_categories/MlGetCategoriesResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data frame analytics job configuration info.\nYou can get information for multiple data frame analytics jobs in a single\nAPI request by using a comma-separated list of data frame analytics jobs or a\nwildcard expression.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job. If you do not specify this\noption, the API returns information for the first hundred data frame\nanalytics jobs.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no data frame analytics\njobs 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\nThe default value returns an empty data_frame_analytics array when there\nare no matches and the subset of results when there are partial matches.\nIf this parameter is `false`, the request returns a 404 status code when\nthere are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of data frame analytics jobs.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of data frame analytics jobs to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Indicates if certain fields should be removed from the configuration on\nretrieval. This allows the configuration to be in an acceptable format to\nbe retrieved and then added to another cluster.", "name": "exclude_generated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_data_frame_analytics/MlGetDataFrameAnalyticsRequest.ts#L24-L89" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "An array of data frame analytics job resources, which are sorted by the id value in ascending order.", "name": "data_frame_analytics", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSummary", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_data_frame_analytics" }, "specLocation": "ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get data frame analytics jobs usage info.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_data_frame_analytics_stats" }, "path": [ { "description": "Identifier for the data frame analytics job. If you do not specify this\noption, the API returns information for the first hundred data frame\nanalytics jobs.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no data frame analytics\njobs 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\nThe default value returns an empty data_frame_analytics array when there\nare no matches and the subset of results when there are partial matches.\nIf this parameter is `false`, the request returns a 404 status code when\nthere are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of data frame analytics jobs.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of data frame analytics jobs to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Defines whether the stats response should be verbose.", "name": "verbose", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsRequest.ts#L24-L84" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "An array of objects that contain usage information for data frame analytics jobs, which are sorted by the id value in ascending order.", "name": "data_frame_analytics", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataframeAnalytics", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_data_frame_analytics_stats" }, "specLocation": "ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get datafeeds usage info.\nYou can get statistics for multiple datafeeds in a single API request by\nusing a comma-separated list of datafeeds or a wildcard expression. You can\nget statistics for all datafeeds by using `_all`, by specifying `*` as the\n``, or by omitting the ``. If the datafeed is stopped, the\nonly information you receive is the `datafeed_id` and the `state`.\nThis API returns a maximum of 10,000 datafeeds.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_datafeed_stats" }, "path": [ { "description": "Identifier for the datafeed. It can be a datafeed identifier or a\nwildcard expression. If you do not specify one of these options, the API\nreturns information about all datafeeds.", "name": "datafeed_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no datafeeds 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\nThe default value is `true`, which returns an empty `datafeeds` array\nwhen there are no matches and the subset of results when there are\npartial matches. If this parameter is `false`, the request returns a\n`404` status code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_datafeed_stats/MlGetDatafeedStatsRequest.ts#L23-L72" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "datafeeds", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DatafeedStats", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_datafeed_stats" }, "specLocation": "ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get datafeeds configuration info.\nYou can get information for multiple datafeeds in a single API request by\nusing a comma-separated list of datafeeds or a wildcard expression. You can\nget information for all datafeeds by using `_all`, by specifying `*` as the\n``, or by omitting the ``.\nThis API returns a maximum of 10,000 datafeeds.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_datafeeds" }, "path": [ { "description": "Identifier for the datafeed. It can be a datafeed identifier or a\nwildcard expression. If you do not specify one of these options, the API\nreturns information about all datafeeds.", "name": "datafeed_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no datafeeds 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\nThe default value is `true`, which returns an empty `datafeeds` array\nwhen there are no matches and the subset of results when there are\npartial matches. If this parameter is `false`, the request returns a\n`404` status code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates if certain fields should be removed from the configuration on\nretrieval. This allows the configuration to be in an acceptable format to\nbe retrieved and then added to another cluster.", "name": "exclude_generated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_datafeeds/MlGetDatafeedsRequest.ts#L23-L78" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "datafeeds", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Datafeed", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_datafeeds" }, "specLocation": "ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get filters.\nYou can get a single filter or all filters.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_filters" }, "path": [ { "description": "A string that uniquely identifies a filter.", "name": "filter_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "Skips the specified number of filters.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of filters to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_filters/MlGetFiltersRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "filters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Filter", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_filters" }, "specLocation": "ml/get_filters/MlGetFiltersResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Configures pagination.\nThis parameter has the `from` and `size` properties.", "name": "page", "required": false, "type": { "kind": "instance_of", "type": { "name": "Page", "namespace": "ml._types" } } } ] }, "description": "Get anomaly detection job results for influencers.\nInfluencers are the entities that have contributed to, or are to blame for,\nthe anomalies. Influencer results are available only if an\n`influencer_field_name` is specified in the job configuration.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_influencers" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If true, the results are sorted in descending order.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Returns influencers with timestamps earlier than this time.\nThe default value means it is unset and results are not limited to\nspecific timestamps.", "name": "end", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "If true, the output excludes interim results. By default, interim results\nare included.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Returns influencers with anomaly scores greater than or equal to this\nvalue.", "name": "influencer_score", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Skips the specified number of influencers.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of influencers to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the sort field for the requested influencers. By default, the\ninfluencers are sorted by the `influencer_score` value.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Returns influencers with timestamps after this time. The default value\nmeans it is unset and results are not limited to specific timestamps.", "name": "start", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Array of influencer objects", "name": "influencers", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Influencer", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_influencers" }, "specLocation": "ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get anomaly detection jobs usage info.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_job_stats" }, "path": [ { "description": "Identifier for the anomaly detection job. It can be a job identifier, a\ngroup name, a comma-separated list of jobs, or a wildcard expression. If\nyou do not specify one of these options, the API returns information for\nall anomaly detection jobs.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no jobs 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 `true`, the API returns an empty `jobs` array when\nthere are no matches and the subset of results when there are partial\nmatches. If `false`, the API returns a `404` status\ncode when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_job_stats/MlGetJobStatsRequest.ts#L23-L68" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "jobs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "JobStats", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_job_stats" }, "specLocation": "ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get anomaly detection jobs configuration info.\nYou can get information for multiple anomaly detection jobs in a single API\nrequest by using a group name, a comma-separated list of jobs, or a wildcard\nexpression. You can get information for all anomaly detection jobs by using\n`_all`, by specifying `*` as the ``, or by omitting the ``.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_jobs" }, "path": [ { "description": "Identifier for the anomaly detection job. It can be a job identifier, a\ngroup name, or a wildcard expression. If you do not specify one of these\noptions, the API returns information for all anomaly detection jobs.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no jobs 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\nThe default value is `true`, which returns an empty `jobs` array when\nthere are no matches and the subset of results when there are partial\nmatches. If this parameter is `false`, the request returns a `404` status\ncode when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates if certain fields should be removed from the configuration on\nretrieval. This allows the configuration to be in an acceptable format to\nbe retrieved and then added to another cluster.", "name": "exclude_generated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_jobs/MlGetJobsRequest.ts#L23-L78" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "jobs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Job", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_jobs" }, "specLocation": "ml/get_jobs/MlGetJobsResponse.ts#L23-L28" }, { "kind": "interface", "name": { "name": "JvmStats", "namespace": "ml.get_memory_stats" }, "properties": [ { "description": "Maximum amount of memory available for use by the heap.", "name": "heap_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Maximum amount of memory, in bytes, available for use by the heap.", "name": "heap_max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Amount of Java heap currently being used for caching inference models.", "name": "java_inference", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Amount of Java heap, in bytes, currently being used for caching inference models.", "name": "java_inference_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum amount of Java heap to be used for caching inference models.", "name": "java_inference_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Maximum amount of Java heap, in bytes, to be used for caching inference models.", "name": "java_inference_max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_memory_stats/types.ts#L50-L63" }, { "kind": "interface", "name": { "name": "MemMlStats", "namespace": "ml.get_memory_stats" }, "properties": [ { "description": "Amount of native memory set aside for anomaly detection jobs.", "name": "anomaly_detectors", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Amount of native memory, in bytes, set aside for anomaly detection jobs.", "name": "anomaly_detectors_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Amount of native memory set aside for data frame analytics jobs.", "name": "data_frame_analytics", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Amount of native memory, in bytes, set aside for data frame analytics jobs.", "name": "data_frame_analytics_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum amount of native memory (separate to the JVM heap) that may be used by machine learning native processes.", "name": "max", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Maximum amount of native memory (separate to the JVM heap), in bytes, that may be used by machine learning native processes.", "name": "max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Amount of native memory set aside for loading machine learning native code shared libraries.", "name": "native_code_overhead", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Amount of native memory, in bytes, set aside for loading machine learning native code shared libraries.", "name": "native_code_overhead_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Amount of native memory set aside for trained models that have a PyTorch model_type.", "name": "native_inference", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Amount of native memory, in bytes, set aside for trained models that have a PyTorch model_type.", "name": "native_inference_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_memory_stats/types.ts#L90-L111" }, { "kind": "interface", "name": { "name": "MemStats", "namespace": "ml.get_memory_stats" }, "properties": [ { "description": "If the amount of physical memory has been overridden using the es.total_memory_bytes system property\nthen this reports the overridden value. Otherwise it reports the same value as total.", "name": "adjusted_total", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "If the amount of physical memory has been overridden using the `es.total_memory_bytes` system property\nthen this reports the overridden value in bytes. Otherwise it reports the same value as `total_in_bytes`.", "name": "adjusted_total_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total amount of physical memory.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Total amount of physical memory in bytes.", "name": "total_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Contains statistics about machine learning use of native memory on the node.", "name": "ml", "required": true, "type": { "kind": "instance_of", "type": { "name": "MemMlStats", "namespace": "ml.get_memory_stats" } } } ], "specLocation": "ml/get_memory_stats/types.ts#L65-L88" }, { "kind": "interface", "name": { "name": "Memory", "namespace": "ml.get_memory_stats" }, "properties": [ { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Contains Java Virtual Machine (JVM) statistics for the node.", "name": "jvm", "required": true, "type": { "kind": "instance_of", "type": { "name": "JvmStats", "namespace": "ml.get_memory_stats" } } }, { "description": "Contains statistics about memory usage for the node.", "name": "mem", "required": true, "type": { "kind": "instance_of", "type": { "name": "MemStats", "namespace": "ml.get_memory_stats" } } }, { "description": "Human-readable identifier for the node. Based on the Node name setting setting.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Roles assigned to the node.", "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The host and port where transport HTTP connections are accepted.", "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "ephemeral_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "ml/get_memory_stats/types.ts#L25-L48" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get machine learning memory usage info.\nGet information about how machine learning jobs and trained models are using memory,\non each node, both within the JVM heap, and natively, outside of the JVM.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_memory_stats" }, "path": [ { "description": "The names of particular nodes in the cluster to target. For example, `nodeId1,nodeId2` or\n`ml:true`", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a connection to the master node. If no response is received before the timeout\nexpires, the request fails and returns an error.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request\nfails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L66" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Memory", "namespace": "ml.get_memory_stats" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_memory_stats" }, "specLocation": "ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get anomaly detection job model snapshot upgrade usage info.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_model_snapshot_upgrade_stats" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A numerical character string that uniquely identifies the model snapshot. You can get information for multiple\nsnapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using `_all`,\nby specifying `*` as the snapshot ID, or by omitting the snapshot ID.", "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n - Contains wildcard expressions and there are no jobs that match.\n - Contains the _all string or no identifiers and there are no matches.\n - Contains wildcard expressions and there are only partial matches.\n\nThe default value is true, which returns an empty jobs array when there are no matches and the subset of results\nwhen there are partial matches. If this parameter is false, the request returns a 404 status code when there are\nno matches or only partial matches.", "name": "allow_no_match", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsRequest.ts#L23-L65" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "model_snapshot_upgrades", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ModelSnapshotUpgrade", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_model_snapshot_upgrade_stats" }, "specLocation": "ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `desc` query parameter.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `end` query parameter.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "page", "required": false, "type": { "kind": "instance_of", "type": { "name": "Page", "namespace": "ml._types" } } }, { "description": "Refer to the description for the `sort` query parameter.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Refer to the description for the `start` query parameter.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ] }, "description": "Get model snapshots info.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_model_snapshots" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A numerical character string that uniquely identifies the model snapshot. You can get information for multiple\nsnapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using `_all`,\nby specifying `*` as the snapshot ID, or by omitting the snapshot ID.", "name": "snapshot_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If true, the results are sorted in descending order.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Returns snapshots with timestamps earlier than this time.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Skips the specified number of snapshots.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of snapshots to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the sort field for the requested snapshots. By default, the\nsnapshots are sorted by their timestamp.", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Returns snapshots with timestamps after this time.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "model_snapshots", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ModelSnapshot", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_model_snapshots" }, "specLocation": "ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `allow_no_match` query parameter.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `bucket_span` query parameter.", "name": "bucket_span", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Refer to the description for the `end` query parameter.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `exclude_interim` query parameter.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `overall_score` query parameter.", "name": "overall_score", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "description": "Refer to the description for the `start` query parameter.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `top_n` query parameter.", "name": "top_n", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Get overall bucket results.\n\nRetrievs overall bucket results that summarize the bucket results of\nmultiple anomaly detection jobs.\n\nThe `overall_score` is calculated by combining the scores of all the\nbuckets within the overall bucket span. First, the maximum\n`anomaly_score` per anomaly detection job in the overall bucket is\ncalculated. Then the `top_n` of those scores are averaged to result in\nthe `overall_score`. This means that you can fine-tune the\n`overall_score` so that it is more or less sensitive to the number of\njobs that detect an anomaly at the same time. For example, if you set\n`top_n` to `1`, the `overall_score` is the maximum bucket score in the\noverall bucket. Alternatively, if you set `top_n` to the number of jobs,\nthe `overall_score` is high only when all jobs detect anomalies in that\noverall bucket. If you set the `bucket_span` parameter (to a value\ngreater than its default), the `overall_score` is the maximum\n`overall_score` of the overall buckets that have a span equal to the\njobs' largest bucket span.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_overall_buckets" }, "path": [ { "description": "Identifier for the anomaly detection job. It can be a job identifier, a\ngroup name, a comma-separated list of jobs or groups, or a wildcard\nexpression.\n\nYou can summarize the bucket results for all anomaly detection jobs by\nusing `_all` or by specifying `*` as the ``.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no jobs 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 `true`, the request returns an empty `jobs` array when there are no\nmatches and the subset of results when there are partial matches. If this\nparameter is `false`, the request returns a `404` status code when there\nare no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The span of the overall buckets. Must be greater or equal to the largest\nbucket span of the specified anomaly detection jobs, which is the default\nvalue.\n\nBy default, an overall bucket has a span equal to the largest bucket span\nof the specified anomaly detection jobs. To override that behavior, use\nthe optional `bucket_span` parameter.", "name": "bucket_span", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Returns overall buckets with timestamps earlier than this time.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "If `true`, the output excludes interim results.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Returns overall buckets with overall scores greater than or equal to this\nvalue.", "name": "overall_score", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "description": "Returns overall buckets with timestamps after this time.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The number of top anomaly detection job bucket scores to be used in the\n`overall_score` calculation.", "name": "top_n", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Array of overall bucket objects", "name": "overall_buckets", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "OverallBucket", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_overall_buckets" }, "specLocation": "ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `desc` query parameter.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `end` query parameter.", "name": "end", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `exclude_interim` query parameter.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "page", "required": false, "type": { "kind": "instance_of", "type": { "name": "Page", "namespace": "ml._types" } } }, { "description": "Refer to the description for the `record_score` query parameter.", "name": "record_score", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Refer to the description for the `sort` query parameter.", "name": "sort", "required": false, "serverDefault": "record_score", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Refer to the description for the `start` query parameter.", "name": "start", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ] }, "description": "Get anomaly records for an anomaly detection job.\nRecords contain the detailed analytical results. They describe the anomalous\nactivity that has been identified in the input data based on the detector\nconfiguration.\nThere can be many anomaly records depending on the characteristics and size\nof the input data. In practice, there are often too many to be able to\nmanually process them. The machine learning features therefore perform a\nsophisticated aggregation of the anomaly records into buckets.\nThe number of record results depends on the number of anomalies found in each\nbucket, which relates to the number of time series being modeled and the\nnumber of detectors.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_records" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If true, the results are sorted in descending order.", "name": "desc", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Returns records with timestamps earlier than this time. The default value\nmeans results are not limited to specific timestamps.", "name": "end", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "If `true`, the output excludes interim results.", "name": "exclude_interim", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of records.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Returns records with anomaly scores greater or equal than this value.", "name": "record_score", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Specifies the maximum number of records to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the sort field for the requested records.", "name": "sort", "required": false, "serverDefault": "record_score", "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Returns records with timestamps after this time. The default value means\nresults are not limited to specific timestamps.", "name": "start", "required": false, "serverDefault": "-1", "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "records", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Anomaly", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_records" }, "specLocation": "ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get trained model configuration info.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_trained_models" }, "path": [ { "description": "The unique identifier of the trained model or a model alias.\n\nYou can get information for multiple trained models in a single API\nrequest by using a comma-separated list of model IDs or a wildcard\nexpression.", "name": "model_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n- Contains wildcard expressions and there are no models that match.\n- Contains the _all string or no identifiers and there are no matches.\n- Contains wildcard expressions and there are only partial matches.\n\nIf true, it returns an empty array when there are no matches and the\nsubset of results when there are partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether the included model definition should be returned as a\nJSON map (true) or in a custom compressed format (false).", "name": "decompress_definition", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates if certain fields should be removed from the configuration on\nretrieval. This allows the configuration to be in an acceptable format to\nbe retrieved and then added to another cluster.", "name": "exclude_generated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of models.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A comma delimited string of optional fields to include in the response\nbody.", "name": "include", "required": false, "type": { "kind": "instance_of", "type": { "name": "Include", "namespace": "ml._types" } } }, { "description": "Specifies the maximum number of models to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A comma delimited string of tags. A trained model can have many tags, or\nnone. When supplied, only trained models that contain all the supplied\ntags are returned.", "name": "tags", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L104" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "An array of trained model resources, which are sorted by the model_id value in ascending order.", "name": "trained_model_configs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelConfig", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_trained_models" }, "specLocation": "ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get trained models usage info.\nYou can get usage information for multiple trained\nmodels in a single API request by using a comma-separated list of model IDs or a wildcard expression.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.get_trained_models_stats" }, "path": [ { "description": "The unique identifier of the trained model or a model alias. It can be a\ncomma-separated list or a wildcard expression.", "name": "model_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n- Contains wildcard expressions and there are no models that match.\n- Contains the _all string or no identifiers and there are no matches.\n- Contains wildcard expressions and there are only partial matches.\n\nIf true, it returns an empty array when there are no matches and the\nsubset of results when there are partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of models.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of models to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/get_trained_models_stats/MlGetTrainedModelStatsRequest.ts#L24-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of trained model statistics that matched the requested ID patterns. Could be higher than the number of items in the trained_model_stats array as the size of the array is restricted by the supplied size parameter.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "An array of trained model statistics, which are sorted by the model_id value in ascending order.", "name": "trained_model_stats", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelStats", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.get_trained_models_stats" }, "specLocation": "ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "An array of objects to pass to the model for inference. The objects should contain a fields matching your\nconfigured trained model input. Typically, for NLP models, the field name is `text_field`.\nCurrently, for NLP models, only a single value is allowed.", "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } }, { "description": "The inference configuration updates to apply on the API call", "name": "inference_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfigUpdateContainer", "namespace": "ml._types" } } } ] }, "description": "Evaluate a trained model.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.infer_trained_model" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Controls the amount of time to wait for inference results.", "name": "timeout", "required": false, "serverDefault": "10s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "inference_results", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InferenceResponseResult", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.infer_trained_model" }, "specLocation": "ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26" }, { "kind": "interface", "name": { "name": "AnomalyDetectors", "namespace": "ml.info" }, "properties": [ { "name": "categorization_analyzer", "required": true, "type": { "kind": "instance_of", "type": { "name": "CategorizationAnalyzer", "namespace": "ml._types" } } }, { "name": "categorization_examples_limit", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "model_memory_limit", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_snapshot_retention_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "daily_model_snapshot_retention_after_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/info/types.ts#L46-L52" }, { "kind": "interface", "name": { "name": "Datafeeds", "namespace": "ml.info" }, "properties": [ { "name": "scroll_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/info/types.ts#L42-L44" }, { "kind": "interface", "name": { "name": "Defaults", "namespace": "ml.info" }, "properties": [ { "name": "anomaly_detectors", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnomalyDetectors", "namespace": "ml.info" } } }, { "name": "datafeeds", "required": true, "type": { "kind": "instance_of", "type": { "name": "Datafeeds", "namespace": "ml.info" } } } ], "specLocation": "ml/info/types.ts#L24-L27" }, { "kind": "interface", "name": { "name": "Limits", "namespace": "ml.info" }, "properties": [ { "name": "max_single_ml_node_processors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_ml_processors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_model_memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "effective_max_model_memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "total_ml_memory", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "ml/info/types.ts#L34-L40" }, { "kind": "interface", "name": { "name": "NativeCode", "namespace": "ml.info" }, "properties": [ { "name": "build_hash", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "ml/info/types.ts#L29-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get machine learning information.\nGet defaults and limits used by machine learning.\nThis endpoint is designed to be used by a user interface that needs to fully\nunderstand machine learning configurations where some options are not\nspecified, meaning that the defaults should be used. This endpoint may be\nused to find out what those defaults are. It also provides information about\nthe maximum size of machine learning jobs that could run in the current\ncluster configuration.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.info" }, "path": [], "query": [], "specLocation": "ml/info/MlInfoRequest.ts#L22-L44" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "defaults", "required": true, "type": { "kind": "instance_of", "type": { "name": "Defaults", "namespace": "ml.info" } } }, { "name": "limits", "required": true, "type": { "kind": "instance_of", "type": { "name": "Limits", "namespace": "ml.info" } } }, { "name": "upgrade_mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "native_code", "required": true, "type": { "kind": "instance_of", "type": { "name": "NativeCode", "namespace": "ml.info" } } } ] }, "name": { "name": "Response", "namespace": "ml.info" }, "specLocation": "ml/info/MlInfoResponse.ts#L22-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `timeout` query parameter.", "name": "timeout", "required": false, "serverDefault": "30m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Open anomaly detection jobs.\n\nAn anomaly detection job must be opened to be ready to receive and analyze\ndata. It can be opened and closed multiple times throughout its lifecycle.\nWhen you open a new job, it starts with an empty model.\nWhen you open an existing job, the most recent model state is automatically\nloaded. The job is ready to resume its analysis from where it left off, once\nnew data is received.", "examples": { "MlOpenJobRequestExample1": { "description": "A request to open anomaly detection jobs. The timeout specifies to wait 35 minutes for the job to open.\n", "value": "{\n \"timeout\": \"35m\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.open_job" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Controls the time to wait until a job has opened.", "name": "timeout", "required": false, "serverDefault": "30m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/open_job/MlOpenJobRequest.ts#L24-L67" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "opened", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The ID of the node that the job was started on. In serverless this will be the \"serverless\".\nIf the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string.", "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } } ] }, "examples": { "MlOpenJobResponseExample1": { "description": "A successful response when opening an anomaly detection job.", "value": "{\n \"opened\": true,\n \"node\": \"node-1\"\n}" } }, "name": { "name": "Response", "namespace": "ml.open_job" }, "specLocation": "ml/open_job/MlOpenJobResponse.ts#L22-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format.", "name": "events", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CalendarEvent", "namespace": "ml._types" } } } } ] }, "description": "Add scheduled events to the calendar.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.post_calendar_events" }, "path": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "events", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CalendarEvent", "namespace": "ml._types" } } } } ] }, "name": { "name": "Response", "namespace": "ml.post_calendar_events" }, "specLocation": "ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "data", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TData", "namespace": "ml.post_data.Request" } } } }, "deprecation": { "description": "Posting data directly to anomaly detection jobs is deprecated, in a future major version a datafeed will be required.", "version": "7.11.0" }, "description": "Send data to an anomaly detection job for analysis.\n\nIMPORTANT: For each job, data can be accepted from only a single connection at a time.\nIt is not currently possible to post data to multiple jobs using wildcards or a comma-separated list.", "generics": [ { "name": "TData", "namespace": "ml.post_data.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.post_data" }, "path": [ { "description": "Identifier for the anomaly detection job. The job must have a state of open to receive and process the data.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies the end of the bucket resetting range.", "name": "reset_end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Specifies the start of the bucket resetting range.", "name": "reset_start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/post_data/MlPostJobDataRequest.ts#L24-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "processed_record_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "processed_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "input_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "input_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "invalid_date_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "missing_field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "out_of_order_timestamp_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "empty_bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "sparse_bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "bucket_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "earliest_record_timestamp", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "latest_record_timestamp", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "last_data_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "latest_empty_bucket_timestamp", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "latest_sparse_bucket_timestamp", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "input_record_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "log_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.post_data" }, "specLocation": "ml/post_data/MlPostJobDataResponse.ts#L24-L45" }, { "kind": "interface", "name": { "name": "DataframePreviewConfig", "namespace": "ml.preview_data_frame_analytics" }, "properties": [ { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" } } }, { "name": "analysis", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" } } }, { "name": "model_memory_limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_num_threads", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "analyzed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } } ], "specLocation": "ml/preview_data_frame_analytics/types.ts#L27-L33" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A data frame analytics config as described in create data frame analytics\njobs. Note that `id` and `dest` don’t need to be provided in the context of\nthis API.", "docId": "put-dfanalytics", "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-data-frame-analytics", "name": "config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframePreviewConfig", "namespace": "ml.preview_data_frame_analytics" } } } ] }, "description": "Preview features used by data frame analytics.\nPreview the extracted features used by a data frame analytics config.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.preview_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "An array of objects that contain feature name and value pairs. The features have been processed and indicate what will be sent to the model for training.", "name": "feature_values", "required": true, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } } ] }, "name": { "name": "Response", "namespace": "ml.preview_data_frame_analytics" }, "specLocation": "ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The datafeed definition to preview.", "name": "datafeed_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedConfig", "namespace": "ml._types" } } }, { "description": "The configuration details for the anomaly detection job that is associated with the datafeed. If the\n`datafeed_config` object does not include a `job_id` that references an existing anomaly detection job, you must\nsupply this `job_config` object. If you include both a `job_id` and a `job_config`, the latter information is\nused. You cannot specify a `job_config` object unless you also supply a `datafeed_config` object.", "name": "job_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobConfig", "namespace": "ml._types" } } } ] }, "description": "Preview a datafeed.\nThis API returns the first \"page\" of search results from a datafeed.\nYou can preview an existing datafeed or provide configuration details for a datafeed\nand anomaly detection job in the API. The preview shows the structure of the data\nthat will be passed to the anomaly detection engine.\nIMPORTANT: When Elasticsearch security features are enabled, the preview uses the credentials of the user that\ncalled the API. However, when the datafeed starts it uses the roles of the last user that created or updated the\ndatafeed. To get a preview that accurately reflects the behavior of the datafeed, use the appropriate credentials.\nYou can also use secondary authorization headers to supply the credentials.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.preview_datafeed" }, "path": [ { "description": "A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase\nalphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric\ncharacters. NOTE: If you use this path parameter, you cannot provide datafeed or anomaly detection job\nconfiguration details in the request body.", "name": "datafeed_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The start time from where the datafeed preview should begin", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The end time when the datafeed preview should stop", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L81" }, { "kind": "response", "body": { "kind": "value", "codegenName": "documents", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "ml.preview_datafeed.Response" } } } }, "generics": [ { "name": "TDocument", "namespace": "ml.preview_datafeed.Response" } ], "name": { "name": "Response", "namespace": "ml.preview_datafeed" }, "specLocation": "ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "An array of anomaly detection job identifiers.", "name": "job_ids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "description": "A description of the calendar.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Create a calendar.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_calendar" }, "path": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/put_calendar/MlPutCalendarRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A description of the calendar.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of anomaly detection job identifiers or group names.", "name": "job_ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.put_calendar" }, "specLocation": "ml/put_calendar/MlPutCalendarResponse.ts#L22-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Add anomaly detection job to calendar.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_calendar_job" }, "path": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/put_calendar_job/MlPutCalendarJobRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A string that uniquely identifies a calendar.", "name": "calendar_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A description of the calendar.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of anomaly detection job identifiers or group names.", "name": "job_ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.put_calendar_job" }, "specLocation": "ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Specifies whether this job can start when there is insufficient machine\nlearning node capacity for it to be immediately assigned to a node. If\nset to `false` and a machine learning node with capacity to run the job\ncannot be immediately found, the API returns an error. If set to `true`,\nthe API does not return an error; the job waits in the `starting` state\nuntil sufficient machine learning node capacity is available. This\nbehavior is also affected by the cluster-wide\n`xpack.ml.max_lazy_ml_nodes` setting.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "allow_lazy_start", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The analysis configuration, which contains the information necessary to\nperform one of the following types of analysis: classification, outlier\ndetection, or regression.", "name": "analysis", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" } } }, { "description": "Specifies `includes` and/or `excludes` patterns to select which fields\nwill be included in the analysis. The patterns specified in `excludes`\nare applied last, therefore `excludes` takes precedence. In other words,\nif the same field is specified in both `includes` and `excludes`, then\nthe field will not be included in the analysis. If `analyzed_fields` is\nnot set, only the relevant fields will be included. For example, all the\nnumeric fields for outlier detection.\nThe supported fields vary for each type of analysis. Outlier detection\nrequires numeric or `boolean` data to analyze. The algorithms don’t\nsupport missing values therefore fields that have data types other than\nnumeric or boolean are ignored. Documents where included fields contain\nmissing values, null values, or an array are also ignored. Therefore the\n`dest` index may contain documents that don’t have an outlier score.\nRegression supports fields that are numeric, `boolean`, `text`,\n`keyword`, and `ip` data types. It is also tolerant of missing values.\nFields that are supported are included in the analysis, other fields are\nignored. Documents where included fields contain an array with two or\nmore values are also ignored. Documents in the `dest` index that don’t\ncontain a results field are not included in the regression analysis.\nClassification supports fields that are numeric, `boolean`, `text`,\n`keyword`, and `ip` data types. It is also tolerant of missing values.\nFields that are supported are included in the analysis, other fields are\nignored. Documents where included fields contain an array with two or\nmore values are also ignored. Documents in the `dest` index that don’t\ncontain a results field are not included in the classification analysis.\nClassification analysis can be improved by mapping ordinal variable\nvalues to a single number. For example, in case of age ranges, you can\nmodel the values as `0-14 = 0`, `15-24 = 1`, `25-34 = 2`, and so on.", "name": "analyzed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } }, { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The destination configuration.", "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsDestination", "namespace": "ml._types" } } }, { "description": "The maximum number of threads to be used by the analysis. Using more\nthreads may decrease the time necessary to complete the analysis at the\ncost of using more CPU. Note that the process may use additional threads\nfor operational functionality other than the analysis itself.", "name": "max_num_threads", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The approximate maximum amount of memory resources that are permitted for\nanalytical processing. If your `elasticsearch.yml` file contains an\n`xpack.ml.max_model_memory_limit` setting, an error occurs when you try\nto create data frame analytics jobs that have `model_memory_limit` values\ngreater than that setting.", "name": "model_memory_limit", "required": false, "serverDefault": "1gb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The configuration of how to source the analysis data.", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "headers", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpHeaders", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ] }, "description": "Create a data frame analytics job.\nThis API creates a data frame analytics job that performs an analysis on the\nsource indices and stores the outcome in a destination index.\nBy default, the query used in the source configuration is `{\"match_all\": {}}`.\n\nIf the destination index does not exist, it is created automatically when you start the job.\n\nIf you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job. This identifier can contain\nlowercase alphanumeric characters (a-z and 0-9), hyphens, and\nunderscores. It must start and end with alphanumeric characters.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsAuthorization", "namespace": "ml._types" } } }, { "name": "allow_lazy_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analysis", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" } } }, { "name": "analyzed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } }, { "name": "create_time", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsDestination", "namespace": "ml._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max_num_threads", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "model_memory_limit", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.put_data_frame_analytics" }, "specLocation": "ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "aliases": [ "aggs" ], "description": "If set, the datafeed performs aggregation searches.\nSupport for aggregations is limited and should be used only with low cardinality data.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Datafeeds might be required to search over long time periods, for several months or years.\nThis search is split into time chunks in order to ensure the load on Elasticsearch is managed.\nChunking configuration controls how the size of these time chunks are calculated;\nit is an advanced configuration option.", "name": "chunking_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChunkingConfig", "namespace": "ml._types" } } }, { "description": "Specifies whether the datafeed checks for missing data and the size of the window.\nThe datafeed can optionally search over indices that have already been read in an effort to determine whether\nany data has subsequently been added to the index. If missing data is found, it is a good indication that the\n`query_delay` is set too low and the data is being indexed after the datafeed has passed that moment in time.\nThis check runs only on real-time datafeeds.", "name": "delayed_data_check_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" } } }, { "description": "The interval at which scheduled queries are made while the datafeed runs in real time.\nThe default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible\nfraction of the bucket span. When `frequency` is shorter than the bucket span, interim results for the last\n(partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses\naggregations, this value must be divisible by the interval of the date histogram aggregation.", "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "aliases": [ "indexes" ], "description": "An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master\nnodes and the machine learning nodes must have the `remote_cluster_client` role.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "Specifies index expansion options that are used during search", "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } }, { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If a real-time datafeed has never seen any data (including during any initial training period), it automatically\nstops and closes the associated job after this many real-time searches return no documents. In other words,\nit stops after `frequency` times `max_empty_searches` of real-time operation. If not set, a datafeed with no\nend time that sees no data remains started until it is explicitly stopped. By default, it is not set.", "name": "max_empty_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an\nElasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this\nobject is passed verbatim to Elasticsearch.", "name": "query", "required": false, "serverDefault": "{\"match_all\": {\"boost\": 1}}", "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might\nnot be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default\nvalue is randomly selected between `60s` and `120s`. This randomness improves the query performance\nwhen there are multiple jobs running on the same node.", "name": "query_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies runtime fields for the datafeed search.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "Specifies scripts that evaluate custom expressions and returns script fields to the datafeed.\nThe detector configuration objects in a job can contain functions that use these script fields.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "description": "The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations.\nThe maximum value is the value of `index.max_result_window`, which is 10,000 by default.", "name": "scroll_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "headers", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpHeaders", "namespace": "_types" } } } ] }, "description": "Create a datafeed.\nDatafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job.\nYou can associate only one datafeed with each anomaly detection job.\nThe datafeed contains a query that runs at a defined interval (`frequency`).\nIf you are concerned about delayed data, you can add a delay (`query_delay') at each interval.\nBy default, the datafeed uses the following query: `{\"match_all\": {\"boost\": 1}}`.\n\nWhen Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had\nat the time of creation and runs the query using those same roles. If you provide secondary authorization headers,\nthose credentials are used instead.\nYou must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed\ndirectly to the `.ml-config` index. Do not give users `write` privileges on the `.ml-config` index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_datafeed" }, "path": [ { "description": "A numerical character string that uniquely identifies the datafeed.\nThis identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.\nIt must start and end with alphanumeric characters.", "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the `_all`\nstring or when no indices are specified.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target data streams, this argument determines\nwhether wildcard expressions match hidden data streams. Supports comma-separated values.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If true, concrete, expanded, or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, unavailable indices (missing or closed) are ignored.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedAuthorization", "namespace": "ml._types" } } }, { "name": "chunking_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "ChunkingConfig", "namespace": "ml._types" } } }, { "name": "delayed_data_check_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" } } }, { "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } }, { "name": "max_empty_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "query_delay", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "name": "scroll_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.put_datafeed" }, "specLocation": "ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A description of the filter.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The items of the filter. A wildcard `*` can be used at the beginning or the end of an item.\nUp to 10000 items are allowed in each filter.", "name": "items", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Create a filter.\nA filter contains a list of strings. It can be used by one or more anomaly detection jobs.\nSpecifically, filters are referenced in the `custom_rules` property of detector configuration objects.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_filter" }, "path": [ { "description": "A string that uniquely identifies a filter.", "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/put_filter/MlPutFilterRequest.ts#L23-L58" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "items", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "name": { "name": "Response", "namespace": "ml.put_filter" }, "specLocation": "ml/put_filter/MlPutFilterResponse.ts#L22-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. By default, if a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-wide `xpack.ml.max_lazy_ml_nodes` setting. If this option is set to true, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available.", "name": "allow_lazy_open", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational.", "name": "analysis_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfig", "namespace": "ml._types" } } }, { "description": "Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes.", "name": "analysis_limits", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisLimits", "namespace": "ml._types" } } }, { "description": "Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set the `background_persist_interval` value too low.", "name": "background_persist_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Advanced configuration option. Contains custom meta data about the job.", "name": "custom_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "CustomSettings", "namespace": "ml._types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies a period of time (in days) after which only the first snapshot per day is retained. This period is relative to the timestamp of the most recent snapshot for this job. Valid values range from 0 to `model_snapshot_retention_days`.", "name": "daily_model_snapshot_retention_after_days", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained.", "name": "data_description", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataDescription", "namespace": "ml._types" } } }, { "description": "Defines a datafeed for the anomaly detection job. If Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead.", "name": "datafeed_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedConfig", "namespace": "ml._types" } } }, { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.", "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A list of job groups. A job can belong to no groups or many.", "name": "groups", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced.", "name": "model_plot_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies the maximum period of time (in days) that snapshots are retained. This period is relative to the timestamp of the most recent snapshot for this job. By default, snapshots ten days older than the newest snapshot are deleted.", "name": "model_snapshot_retention_days", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen. The default value is the longer of 30 days or 100 bucket spans.", "name": "renormalization_window_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A text string that affects the name of the machine learning results index. By default, the job generates an index named `.ml-anomalies-shared`.", "name": "results_index_name", "required": false, "serverDefault": "shared", "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained. Annotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results. Annotations added by users are retained forever.", "name": "results_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "description": "Create an anomaly detection job.\n\nIf you include a `datafeed_config`, you must have read index privileges on the source index.\nIf you include a `datafeed_config` but do not provide a query, the datafeed uses `{\"match_all\": {\"boost\": 1}}`.", "examples": { "MlPutJobRequestExample1": { "description": "A request to create an anomaly detection job and datafeed.", "value": "{\n \"analysis_config\": {\n \"bucket_span\": \"15m\",\n \"detectors\": [\n {\n \"detector_description\": \"Sum of bytes\",\n \"function\": \"sum\",\n \"field_name\": \"bytes\"\n }\n ]\n },\n \"data_description\": {\n \"time_field\": \"timestamp\",\n \"time_format\": \"epoch_ms\"\n },\n \"analysis_limits\": {\n \"model_memory_limit\": \"11MB\"\n },\n \"model_plot_config\": {\n \"enabled\": true,\n \"annotations_enabled\": true\n },\n \"results_index_name\": \"test-job1\",\n \"datafeed_config\": {\n \"indices\": [\n \"kibana_sample_data_logs\"\n ],\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"match_all\": {}\n }\n ]\n }\n },\n \"runtime_mappings\": {\n \"hour_of_day\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['timestamp'].value.getHour());\"\n }\n }\n },\n \"datafeed_id\": \"datafeed-test-job1\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_job" }, "path": [ { "description": "The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the\n`_all` string or when no indices are specified.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target data streams, this argument determines\nwhether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:\n\n* `all`: Match any data stream or index, including hidden ones.\n* `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.\n* `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or both.\n* `none`: Wildcard patterns are not accepted.\n* `open`: Match open, non-hidden indices. Also matches any non-hidden data stream.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If `true`, concrete, expanded or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, unavailable indices (missing or closed) are ignored.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/put_job/MlPutJobRequest.ts#L30-L157" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "allow_lazy_open", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analysis_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfigRead", "namespace": "ml._types" } } }, { "name": "analysis_limits", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisLimits", "namespace": "ml._types" } } }, { "name": "background_persist_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "create_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "custom_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "CustomSettings", "namespace": "ml._types" } } }, { "name": "daily_model_snapshot_retention_after_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "data_description", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataDescription", "namespace": "ml._types" } } }, { "name": "datafeed_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "Datafeed", "namespace": "ml._types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "groups", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "job_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "job_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_plot_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "name": "model_snapshot_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "model_snapshot_retention_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "renormalization_window_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results_index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "results_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "examples": { "MlPutJobResponseExample1": { "description": "A successful response when creating an anomaly detection job and datafeed.", "value": "{\n \"job_id\": \"test-job1\",\n \"job_type\": \"anomaly_detector\",\n \"job_version\": \"8.4.0\",\n \"create_time\": 1656087283340,\n \"datafeed_config\": {\n \"datafeed_id\": \"datafeed-test-job1\",\n \"job_id\": \"test-job1\",\n \"authorization\": {\n \"roles\": [\n \"superuser\"\n ]\n },\n \"query_delay\": \"61499ms\",\n \"chunking_config\": {\n \"mode\": \"auto\"\n },\n \"indices_options\": {\n \"expand_wildcards\": [\n \"open\"\n ],\n \"ignore_unavailable\": false,\n \"allow_no_indices\": true,\n \"ignore_throttled\": true\n },\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"match_all\": {}\n }\n ]\n }\n },\n \"indices\": [\n \"kibana_sample_data_logs\"\n ],\n \"scroll_size\": 1000,\n \"delayed_data_check_config\": {\n \"enabled\": true\n },\n \"runtime_mappings\": {\n \"hour_of_day\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['timestamp'].value.getHour());\"\n }\n }\n }\n },\n \"analysis_config\": {\n \"bucket_span\": \"15m\",\n \"detectors\": [\n {\n \"detector_description\": \"Sum of bytes\",\n \"function\": \"sum\",\n \"field_name\": \"bytes\",\n \"detector_index\": 0\n }\n ],\n \"influencers\": [],\n \"model_prune_window\": \"30d\"\n },\n \"analysis_limits\": {\n \"model_memory_limit\": \"11mb\",\n \"categorization_examples_limit\": 4\n },\n \"data_description\": {\n \"time_field\": \"timestamp\",\n \"time_format\": \"epoch_ms\"\n },\n \"model_plot_config\": {\n \"enabled\": true,\n \"annotations_enabled\": true\n },\n \"model_snapshot_retention_days\": 10,\n \"daily_model_snapshot_retention_after_days\": 1,\n \"results_index_name\": \"custom-test-job1\",\n \"allow_lazy_open\": false\n}" } }, "name": { "name": "Response", "namespace": "ml.put_job" }, "specLocation": "ml/put_job/MlPutJobResponse.ts#L29-L52" }, { "kind": "interface", "name": { "name": "AggregateOutput", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "logistic_regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "Weights", "namespace": "ml.put_trained_model" } } }, { "name": "weighted_sum", "required": false, "type": { "kind": "instance_of", "type": { "name": "Weights", "namespace": "ml.put_trained_model" } } }, { "name": "weighted_mode", "required": false, "type": { "kind": "instance_of", "type": { "name": "Weights", "namespace": "ml.put_trained_model" } } }, { "name": "exponent", "required": false, "type": { "kind": "instance_of", "type": { "name": "Weights", "namespace": "ml.put_trained_model" } } } ], "specLocation": "ml/put_trained_model/types.ts#L101-L106" }, { "kind": "interface", "name": { "name": "Definition", "namespace": "ml.put_trained_model" }, "properties": [ { "description": "Collection of preprocessors", "name": "preprocessors", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Preprocessor", "namespace": "ml.put_trained_model" } } } }, { "description": "The definition of the trained model.", "name": "trained_model", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModel", "namespace": "ml.put_trained_model" } } } ], "specLocation": "ml/put_trained_model/types.ts#L24-L29" }, { "kind": "interface", "name": { "name": "Ensemble", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "aggregate_output", "required": false, "type": { "kind": "instance_of", "type": { "name": "AggregateOutput", "namespace": "ml.put_trained_model" } } }, { "name": "classification_labels", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "feature_names", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "target_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "trained_models", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModel", "namespace": "ml.put_trained_model" } } } } ], "specLocation": "ml/put_trained_model/types.ts#L93-L99" }, { "kind": "interface", "name": { "name": "FrequencyEncodingPreprocessor", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "frequency_map", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "ml/put_trained_model/types.ts#L38-L42" }, { "kind": "interface", "name": { "name": "Input", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "field_names", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "specLocation": "ml/put_trained_model/types.ts#L56-L58" }, { "kind": "interface", "name": { "name": "OneHotEncodingPreprocessor", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "hot_map", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "ml/put_trained_model/types.ts#L44-L47" }, { "kind": "interface", "name": { "name": "Preprocessor", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "frequency_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "FrequencyEncodingPreprocessor", "namespace": "ml.put_trained_model" } } }, { "name": "one_hot_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "OneHotEncodingPreprocessor", "namespace": "ml.put_trained_model" } } }, { "name": "target_mean_encoding", "required": false, "type": { "kind": "instance_of", "type": { "name": "TargetMeanEncodingPreprocessor", "namespace": "ml.put_trained_model" } } } ], "specLocation": "ml/put_trained_model/types.ts#L31-L36", "variants": { "kind": "container" } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The compressed (GZipped and Base64 encoded) inference definition of the\nmodel. If compressed_definition is specified, then definition cannot be\nspecified.", "name": "compressed_definition", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The inference definition for the model. If definition is specified, then\ncompressed_definition cannot be specified.", "name": "definition", "required": false, "type": { "kind": "instance_of", "type": { "name": "Definition", "namespace": "ml.put_trained_model" } } }, { "description": "A human-readable description of the inference trained model.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The default configuration for inference. This can be either a regression\nor classification configuration. It must match the underlying\ndefinition.trained_model's target_type. For pre-packaged models such as\nELSER the config is not required.", "name": "inference_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "InferenceConfigCreateContainer", "namespace": "ml._types" } } }, { "description": "The input field names for the model definition.", "name": "input", "required": false, "type": { "kind": "instance_of", "type": { "name": "Input", "namespace": "ml.put_trained_model" } } }, { "description": "An object map that contains metadata about the model.", "name": "metadata", "required": false, "type": { "kind": "user_defined_value" } }, { "description": "The model type.", "name": "model_type", "required": false, "serverDefault": "tree_ensemble", "type": { "kind": "instance_of", "type": { "name": "TrainedModelType", "namespace": "ml._types" } } }, { "description": "The estimated memory usage in bytes to keep the trained model in memory.\nThis property is supported only if defer_definition_decompression is true\nor the model definition is not supplied.", "name": "model_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The platform architecture (if applicable) of the trained mode. If the model\nonly works on one platform, because it is heavily optimized for a particular\nprocessor architecture and OS combination, then this field specifies which.\nThe format of the string must match the platform identifiers used by Elasticsearch,\nso one of, `linux-x86_64`, `linux-aarch64`, `darwin-x86_64`, `darwin-aarch64`,\nor `windows-x86_64`. For portable models (those that work independent of processor\narchitecture or OS features), leave this field unset.", "name": "platform_architecture", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "An array of tags to organize the model.", "name": "tags", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.12.0" } }, "description": "Optional prefix strings applied at inference", "name": "prefix_strings", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelPrefixStrings", "namespace": "ml._types" } } } ] }, "description": "Create a trained model.\nEnable you to supply a trained model that is not created by data frame analytics.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_trained_model" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "description": "If set to `true` and a `compressed_definition` is provided,\nthe request defers definition decompression and skips relevant\nvalidations.", "name": "defer_definition_decompression", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.8.0" } }, "description": "Whether to wait for all child operations (e.g. model download)\nto complete.", "name": "wait_for_completion", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L135" }, { "kind": "response", "body": { "kind": "value", "codegenName": "trained_model_config", "value": { "kind": "instance_of", "type": { "name": "TrainedModelConfig", "namespace": "ml._types" } } }, "name": { "name": "Response", "namespace": "ml.put_trained_model" }, "specLocation": "ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "TargetMeanEncodingPreprocessor", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "target_map", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } }, { "name": "default_value", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/put_trained_model/types.ts#L49-L54" }, { "kind": "interface", "name": { "name": "TrainedModel", "namespace": "ml.put_trained_model" }, "properties": [ { "description": "The definition for a binary decision tree.", "name": "tree", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelTree", "namespace": "ml.put_trained_model" } } }, { "description": "The definition of a node in a tree.\nThere are two major types of nodes: leaf nodes and not-leaf nodes.\n- Leaf nodes only need node_index and leaf_value defined.\n- All other nodes need split_feature, left_child, right_child, threshold, decision_type, and default_left defined.", "name": "tree_node", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainedModelTreeNode", "namespace": "ml.put_trained_model" } } }, { "description": "The definition for an ensemble model", "name": "ensemble", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ensemble", "namespace": "ml.put_trained_model" } } } ], "specLocation": "ml/put_trained_model/types.ts#L60-L72" }, { "kind": "interface", "name": { "name": "TrainedModelTree", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "classification_labels", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "feature_names", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "target_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "tree_structure", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TrainedModelTreeNode", "namespace": "ml.put_trained_model" } } } } ], "specLocation": "ml/put_trained_model/types.ts#L74-L79" }, { "kind": "interface", "name": { "name": "TrainedModelTreeNode", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "decision_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "default_left", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "leaf_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "left_child", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "node_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "right_child", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "split_feature", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "split_gain", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "threshold", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/put_trained_model/types.ts#L81-L91" }, { "kind": "interface", "name": { "name": "Weights", "namespace": "ml.put_trained_model" }, "properties": [ { "name": "weights", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "ml/put_trained_model/types.ts#L108-L110" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Create or update a trained model alias.\nA trained model alias is a logical name used to reference a single trained\nmodel.\nYou can use aliases instead of trained model identifiers to make it easier to\nreference your models. For example, you can use aliases in inference\naggregations and processors.\nAn alias must be unique and refer to only a single trained model. However,\nyou can have multiple aliases for each trained model.\nIf you use this API to update an alias such that it references a different\ntrained model ID and the model uses a different type of data frame analytics,\nan error occurs. For example, this situation occurs if you have a trained\nmodel for regression analysis and a trained model for classification\nanalysis; you cannot reassign an alias from one type of trained model to\nanother.\nIf you use this API to update an alias and there are very few input fields in\ncommon between the old and new trained models for the model alias, the API\nreturns a warning.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_trained_model_alias" }, "path": [ { "description": "The alias to create or update. This value cannot end in numbers.", "name": "model_alias", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The identifier for the trained model that the alias refers to.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies whether the alias gets reassigned to the specified trained\nmodel if it is already assigned to a different model. If the alias is\nalready assigned and this parameter is false, the API returns an error.", "name": "reassign", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/put_trained_model_alias/MlPutTrainedModelAliasRequest.ts#L23-L74" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.put_trained_model_alias" }, "specLocation": "ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The definition part for the model. Must be a base64 encoded string.", "name": "definition", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total uncompressed definition length in bytes. Not base64 encoded.", "name": "total_definition_length", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of parts that will be uploaded. Must be greater than 0.", "name": "total_parts", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Create part of a trained model definition.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_trained_model_definition_part" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The definition part number. When the definition is loaded for inference the definition parts are streamed in the\norder of their part number. The first part must be `0` and the final part must be `total_parts - 1`.", "name": "part", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.put_trained_model_definition_part" }, "specLocation": "ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The model vocabulary, which must not be empty.", "name": "vocabulary", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.2.0" } }, "description": "The optional model merges if required by the tokenizer.", "name": "merges", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.9.0" } }, "description": "The optional vocabulary value scores if required by the tokenizer.", "name": "scores", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ] }, "description": "Create a trained model vocabulary.\nThis API is supported only for natural language processing (NLP) models.\nThe vocabulary is stored in the index as described in `inference_config.*.vocabulary` of the trained model definition.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.put_trained_model_vocabulary" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.put_trained_model_vocabulary" }, "specLocation": "ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Reset an anomaly detection job.\nAll model state and results are deleted. The job is ready to start over as if\nit had just been created.\nIt is not currently possible to reset multiple jobs using wildcards or a\ncomma separated list.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.reset_job" }, "path": [ { "description": "The ID of the job to reset.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Should this request wait until the operation has completed before\nreturning.", "name": "wait_for_completion", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether annotations that have been added by the\nuser should be deleted along with any auto-generated annotations when the job is\nreset.", "name": "delete_user_annotations", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/reset_job/MlResetJobRequest.ts#L23-L65" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.reset_job" }, "specLocation": "ml/reset_job/MlResetJobResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `delete_intervening_results` query parameter.", "name": "delete_intervening_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Revert to a snapshot.\nThe machine learning features react quickly to anomalous input, learning new\nbehaviors in data. Highly anomalous input increases the variance in the\nmodels whilst the system learns whether this is a new step-change in behavior\nor a one-off event. In the case where this anomalous input is known to be a\none-off, then it might be appropriate to reset the model state to a time\nbefore this event. For example, you might consider reverting to a saved\nsnapshot after Black Friday or a critical system failure.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.revert_model_snapshot" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "You can specify `empty` as the . Reverting to the empty\nsnapshot means the anomaly detection job starts learning a new model from\nscratch when it is started.", "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If true, deletes the results in the time period between the latest\nresults and the time of the reverted snapshot. It also resets the model\nto accept records for this time period. If you choose not to delete\nintervening results when reverting a snapshot, the job will not accept\ninput data that is older than the current time. If you want to resend\ndata, then delete the intervening results.", "name": "delete_intervening_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "model", "required": true, "type": { "kind": "instance_of", "type": { "name": "ModelSnapshot", "namespace": "ml._types" } } } ] }, "name": { "name": "Response", "namespace": "ml.revert_model_snapshot" }, "specLocation": "ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Set upgrade_mode for ML indices.\nSets a cluster wide upgrade_mode setting that prepares machine learning\nindices for an upgrade.\nWhen upgrading your cluster, in some circumstances you must restart your\nnodes and reindex your machine learning indices. In those circumstances,\nthere must be no machine learning jobs running. You can close the machine\nlearning jobs, do the upgrade, then open all the jobs again. Alternatively,\nyou can use this API to temporarily halt tasks associated with the jobs and\ndatafeeds and prevent new jobs from opening. You can also use this API\nduring upgrades that do not require you to reindex your machine learning\nindices, though stopping jobs is not a requirement in that case.\nYou can see the current value for the upgrade_mode setting by using the get\nmachine learning info API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.set_upgrade_mode" }, "path": [], "query": [ { "description": "When `true`, it enables `upgrade_mode` which temporarily halts all job\nand datafeed tasks and prohibits new job and datafeed tasks from\nstarting.", "name": "enabled", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The time to wait for the request to be completed.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/set_upgrade_mode/MlSetUpgradeModeRequest.ts#L23-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.set_upgrade_mode" }, "specLocation": "ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start a data frame analytics job.\nA data frame analytics job can be started and stopped multiple times\nthroughout its lifecycle.\nIf the destination index does not exist, it is created automatically the\nfirst time you start the data frame analytics job. The\n`index.number_of_shards` and `index.number_of_replicas` settings for the\ndestination index are copied from the source index. If there are multiple\nsource indices, the destination index copies the highest setting values. The\nmappings for the destination index are also copied from the source indices.\nIf there are any mapping conflicts, the job fails to start.\nIf the destination index exists, it is used as is. You can therefore set up\nthe destination index in advance with custom settings and mappings.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.start_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job. This identifier can contain\nlowercase alphanumeric characters (a-z and 0-9), hyphens, and\nunderscores. It must start and end with alphanumeric characters.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Controls the amount of time to wait until the data frame analytics job\nstarts.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/start_data_frame_analytics/MlStartDataFrameAnalyticsRequest.ts#L24-L68" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The ID of the node that the job was started on. If the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string.\nThe node ID of the node the job has been assigned to, or\nan empty string if it hasn't been assigned to a node. In\nserverless if the job has been assigned to run then the\nnode ID will be \"serverless\".", "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.start_data_frame_analytics" }, "specLocation": "ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `end` query parameter.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `start` query parameter.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Refer to the description for the `timeout` query parameter.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Start datafeeds.\n\nA datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped\nmultiple times throughout its lifecycle.\n\nBefore you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs.\n\nIf you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped.\nIf new data was indexed for that exact millisecond between stopping and starting, it will be ignored.\n\nWhen Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or\nupdate it had at the time of creation or update and runs the query using those same roles. If you provided secondary\nauthorization headers when you created or updated the datafeed, those credentials are used instead.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.start_datafeed" }, "path": [ { "description": "A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase\nalphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric\ncharacters.", "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The time that the datafeed should end, which can be specified by using one of the following formats:\n\n* ISO 8601 format with milliseconds, for example `2017-01-22T06:00:00.000Z`\n* ISO 8601 format without milliseconds, for example `2017-01-22T06:00:00+00:00`\n* Milliseconds since the epoch, for example `1485061200000`\n\nDate-time arguments using either of the ISO 8601 formats must have a time zone designator, where `Z` is accepted\nas an abbreviation for UTC time. When a URL is expected (for example, in browsers), the `+` used in time zone\ndesignators must be encoded as `%2B`.\nThe end time value is exclusive. If you do not specify an end time, the datafeed\nruns continuously.", "name": "end", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The time that the datafeed should begin, which can be specified by using the same formats as the `end` parameter.\nThis value is inclusive.\nIf you do not specify a start time and the datafeed is associated with a new anomaly detection job, the analysis\nstarts from the earliest time for which data is available.\nIf you restart a stopped datafeed and specify a start value that is earlier than the timestamp of the latest\nprocessed record, the datafeed continues from 1 millisecond after the timestamp of the latest processed record.", "name": "start", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Specifies the amount of time to wait until a datafeed starts.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The ID of the node that the job was started on. In serverless this will be the \"serverless\".\nIf the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string.", "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } }, { "description": "For a successful response, this value is always `true`. On failure, an exception is returned instead.", "name": "started", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "ml.start_datafeed" }, "specLocation": "ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Adaptive allocations configuration. When enabled, the number of allocations\nis set based on the current load.\nIf adaptive_allocations is enabled, do not set the number of allocations manually.", "name": "adaptive_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "AdaptiveAllocationsSettings", "namespace": "ml._types" } } } ] }, "description": "Start a trained model deployment.\nIt allocates the model to every machine learning node.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.start_trained_model_deployment" }, "path": [ { "description": "The unique identifier of the trained model. Currently, only PyTorch models are supported.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The inference cache size (in memory outside the JVM heap) per node for the model.\nThe default value is the same size as the `model_size_bytes`. To disable the cache,\n`0b` can be provided.", "name": "cache_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "availability": { "stack": { "since": "8.8.0" } }, "description": "A unique identifier for the deployment of the model.", "name": "deployment_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of model allocations on each node where the model is deployed.\nAll allocations on a node share the same copy of the model in memory but use\na separate set of threads to evaluate the model.\nIncreasing this value generally increases the throughput.\nIf this setting is greater than the number of hardware threads\nit will automatically be changed to a value less than the number of hardware threads.\nIf adaptive_allocations is enabled, do not set this value, because it’s automatically set.", "name": "number_of_allocations", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The deployment priority.", "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "TrainingPriority", "namespace": "ml._types" } } }, { "description": "Specifies the number of inference requests that are allowed in the queue. After the number of requests exceeds\nthis value, new requests are rejected with a 429 error.", "name": "queue_capacity", "required": false, "serverDefault": 1024, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Sets the number of threads used by each model allocation during inference. This generally increases\nthe inference speed. The inference process is a compute-bound process; any number\ngreater than the number of available hardware threads on the machine does not increase the\ninference speed. If this setting is greater than the number of hardware threads\nit will automatically be changed to a value less than the number of hardware threads.", "name": "threads_per_allocation", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the amount of time to wait for the model to deploy.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies the allocation status to wait for before returning.", "name": "wait_for", "required": false, "serverDefault": "started", "type": { "kind": "instance_of", "type": { "name": "DeploymentAllocationState", "namespace": "ml._types" } } } ], "specLocation": "ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L111" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "assignment", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelAssignment", "namespace": "ml._types" } } } ] }, "name": { "name": "Response", "namespace": "ml.start_trained_model_deployment" }, "specLocation": "ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop data frame analytics jobs.\nA data frame analytics job can be started and stopped multiple times\nthroughout its lifecycle.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.stop_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job. This identifier can contain\nlowercase alphanumeric characters (a-z and 0-9), hyphens, and\nunderscores. It must start and end with alphanumeric characters.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n1. Contains wildcard expressions and there are no data frame analytics\njobs 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\nThe default value is true, which returns an empty data_frame_analytics\narray when there are no matches and the subset of results when there are\npartial matches. If this parameter is false, the request returns a 404\nstatus code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the data frame analytics job is stopped forcefully.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls the amount of time to wait until the data frame analytics job\nstops. Defaults to 20 seconds.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsRequest.ts#L24-L78" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "stopped", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "ml.stop_data_frame_analytics" }, "specLocation": "ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Refer to the description for the `allow_no_match` query parameter.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `force` query parameter.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refer to the description for the `timeout` query parameter.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Stop datafeeds.\nA datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped\nmultiple times throughout its lifecycle.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.stop_datafeed" }, "path": [ { "description": "Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated\nlist of datafeeds or a wildcard expression. You can close all datafeeds by using `_all` or by specifying `*` as\nthe identifier.", "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request:\n\n* Contains wildcard expressions and there are no datafeeds that match.\n* Contains the `_all` string or no identifiers and there are no matches.\n* Contains wildcard expressions and there are only partial matches.\n\nIf `true`, the API returns an empty datafeeds array when there are no matches and the subset of results when\nthere are partial matches. If `false`, the API returns a 404 status code when there are no matches or only\npartial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the datafeed is stopped forcefully.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies the amount of time to wait until a datafeed stops.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "stopped", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "ml.stop_datafeed" }, "specLocation": "ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop a trained model deployment.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.stop_trained_model_deployment" }, "path": [ { "description": "The unique identifier of the trained model.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Specifies what to do when the request: contains wildcard expressions and there are no deployments that match;\ncontains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and\nthere are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches.\nIf `false`, the request returns a 404 status code when there are no matches or only partial matches.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you\nrestart the model deployment.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentRequest.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "stopped", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "ml.stop_trained_model_deployment" }, "specLocation": "ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The approximate maximum amount of memory resources that are permitted for\nanalytical processing. If your `elasticsearch.yml` file contains an\n`xpack.ml.max_model_memory_limit` setting, an error occurs when you try\nto create data frame analytics jobs that have `model_memory_limit` values\ngreater than that setting.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "model_memory_limit", "required": false, "serverDefault": "1gb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of threads to be used by the analysis. Using more\nthreads may decrease the time necessary to complete the analysis at the\ncost of using more CPU. Note that the process may use additional threads\nfor operational functionality other than the analysis itself.", "name": "max_num_threads", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies whether this job can start when there is insufficient machine\nlearning node capacity for it to be immediately assigned to a node.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "allow_lazy_start", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Update a data frame analytics job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.update_data_frame_analytics" }, "path": [ { "description": "Identifier for the data frame analytics job. This identifier can contain\nlowercase alphanumeric characters (a-z and 0-9), hyphens, and\nunderscores. It must start and end with alphanumeric characters.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsAuthorization", "namespace": "ml._types" } } }, { "name": "allow_lazy_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analysis", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisContainer", "namespace": "ml._types" } } }, { "name": "analyzed_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalysisAnalyzedFields", "namespace": "ml._types" } } }, { "name": "create_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsDestination", "namespace": "ml._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max_num_threads", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "model_memory_limit", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataframeAnalyticsSource", "namespace": "ml._types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.update_data_frame_analytics" }, "specLocation": "ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only\nwith low cardinality data.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Datafeeds might search over long time periods, for several months or years. This search is split into time\nchunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of\nthese time chunks are calculated; it is an advanced configuration option.", "name": "chunking_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChunkingConfig", "namespace": "ml._types" } } }, { "description": "Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally\nsearch over indices that have already been read in an effort to determine whether any data has subsequently been\nadded to the index. If missing data is found, it is a good indication that the `query_delay` is set too low and\nthe data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time\ndatafeeds.", "name": "delayed_data_check_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" } } }, { "description": "The interval at which scheduled queries are made while the datafeed runs in real time. The default value is\neither the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket\nspan. When `frequency` is shorter than the bucket span, interim results for the last (partial) bucket are\nwritten then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value\nmust be divisible by the interval of the date histogram aggregation.", "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "aliases": [ "indexes" ], "description": "An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine\nlearning nodes must have the `remote_cluster_client` role.", "name": "indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Specifies index expansion options that are used during search.", "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } }, { "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If a real-time datafeed has never seen any data (including during any initial training period), it automatically\nstops and closes the associated job after this many real-time searches return no documents. In other words,\nit stops after `frequency` times `max_empty_searches` of real-time operation. If not set, a datafeed with no\nend time that sees no data remains started until it is explicitly stopped. By default, it is not set.", "name": "max_empty_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an\nElasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this\nobject is passed verbatim to Elasticsearch. Note that if you change the query, the analyzed data is also\nchanged. Therefore, the time required to learn might be long and the understandability of the results is\nunpredictable. If you want to make significant changes to the source data, it is recommended that you\nclone the job and datafeed and make the amendments in the clone. Let both run in parallel and close one\nwhen you are satisfied with the results of the job.", "name": "query", "required": false, "serverDefault": "{\"match_all\": {\"boost\": 1}}", "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might\nnot be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default\nvalue is randomly selected between `60s` and `120s`. This randomness improves the query performance\nwhen there are multiple jobs running on the same node.", "name": "query_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Specifies runtime fields for the datafeed search.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "Specifies scripts that evaluate custom expressions and returns script fields to the datafeed.\nThe detector configuration objects in a job can contain functions that use these script fields.", "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "description": "The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations.\nThe maximum value is the value of `index.max_result_window`.", "name": "scroll_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Update a datafeed.\nYou must stop and start the datafeed for the changes to be applied.\nWhen Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at\nthe time of the update and runs the query using those same roles. If you provide secondary authorization headers,\nthose credentials are used instead.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.update_datafeed" }, "path": [ { "description": "A numerical character string that uniquely identifies the datafeed.\nThis identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores.\nIt must start and end with alphanumeric characters.", "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the\n`_all` string or when no indices are specified.", "name": "allow_no_indices", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Type of index that wildcard patterns can match. If the request can target data streams, this argument determines\nwhether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:\n\n* `all`: Match any data stream or index, including hidden ones.\n* `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.\n* `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or both.\n* `none`: Wildcard patterns are not accepted.\n* `open`: Match open, non-hidden indices. Also matches any non-hidden data stream.", "name": "expand_wildcards", "required": false, "serverDefault": "open", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "deprecation": { "description": "", "version": "7.16.0" }, "description": "If `true`, concrete, expanded or aliased indices are ignored when frozen.", "name": "ignore_throttled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, unavailable indices (missing or closed) are ignored.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L170" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "DatafeedAuthorization", "namespace": "ml._types" } } }, { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "name": "chunking_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "ChunkingConfig", "namespace": "ml._types" } } }, { "name": "delayed_data_check_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "DelayedDataCheckConfig", "namespace": "ml._types" } } }, { "name": "datafeed_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "max_empty_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "query_delay", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "name": "script_fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ScriptField", "namespace": "_types" } } } }, { "name": "scroll_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.update_datafeed" }, "specLocation": "ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The items to add to the filter.", "name": "add_items", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A description for the filter.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The items to remove from the filter.", "name": "remove_items", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Update a filter.\nUpdates the description of a filter, adds items, or removes items from the list.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.update_filter" }, "path": [ { "description": "A string that uniquely identifies a filter.", "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/update_filter/MlUpdateFilterRequest.ts#L23-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "filter_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "items", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "name": { "name": "Response", "namespace": "ml.update_filter" }, "specLocation": "ml/update_filter/MlUpdateFilterResponse.ts#L22-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Advanced configuration option. Specifies whether this job can open when\nthere is insufficient machine learning node capacity for it to be\nimmediately assigned to a node. If `false` and a machine learning node\nwith capacity to run the job cannot immediately be found, the open\nanomaly detection jobs API returns an error. However, this is also\nsubject to the cluster-wide `xpack.ml.max_lazy_ml_nodes` setting. If this\noption is set to `true`, the open anomaly detection jobs API does not\nreturn an error and the job waits in the opening state until sufficient\nmachine learning node capacity is available.", "docId": "ml-settings", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/machine-learning-settings", "name": "allow_lazy_open", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analysis_limits", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisMemoryLimit", "namespace": "ml._types" } } }, { "description": "Advanced configuration option. The time between each periodic persistence\nof the model.\nThe default value is a randomized value between 3 to 4 hours, which\navoids all jobs persisting at exactly the same time. The smallest allowed\nvalue is 1 hour.\nFor very large models (several GB), persistence could take 10-20 minutes,\nso do not set the value too low.\nIf the job is open when you make the update, you must stop the datafeed,\nclose the job, then reopen the job and restart the datafeed for the\nchanges to take effect.", "name": "background_persist_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Advanced configuration option. Contains custom meta data about the job.\nFor example, it can contain custom URL information as shown in Adding\ncustom URLs to machine learning results.", "docId": "ml.customUrls", "name": "custom_settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "categorization_filters", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A description of the job.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_plot_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "name": "model_prune_window", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old\nmodel snapshots for this job. It specifies a period of time (in days)\nafter which only the first snapshot per day is retained. This period is\nrelative to the timestamp of the most recent snapshot for this job. Valid\nvalues range from 0 to `model_snapshot_retention_days`. For jobs created\nbefore version 7.8.0, the default value matches\n`model_snapshot_retention_days`.", "docId": "ml-model-snapshots", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/anomaly-detection/ml-ad-run-jobs#ml-ad-model-snapshots", "name": "daily_model_snapshot_retention_after_days", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Advanced configuration option, which affects the automatic removal of old\nmodel snapshots for this job. It specifies the maximum period of time (in\ndays) that snapshots are retained. This period is relative to the\ntimestamp of the most recent snapshot for this job.", "docId": "ml-model-snapshots", "docUrl": "https://www.elastic.co/docs/explore-analyze/machine-learning/anomaly-detection/ml-ad-run-jobs#ml-ad-model-snapshots", "name": "model_snapshot_retention_days", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Advanced configuration option. The period over which adjustments to the\nscore are applied, as new data is seen.", "name": "renormalization_window_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Advanced configuration option. The period of time (in days) that results\nare retained. Age is calculated relative to the timestamp of the latest\nbucket result. If this property has a non-null value, once per day at\n00:30 (server time), results that are the specified number of days older\nthan the latest bucket result are deleted from Elasticsearch. The default\nvalue is null, which means all results are retained.", "name": "results_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A list of job groups. A job can belong to no groups or many.", "name": "groups", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "An array of detector update objects.", "name": "detectors", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DetectorUpdate", "namespace": "ml._types" } } } }, { "description": "Settings related to how categorization interacts with partition fields.", "name": "per_partition_categorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "PerPartitionCategorization", "namespace": "ml._types" } } } ] }, "description": "Update an anomaly detection job.\nUpdates certain properties of an anomaly detection job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.update_job" }, "path": [ { "description": "Identifier for the job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/update_job/MlUpdateJobRequest.ts#L33-L147" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "allow_lazy_open", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "analysis_config", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfigRead", "namespace": "ml._types" } } }, { "name": "analysis_limits", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalysisLimits", "namespace": "ml._types" } } }, { "name": "background_persist_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "create_time", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "finished_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "custom_settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "daily_model_snapshot_retention_after_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "data_description", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataDescription", "namespace": "ml._types" } } }, { "name": "datafeed_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "Datafeed", "namespace": "ml._types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "groups", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "job_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "job_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "model_plot_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "name": "model_snapshot_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "model_snapshot_retention_days", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "renormalization_window_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results_index_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "results_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "ml.update_job" }, "specLocation": "ml/update_job/MlUpdateJobResponse.ts#L29-L53" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A description of the model snapshot.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, this snapshot will not be deleted during automatic cleanup of\nsnapshots older than `model_snapshot_retention_days`. However, this\nsnapshot will be deleted when the job is deleted.", "name": "retain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Update a snapshot.\nUpdates certain properties of a snapshot.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.update_model_snapshot" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Identifier for the model snapshot.", "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "model", "required": true, "type": { "kind": "instance_of", "type": { "name": "ModelSnapshot", "namespace": "ml._types" } } } ] }, "name": { "name": "Response", "namespace": "ml.update_model_snapshot" }, "specLocation": "ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The number of model allocations on each node where the model is deployed.\nAll allocations on a node share the same copy of the model in memory but use\na separate set of threads to evaluate the model.\nIncreasing this value generally increases the throughput.\nIf this setting is greater than the number of hardware threads\nit will automatically be changed to a value less than the number of hardware threads.\nIf adaptive_allocations is enabled, do not set this value, because it’s automatically set.", "name": "number_of_allocations", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Adaptive allocations configuration. When enabled, the number of allocations\nis set based on the current load.\nIf adaptive_allocations is enabled, do not set the number of allocations manually.", "name": "adaptive_allocations", "required": false, "type": { "kind": "instance_of", "type": { "name": "AdaptiveAllocationsSettings", "namespace": "ml._types" } } } ] }, "description": "Update a trained model deployment.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.update_trained_model_deployment" }, "path": [ { "description": "The unique identifier of the trained model. Currently, only PyTorch models are supported.", "name": "model_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The number of model allocations on each node where the model is deployed.\nAll allocations on a node share the same copy of the model in memory but use\na separate set of threads to evaluate the model.\nIncreasing this value generally increases the throughput.\nIf this setting is greater than the number of hardware threads\nit will automatically be changed to a value less than the number of hardware threads.", "name": "number_of_allocations", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "assignment", "required": true, "type": { "kind": "instance_of", "type": { "name": "TrainedModelAssignment", "namespace": "ml._types" } } } ] }, "name": { "name": "Response", "namespace": "ml.update_trained_model_deployment" }, "specLocation": "ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Upgrade a snapshot.\nUpgrade an anomaly detection model snapshot to the latest major version.\nOver time, older snapshot formats are deprecated and removed. Anomaly\ndetection jobs support only snapshots that are from the current or previous\nmajor version.\nThis API provides a means to upgrade a snapshot to the current major version.\nThis aids in preparing the cluster for an upgrade to the next major version.\nOnly one snapshot per anomaly detection job can be upgraded at a time and the\nupgraded snapshot cannot be the current snapshot of the anomaly detection\njob.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.upgrade_job_snapshot" }, "path": [ { "description": "Identifier for the anomaly detection job.", "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A numerical character string that uniquely identifies the model snapshot.", "name": "snapshot_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "When true, the API won’t respond until the upgrade is complete.\nOtherwise, it responds as soon as the upgrade task is assigned to a node.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Controls the time to wait for the request to complete.", "name": "timeout", "required": false, "serverDefault": "30m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "ml/upgrade_job_snapshot/MlUpgradeJobSnapshotRequest.ts#L24-L72" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The ID of the node that the upgrade task was started on if it is still running. In serverless this will be the \"serverless\".", "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "description": "When true, this means the task is complete. When false, it is still running.", "name": "completed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "ml.upgrade_job_snapshot" }, "specLocation": "ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "job_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "analysis_config", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisConfig", "namespace": "ml._types" } } }, { "name": "analysis_limits", "required": false, "type": { "kind": "instance_of", "type": { "name": "AnalysisLimits", "namespace": "ml._types" } } }, { "name": "data_description", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataDescription", "namespace": "ml._types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "model_plot", "required": false, "type": { "kind": "instance_of", "type": { "name": "ModelPlotConfig", "namespace": "ml._types" } } }, { "name": "model_snapshot_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "model_snapshot_retention_days", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results_index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] }, "description": "Validate an anomaly detection job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.validate" }, "path": [], "query": [], "specLocation": "ml/validate/MlValidateJobRequest.ts#L27-L52" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.validate" }, "specLocation": "ml/validate/MlValidateJobResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "detector", "value": { "kind": "instance_of", "type": { "name": "Detector", "namespace": "ml._types" } } }, "description": "Validate an anomaly detection job.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ml.validate_detector" }, "path": [], "query": [], "specLocation": "ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "ml.validate_detector" }, "specLocation": "ml/validate_detector/MlValidateDetectorResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "operations", "value": { "kind": "array_of", "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "OperationContainer", "namespace": "_global.bulk" } }, { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "monitoring.bulk.Request" } }, { "kind": "instance_of", "type": { "name": "TPartialDocument", "namespace": "monitoring.bulk.Request" } } ], "type": { "name": "UpdateAction", "namespace": "_global.bulk" } }, { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "monitoring.bulk.Request" } } ] } } }, "description": "Send monitoring data.\nThis API is used by the monitoring features to send monitoring data.", "generics": [ { "name": "TDocument", "namespace": "monitoring.bulk.Request" }, { "name": "TPartialDocument", "namespace": "monitoring.bulk.Request" } ], "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "monitoring.bulk" }, "path": [ { "deprecation": { "description": "", "version": "7.0.0" }, "description": "Default document type for items which don't provide one", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "query": [ { "description": "Identifier of the monitored system", "name": "system_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "", "name": "system_api_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Collection interval (e.g., '10s' or '10000ms') of the payload", "name": "interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "monitoring/bulk/BulkMonitoringRequest.ts#L24-L73" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } }, { "description": "True if there is was an error", "name": "errors", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Was collection disabled?", "name": "ignored", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "monitoring.bulk" }, "specLocation": "monitoring/bulk/BulkMonitoringResponse.ts#L23-L32" }, { "kind": "interface", "name": { "name": "AdaptiveSelection", "namespace": "nodes._types" }, "properties": [ { "description": "The exponentially weighted moving average queue size of search requests on the keyed node.", "name": "avg_queue_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The exponentially weighted moving average response time of search requests on the keyed node.", "name": "avg_response_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node.", "name": "avg_response_time_ns", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The exponentially weighted moving average service time of search requests on the keyed node.", "name": "avg_service_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node.", "name": "avg_service_time_ns", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of outstanding search requests to the keyed node from the node these stats are for.", "name": "outgoing_searches", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The rank of this node; used for shard selection when routing search requests.", "name": "rank", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/Stats.ts#L439-L468" }, { "kind": "interface", "name": { "name": "Breaker", "namespace": "nodes._types" }, "properties": [ { "description": "Estimated memory used for the operation.", "name": "estimated_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Estimated memory used, in bytes, for the operation.", "name": "estimated_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Memory limit for the circuit breaker.", "name": "limit_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Memory limit, in bytes, for the circuit breaker.", "name": "limit_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A constant that all estimates for the circuit breaker are multiplied with to calculate a final estimate.", "name": "overhead", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Total number of times the circuit breaker has been triggered and prevented an out of memory error.", "name": "tripped", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L470-L495" }, { "kind": "interface", "name": { "name": "Cgroup", "namespace": "nodes._types" }, "properties": [ { "description": "Contains statistics about `cpuacct` control group for the node.", "name": "cpuacct", "required": false, "type": { "kind": "instance_of", "type": { "name": "CpuAcct", "namespace": "nodes._types" } } }, { "description": "Contains statistics about `cpu` control group for the node.", "name": "cpu", "required": false, "type": { "kind": "instance_of", "type": { "name": "CgroupCpu", "namespace": "nodes._types" } } }, { "description": "Contains statistics about the memory control group for the node.", "name": "memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "CgroupMemory", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L497-L510" }, { "kind": "interface", "name": { "name": "CgroupCpu", "namespace": "nodes._types" }, "properties": [ { "description": "The `cpu` control group to which the Elasticsearch process belongs.", "name": "control_group", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The period of time, in microseconds, for how regularly all tasks in the same cgroup as the Elasticsearch process should have their access to CPU resources reallocated.", "name": "cfs_period_micros", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The total amount of time, in microseconds, for which all tasks in the same cgroup as the Elasticsearch process can run during one period `cfs_period_micros`.", "name": "cfs_quota_micros", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Contains CPU statistics for the node.", "name": "stat", "required": false, "type": { "kind": "instance_of", "type": { "name": "CgroupCpuStat", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L523-L540" }, { "kind": "interface", "name": { "name": "CgroupCpuStat", "namespace": "nodes._types" }, "properties": [ { "description": "The number of reporting periods (as specified by `cfs_period_micros`) that have elapsed.", "name": "number_of_elapsed_periods", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of times all tasks in the same cgroup as the Elasticsearch process have been throttled.", "name": "number_of_times_throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total amount of time, in nanoseconds, for which all tasks in the same cgroup as the Elasticsearch process have been throttled.", "name": "time_throttled_nanos", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L542-L555" }, { "kind": "interface", "name": { "name": "CgroupMemory", "namespace": "nodes._types" }, "properties": [ { "description": "The `memory` control group to which the Elasticsearch process belongs.", "name": "control_group", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum amount of user memory (including file cache) allowed for all tasks in the same cgroup as the Elasticsearch process.\nThis value can be too big to store in a `long`, so is returned as a string so that the value returned can exactly match what the underlying operating system interface returns.\nAny value that is too large to parse into a `long` almost certainly means no limit has been set for the cgroup.", "name": "limit_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total current memory usage by processes in the cgroup, in bytes, by all tasks in the same cgroup as the Elasticsearch process.\nThis value is stored as a string for consistency with `limit_in_bytes`.", "name": "usage_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/Stats.ts#L557-L573" }, { "kind": "interface", "name": { "name": "Client", "namespace": "nodes._types" }, "properties": [ { "description": "Unique ID for the HTTP client.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Reported agent for the HTTP client.\nIf unavailable, this property is not included in the response.", "name": "agent", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Local address for the HTTP connection.", "name": "local_address", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Remote address for the HTTP connection.", "name": "remote_address", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The URI of the client’s most recent request.", "name": "last_uri", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Time at which the client opened the connection.", "name": "opened_time_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Time at which the client closed the connection if the connection is closed.", "name": "closed_time_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Time of the most recent request from this client.", "name": "last_request_time_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of requests from this client.", "name": "request_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Cumulative size in bytes of all requests from this client.", "name": "request_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Value from the client’s `x-opaque-id` HTTP header.\nIf unavailable, this property is not included in the response.", "name": "x_opaque_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/Stats.ts#L720-L767" }, { "kind": "interface", "name": { "name": "ClusterAppliedStats", "namespace": "nodes._types" }, "properties": [ { "name": "recordings", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Recording", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L221-L223" }, { "kind": "interface", "name": { "name": "ClusterStateQueue", "namespace": "nodes._types" }, "properties": [ { "description": "Total number of cluster states in queue.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of pending cluster states in queue.", "name": "pending", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of committed cluster states in queue.", "name": "committed", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L248-L261" }, { "kind": "interface", "name": { "name": "ClusterStateUpdate", "namespace": "nodes._types" }, "properties": [ { "description": "The number of cluster state update attempts that did not change the cluster state since the node started.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent computing no-op cluster state updates since the node started.", "name": "computation_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent computing no-op cluster state updates since the node started.", "name": "computation_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update.\nThis includes the time measured by `context_construction_time`, `commit_time`, `completion_time` and `master_apply_time`.", "name": "publication_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update.\nThis includes the time measured by `context_construction_time`, `commit_time`, `completion_time` and `master_apply_time`.", "name": "publication_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent constructing a publication context since the node started for publications that ultimately succeeded.\nThis statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference.", "name": "context_construction_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent constructing a publication context since the node started for publications that ultimately succeeded.\nThis statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference.", "name": "context_construction_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.", "name": "commit_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master.", "name": "commit_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.", "name": "completion_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state.", "name": "completion_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent successfully applying cluster state updates on the elected master since the node started.", "name": "master_apply_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent successfully applying cluster state updates on the elected master since the node started.", "name": "master_apply_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The cumulative amount of time spent notifying listeners of a no-op cluster state update since the node started.", "name": "notification_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The cumulative amount of time, in milliseconds, spent notifying listeners of a no-op cluster state update since the node started.", "name": "notification_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L278-L343" }, { "kind": "interface", "name": { "name": "Context", "namespace": "nodes._types" }, "properties": [ { "name": "context", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "compilations", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "cache_evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "compilation_limit_triggered", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1068-L1073" }, { "kind": "interface", "name": { "name": "Cpu", "namespace": "nodes._types" }, "properties": [ { "name": "percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sys", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "sys_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "user", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "user_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "load_average", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L575-L584" }, { "kind": "interface", "name": { "name": "CpuAcct", "namespace": "nodes._types" }, "properties": [ { "description": "The `cpuacct` control group to which the Elasticsearch process belongs.", "name": "control_group", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total CPU time, in nanoseconds, consumed by all tasks in the same cgroup as the Elasticsearch process.", "name": "usage_nanos", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L512-L521" }, { "kind": "interface", "name": { "name": "DataPathStats", "namespace": "nodes._types" }, "properties": [ { "description": "Total amount of disk space available to this Java virtual machine on this file store.", "name": "available", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total number of bytes available to this Java virtual machine on this file store.", "name": "available_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "disk_queue", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "disk_reads", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "disk_read_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "disk_read_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "disk_writes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "disk_write_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "disk_write_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of unallocated disk space in the file store.", "name": "free", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total number of unallocated bytes in the file store.", "name": "free_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Mount point of the file store (for example: `/dev/sda2`).", "name": "mount", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Path to the file store.", "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total size of the file store.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total size of the file store in bytes.", "name": "total_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Type of the file store (ex: ext4).", "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/Stats.ts#L586-L630" }, { "kind": "interface", "name": { "name": "Discovery", "namespace": "nodes._types" }, "properties": [ { "description": "Contains statistics for the cluster state queue of the node.", "name": "cluster_state_queue", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterStateQueue", "namespace": "nodes._types" } } }, { "description": "Contains statistics for the published cluster states of the node.", "name": "published_cluster_states", "required": false, "type": { "kind": "instance_of", "type": { "name": "PublishedClusterStates", "namespace": "nodes._types" } } }, { "description": "Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master.\nOmitted if the node is not master-eligible.\nEvery field whose name ends in `_time` within this object is also represented as a raw number of milliseconds in a field whose name ends in `_time_millis`.\nThe human-readable fields with a `_time` suffix are only returned if requested with the `?human=true` query parameter.", "name": "cluster_state_update", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterStateUpdate", "namespace": "nodes._types" } } } }, { "name": "serialized_cluster_states", "required": false, "type": { "kind": "instance_of", "type": { "name": "SerializedClusterState", "namespace": "nodes._types" } } }, { "name": "cluster_applier_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "ClusterAppliedStats", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L201-L219" }, { "kind": "interface", "inherits": { "type": { "name": "MemoryStats", "namespace": "nodes._types" } }, "name": { "name": "ExtendedMemoryStats", "namespace": "nodes._types" }, "properties": [ { "description": "Percentage of free memory.", "name": "free_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Percentage of used memory.", "name": "used_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L658-L667" }, { "kind": "interface", "name": { "name": "FileSystem", "namespace": "nodes._types" }, "properties": [ { "description": "List of all file stores.", "name": "data", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "DataPathStats", "namespace": "nodes._types" } } } }, { "description": "Last time the file stores statistics were refreshed.\nRecorded in milliseconds since the Unix Epoch.", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Contains statistics for all file stores of the node.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "FileSystemTotal", "namespace": "nodes._types" } } }, { "description": "Contains I/O statistics for the node.", "name": "io_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "IoStats", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L769-L787" }, { "kind": "interface", "name": { "name": "FileSystemTotal", "namespace": "nodes._types" }, "properties": [ { "description": "Total disk space available to this Java virtual machine on all file stores.\nDepending on OS or process level restrictions, this might appear less than `free`.\nThis is the actual amount of free disk space the Elasticsearch node can utilise.", "name": "available", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total number of bytes available to this Java virtual machine on all file stores.\nDepending on OS or process level restrictions, this might appear less than `free_in_bytes`.\nThis is the actual amount of free disk space the Elasticsearch node can utilise.", "name": "available_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total unallocated disk space in all file stores.", "name": "free", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total number of unallocated bytes in all file stores.", "name": "free_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total size of all file stores.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total size of all file stores in bytes.", "name": "total_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L828-L857" }, { "kind": "interface", "name": { "name": "GarbageCollector", "namespace": "nodes._types" }, "properties": [ { "description": "Contains statistics about JVM garbage collectors for the node.", "name": "collectors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "GarbageCollectorTotal", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L994-L999" }, { "kind": "interface", "name": { "name": "GarbageCollectorTotal", "namespace": "nodes._types" }, "properties": [ { "description": "Total number of JVM garbage collectors that collect objects.", "name": "collection_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total time spent by JVM collecting objects.", "name": "collection_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total time, in milliseconds, spent by JVM collecting objects.", "name": "collection_time_in_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1001-L1014" }, { "kind": "interface", "name": { "name": "Http", "namespace": "nodes._types" }, "properties": [ { "description": "Current number of open HTTP connections for the node.", "name": "current_open", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of HTTP connections opened for the node.", "name": "total_opened", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Information on current and recently-closed HTTP client connections.\nClients that have been closed longer than the `http.client_stats.closed_channels.max_age` setting will not be represented here.", "name": "clients", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Client", "namespace": "nodes._types" } } } }, { "availability": { "stack": { "since": "8.12.0", "stability": "stable" } }, "description": "Detailed HTTP stats broken down by route", "name": "routes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "HttpRoute", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L669-L688" }, { "kind": "interface", "name": { "name": "HttpRoute", "namespace": "nodes._types" }, "properties": [ { "name": "requests", "required": true, "type": { "kind": "instance_of", "type": { "name": "HttpRouteRequests", "namespace": "nodes._types" } } }, { "name": "responses", "required": true, "type": { "kind": "instance_of", "type": { "name": "HttpRouteResponses", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L690-L693" }, { "kind": "interface", "name": { "name": "HttpRouteRequests", "namespace": "nodes._types" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "size_histogram", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SizeHttpHistogram", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L695-L699" }, { "kind": "interface", "name": { "name": "HttpRouteResponses", "namespace": "nodes._types" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "handling_time_histogram", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TimeHttpHistogram", "namespace": "nodes._types" } } } }, { "name": "size_histogram", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SizeHttpHistogram", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L701-L706" }, { "kind": "interface", "name": { "name": "IndexingPressure", "namespace": "nodes._types" }, "properties": [ { "description": "Contains statistics for memory consumption from indexing load.", "name": "memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingPressureMemory", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L116-L121" }, { "kind": "interface", "name": { "name": "IndexingPressureMemory", "namespace": "nodes._types" }, "properties": [ { "description": "Configured memory limit for the indexing requests.\nReplica requests have an automatic limit that is 1.5x this value.", "name": "limit", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Configured memory limit, in bytes, for the indexing requests.\nReplica requests have an automatic limit that is 1.5x this value.", "name": "limit_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Contains statistics for current indexing load.", "name": "current", "required": false, "type": { "kind": "instance_of", "type": { "name": "PressureMemory", "namespace": "nodes._types" } } }, { "description": "Contains statistics for the cumulative indexing load since the node started.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "PressureMemory", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L123-L142" }, { "kind": "interface", "name": { "name": "Ingest", "namespace": "nodes._types" }, "properties": [ { "description": "Contains statistics about ingest pipelines for the node.", "name": "pipelines", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IngestStats", "namespace": "nodes._types" } } } }, { "description": "Contains statistics about ingest operations for the node.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "IngestTotal", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L345-L354" }, { "kind": "interface", "name": { "name": "IngestStats", "namespace": "nodes._types" }, "properties": [ { "description": "Total number of documents ingested during the lifetime of this node.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of documents currently being ingested.", "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of failed ingest operations during the lifetime of this node.", "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of ingest processors.", "name": "processors", "required": true, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "KeyedProcessor", "namespace": "nodes._types" } } } } }, { "description": "Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node.", "name": "time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Total number of bytes of all documents ingested by the pipeline.\nThis field is only present on pipelines which are the first to process a document.\nThus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors.", "name": "ingested_as_first_pipeline_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.15.0", "stability": "stable" } }, "description": "Total number of bytes of all documents produced by the pipeline.\nThis field is only present on pipelines which are the first to process a document.\nThus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors.\nIn situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run.", "name": "produced_as_first_pipeline_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L356-L394" }, { "kind": "interface", "name": { "name": "IngestTotal", "namespace": "nodes._types" }, "properties": [ { "description": "Total number of documents ingested during the lifetime of this node.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of documents currently being ingested.", "name": "current", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of failed ingest operations during the lifetime of this node.", "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node.", "name": "time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L396-L413" }, { "kind": "interface", "name": { "name": "IoStatDevice", "namespace": "nodes._types" }, "properties": [ { "description": "The Linux device name.", "name": "device_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The total number of read and write operations for the device completed since starting Elasticsearch.", "name": "operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of kilobytes read for the device since starting Elasticsearch.", "name": "read_kilobytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of read operations for the device completed since starting Elasticsearch.", "name": "read_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of kilobytes written for the device since starting Elasticsearch.", "name": "write_kilobytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of write operations for the device completed since starting Elasticsearch.", "name": "write_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L801-L826" }, { "kind": "interface", "name": { "name": "IoStats", "namespace": "nodes._types" }, "properties": [ { "description": "Array of disk metrics for each device that is backing an Elasticsearch data path.\nThese disk metrics are probed periodically and averages between the last probe and the current probe are computed.", "name": "devices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IoStatDevice", "namespace": "nodes._types" } } } }, { "description": "The sum of the disk metrics for all devices that back an Elasticsearch data path.", "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "IoStatDevice", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L789-L799" }, { "kind": "interface", "name": { "name": "Jvm", "namespace": "nodes._types" }, "properties": [ { "description": "Contains statistics about JVM buffer pools for the node.", "name": "buffer_pools", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeBufferPool", "namespace": "nodes._types" } } } }, { "description": "Contains statistics about classes loaded by JVM for the node.", "name": "classes", "required": false, "type": { "kind": "instance_of", "type": { "name": "JvmClasses", "namespace": "nodes._types" } } }, { "description": "Contains statistics about JVM garbage collectors for the node.", "name": "gc", "required": false, "type": { "kind": "instance_of", "type": { "name": "GarbageCollector", "namespace": "nodes._types" } } }, { "description": "Contains JVM memory usage statistics for the node.", "name": "mem", "required": false, "type": { "kind": "instance_of", "type": { "name": "JvmMemoryStats", "namespace": "nodes._types" } } }, { "description": "Contains statistics about JVM thread usage for the node.", "name": "threads", "required": false, "type": { "kind": "instance_of", "type": { "name": "JvmThreads", "namespace": "nodes._types" } } }, { "description": "Last time JVM statistics were refreshed.", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Human-readable JVM uptime.\nOnly returned if the `human` query parameter is `true`.", "name": "uptime", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "JVM uptime in milliseconds.", "name": "uptime_in_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L882-L916" }, { "kind": "interface", "name": { "name": "JvmClasses", "namespace": "nodes._types" }, "properties": [ { "description": "Number of classes currently loaded by JVM.", "name": "current_loaded_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of classes loaded since the JVM started.", "name": "total_loaded_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of classes unloaded since the JVM started.", "name": "total_unloaded_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L979-L992" }, { "kind": "interface", "name": { "name": "JvmMemoryStats", "namespace": "nodes._types" }, "properties": [ { "description": "Memory, in bytes, currently in use by the heap.", "name": "heap_used_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Percentage of memory currently in use by the heap.", "name": "heap_used_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Amount of memory, in bytes, available for use by the heap.", "name": "heap_committed_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Maximum amount of memory, in bytes, available for use by the heap.", "name": "heap_max_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Non-heap memory used, in bytes.", "name": "non_heap_used_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Amount of non-heap memory available, in bytes.", "name": "non_heap_committed_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Contains statistics about heap memory usage for the node.", "name": "pools", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Pool", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L918-L947" }, { "kind": "interface", "name": { "name": "JvmThreads", "namespace": "nodes._types" }, "properties": [ { "description": "Number of active threads in use by JVM.", "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Highest number of threads used by JVM.", "name": "peak_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L968-L977" }, { "kind": "interface", "name": { "name": "KeyedProcessor", "namespace": "nodes._types" }, "properties": [ { "name": "stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "Processor", "namespace": "nodes._types" } } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/Stats.ts#L415-L418" }, { "kind": "interface", "name": { "name": "MemoryStats", "namespace": "nodes._types" }, "properties": [ { "description": "If the amount of physical memory has been overridden using the `es`.`total_memory_bytes` system property then this reports the overridden value in bytes.\nOtherwise it reports the same value as `total_in_bytes`.", "name": "adjusted_total_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "resident", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "resident_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "share", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "share_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_virtual", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_virtual_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total amount of physical memory in bytes.", "name": "total_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Amount of free physical memory in bytes.", "name": "free_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Amount of used physical memory in bytes.", "name": "used_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L632-L656" }, { "kind": "interface", "name": { "name": "NodeBufferPool", "namespace": "nodes._types" }, "properties": [ { "description": "Number of buffer pools.", "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total capacity of buffer pools.", "name": "total_capacity", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Total capacity of buffer pools in bytes.", "name": "total_capacity_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Size of buffer pools.", "name": "used", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Size of buffer pools in bytes.", "name": "used_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L859-L880" }, { "kind": "interface", "name": { "name": "NodeReloadResult", "namespace": "nodes._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "reload_exception", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "nodes/_types/NodeReloadResult.ts#L23-L26" }, { "kind": "interface", "name": { "name": "NodesResponseBase", "namespace": "nodes._types" }, "properties": [ { "codegenName": "node_stats", "description": "Contains statistics about the number of nodes selected by the request’s node filters.", "docId": "cluster-nodes", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#cluster-nodes", "name": "_nodes", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } } ], "specLocation": "nodes/_types/NodesResponseBase.ts#L22-L29" }, { "kind": "interface", "name": { "name": "OperatingSystem", "namespace": "nodes._types" }, "properties": [ { "name": "cpu", "required": false, "type": { "kind": "instance_of", "type": { "name": "Cpu", "namespace": "nodes._types" } } }, { "name": "mem", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExtendedMemoryStats", "namespace": "nodes._types" } } }, { "name": "swap", "required": false, "type": { "kind": "instance_of", "type": { "name": "MemoryStats", "namespace": "nodes._types" } } }, { "name": "cgroup", "required": false, "type": { "kind": "instance_of", "type": { "name": "Cgroup", "namespace": "nodes._types" } } }, { "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1016-L1022" }, { "kind": "interface", "name": { "name": "Pool", "namespace": "nodes._types" }, "properties": [ { "description": "Memory, in bytes, used by the heap.", "name": "used_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Maximum amount of memory, in bytes, available for use by the heap.", "name": "max_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Largest amount of memory, in bytes, historically used by the heap.", "name": "peak_used_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Largest amount of memory, in bytes, historically used by the heap.", "name": "peak_max_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L949-L966" }, { "kind": "interface", "name": { "name": "PressureMemory", "namespace": "nodes._types" }, "properties": [ { "description": "Memory consumed by indexing requests in the coordinating, primary, or replica stage.", "name": "all", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Memory consumed, in bytes, by indexing requests in the coordinating, primary, or replica stage.", "name": "all_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Memory consumed by indexing requests in the coordinating or primary stage.\nThis value is not the sum of coordinating and primary as a node can reuse the coordinating memory if the primary stage is executed locally.", "name": "combined_coordinating_and_primary", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Memory consumed, in bytes, by indexing requests in the coordinating or primary stage.\nThis value is not the sum of coordinating and primary as a node can reuse the coordinating memory if the primary stage is executed locally.", "name": "combined_coordinating_and_primary_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Memory consumed by indexing requests in the coordinating stage.", "name": "coordinating", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Memory consumed, in bytes, by indexing requests in the coordinating stage.", "name": "coordinating_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Memory consumed by indexing requests in the primary stage.", "name": "primary", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Memory consumed, in bytes, by indexing requests in the primary stage.", "name": "primary_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Memory consumed by indexing requests in the replica stage.", "name": "replica", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "Memory consumed, in bytes, by indexing requests in the replica stage.", "name": "replica_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of indexing requests rejected in the coordinating stage.", "name": "coordinating_rejections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of indexing requests rejected in the primary stage.", "name": "primary_rejections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of indexing requests rejected in the replica stage.", "name": "replica_rejections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L144-L199" }, { "kind": "interface", "name": { "name": "Process", "namespace": "nodes._types" }, "properties": [ { "description": "Contains CPU statistics for the node.", "name": "cpu", "required": false, "type": { "kind": "instance_of", "type": { "name": "Cpu", "namespace": "nodes._types" } } }, { "description": "Contains virtual memory statistics for the node.", "name": "mem", "required": false, "type": { "kind": "instance_of", "type": { "name": "MemoryStats", "namespace": "nodes._types" } } }, { "description": "Number of opened file descriptors associated with the current or `-1` if not supported.", "name": "open_file_descriptors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Maximum number of file descriptors allowed on the system, or `-1` if not supported.", "name": "max_file_descriptors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Last time the statistics were refreshed.\nRecorded in milliseconds since the Unix Epoch.", "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1024-L1046" }, { "kind": "interface", "name": { "name": "Processor", "namespace": "nodes._types" }, "properties": [ { "description": "Number of documents transformed by the processor.", "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of documents currently being transformed by the processor.", "name": "current", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of failed operations for the processor.", "name": "failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Time, in milliseconds, spent by the processor transforming documents.", "name": "time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L420-L437" }, { "kind": "interface", "name": { "name": "PublishedClusterStates", "namespace": "nodes._types" }, "properties": [ { "description": "Number of published cluster states.", "name": "full_states", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of incompatible differences between published cluster states.", "name": "incompatible_diffs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of compatible differences between published cluster states.", "name": "compatible_diffs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L263-L276" }, { "kind": "interface", "name": { "name": "Recording", "namespace": "nodes._types" }, "properties": [ { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cumulative_execution_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "cumulative_execution_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "cumulative_execution_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L225-L230" }, { "kind": "interface", "name": { "name": "RepositoryLocation", "namespace": "nodes._types" }, "properties": [ { "name": "base_path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Container name (Azure)", "name": "container", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Bucket name (GCP, S3)", "name": "bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/RepositoryMeteringInformation.ts#L68-L74" }, { "kind": "interface", "name": { "name": "RepositoryMeteringInformation", "namespace": "nodes._types" }, "properties": [ { "description": "Repository name.", "name": "repository_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Repository type.", "name": "repository_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Represents an unique location within the repository.", "name": "repository_location", "required": true, "type": { "kind": "instance_of", "type": { "name": "RepositoryLocation", "namespace": "nodes._types" } } }, { "description": "An identifier that changes every time the repository is updated.", "name": "repository_ephemeral_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Time the repository was created or updated. Recorded in milliseconds since the Unix Epoch.", "name": "repository_started_at", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Time the repository was deleted or updated. Recorded in milliseconds since the Unix Epoch.", "name": "repository_stopped_at", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "A flag that tells whether or not this object has been archived. When a repository is closed or updated the\nrepository metering information is archived and kept for a certain period of time. This allows retrieving the\nrepository metering information of previous repository instantiations.", "name": "archived", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The cluster state version when this object was archived, this field can be used as a logical timestamp to delete\nall the archived metrics up to an observed version. This field is only present for archived repository metering\ninformation objects. The main purpose of this field is to avoid possible race conditions during repository metering\ninformation deletions, i.e. deleting archived repositories metering information that we haven’t observed yet.", "name": "cluster_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "description": "An object with the number of request performed against the repository grouped by request type.", "name": "request_counts", "required": true, "type": { "kind": "instance_of", "type": { "name": "RequestCounts", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/RepositoryMeteringInformation.ts#L24-L66" }, { "kind": "interface", "name": { "name": "RequestCounts", "namespace": "nodes._types" }, "properties": [ { "description": "Number of Get Blob Properties requests (Azure)", "name": "GetBlobProperties", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of Get Blob requests (Azure)", "name": "GetBlob", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of List Blobs requests (Azure)", "name": "ListBlobs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of Put Blob requests (Azure)", "name": "PutBlob", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of Put Block (Azure)", "name": "PutBlock", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of Put Block List requests", "name": "PutBlockList", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of get object requests (GCP, S3)", "name": "GetObject", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of list objects requests (GCP, S3)", "name": "ListObjects", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of insert object requests, including simple, multipart and resumable uploads. Resumable uploads\ncan perform multiple http requests to insert a single object but they are considered as a single request\nsince they are billed as an individual operation. (GCP)", "name": "InsertObject", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of PutObject requests (S3)", "name": "PutObject", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of Multipart requests, including CreateMultipartUpload, UploadPart and CompleteMultipartUpload requests (S3)", "name": "PutMultipartObject", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/RepositoryMeteringInformation.ts#L76-L103" }, { "kind": "interface", "name": { "name": "ScriptCache", "namespace": "nodes._types" }, "properties": [ { "description": "Total number of times the script cache has evicted old data.", "name": "cache_evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of times the script compilation circuit breaker has limited inline script compilations.", "name": "compilation_limit_triggered", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of inline script compilations performed by the node.", "name": "compilations", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "context", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/_types/Stats.ts#L1102-L1116" }, { "kind": "interface", "name": { "name": "Scripting", "namespace": "nodes._types" }, "properties": [ { "description": "Total number of times the script cache has evicted old data.", "name": "cache_evictions", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Total number of inline script compilations performed by the node.", "name": "compilations", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Contains this recent history of script compilations.", "name": "compilations_history", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "description": "Total number of times the script compilation circuit breaker has limited inline script compilations.", "name": "compilation_limit_triggered", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "contexts", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Context", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/_types/Stats.ts#L1048-L1066" }, { "kind": "interface", "name": { "name": "SerializedClusterState", "namespace": "nodes._types" }, "properties": [ { "description": "Number of published cluster states.", "name": "full_states", "required": false, "type": { "kind": "instance_of", "type": { "name": "SerializedClusterStateDetail", "namespace": "nodes._types" } } }, { "name": "diffs", "required": false, "type": { "kind": "instance_of", "type": { "name": "SerializedClusterStateDetail", "namespace": "nodes._types" } } } ], "specLocation": "nodes/_types/Stats.ts#L232-L238" }, { "kind": "interface", "name": { "name": "SerializedClusterStateDetail", "namespace": "nodes._types" }, "properties": [ { "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "uncompressed_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "uncompressed_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "compressed_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "compressed_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L240-L246" }, { "kind": "interface", "name": { "name": "SizeHttpHistogram", "namespace": "nodes._types" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "ge_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "lt_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L714-L718" }, { "kind": "interface", "name": { "name": "Stats", "namespace": "nodes._types" }, "properties": [ { "description": "Statistics about adaptive replica selection.", "name": "adaptive_selection", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AdaptiveSelection", "namespace": "nodes._types" } } } }, { "description": "Statistics about the field data circuit breaker.", "name": "breakers", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Breaker", "namespace": "nodes._types" } } } }, { "description": "File system information, data path, free disk space, read/write stats.", "name": "fs", "required": false, "type": { "kind": "instance_of", "type": { "name": "FileSystem", "namespace": "nodes._types" } } }, { "description": "Network host for the node, based on the network host setting.", "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "description": "HTTP connection information.", "name": "http", "required": false, "type": { "kind": "instance_of", "type": { "name": "Http", "namespace": "nodes._types" } } }, { "description": "Statistics about ingest preprocessing.", "name": "ingest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ingest", "namespace": "nodes._types" } } }, { "description": "IP address and port for the node.", "name": "ip", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } } } ] } }, { "description": "JVM stats, memory pool information, garbage collection, buffer pools, number of loaded/unloaded classes.", "name": "jvm", "required": false, "type": { "kind": "instance_of", "type": { "name": "Jvm", "namespace": "nodes._types" } } }, { "description": "Human-readable identifier for the node.\nBased on the node name setting.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Operating system stats, load average, mem, swap.", "name": "os", "required": false, "type": { "kind": "instance_of", "type": { "name": "OperatingSystem", "namespace": "nodes._types" } } }, { "description": "Process statistics, memory consumption, cpu usage, open file descriptors.", "name": "process", "required": false, "type": { "kind": "instance_of", "type": { "name": "Process", "namespace": "nodes._types" } } }, { "description": "Roles assigned to the node.", "name": "roles", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeRoles", "namespace": "_types" } } }, { "description": "Contains script statistics for the node.", "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "Scripting", "namespace": "nodes._types" } } }, { "name": "script_cache", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "ScriptCache", "namespace": "nodes._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ScriptCache", "namespace": "nodes._types" } } } ] } } }, { "description": "Statistics about each thread pool, including current size, queue and rejected tasks.", "name": "thread_pool", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ThreadCount", "namespace": "nodes._types" } } } }, { "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Transport statistics about sent and received bytes in cluster communication.", "name": "transport", "required": false, "type": { "kind": "instance_of", "type": { "name": "Transport", "namespace": "nodes._types" } } }, { "description": "Host and port for the transport layer, used for internal communication between nodes in a cluster.", "name": "transport_address", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "description": "Contains a list of attributes for the node.", "name": "attributes", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Contains node discovery statistics for the node.", "name": "discovery", "required": false, "type": { "kind": "instance_of", "type": { "name": "Discovery", "namespace": "nodes._types" } } }, { "description": "Contains indexing pressure statistics for the node.", "name": "indexing_pressure", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexingPressure", "namespace": "nodes._types" } } }, { "description": "Indices stats about size, document count, indexing and deletion times, search times, field cache size, merges and flushes.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStats", "namespace": "indices.stats" } } } ], "specLocation": "nodes/_types/Stats.ts#L30-L114" }, { "kind": "interface", "name": { "name": "ThreadCount", "namespace": "nodes._types" }, "properties": [ { "description": "Number of active threads in the thread pool.", "name": "active", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of tasks completed by the thread pool executor.", "name": "completed", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Highest number of active threads in the thread pool.", "name": "largest", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of tasks in queue for the thread pool.", "name": "queue", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of tasks rejected by the thread pool executor.", "name": "rejected", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Number of threads in the thread pool.", "name": "threads", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1075-L1100" }, { "kind": "interface", "name": { "name": "TimeHttpHistogram", "namespace": "nodes._types" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "ge_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "lt_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L708-L712" }, { "kind": "interface", "name": { "name": "Transport", "namespace": "nodes._types" }, "properties": [ { "description": "The distribution of the time spent handling each inbound message on a transport thread, represented as a histogram.", "name": "inbound_handling_time_histogram", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransportHistogram", "namespace": "nodes._types" } } } }, { "description": "The distribution of the time spent sending each outbound transport message on a transport thread, represented as a histogram.", "name": "outbound_handling_time_histogram", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransportHistogram", "namespace": "nodes._types" } } } }, { "description": "Total number of RX (receive) packets received by the node during internal cluster communication.", "name": "rx_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Size of RX packets received by the node during internal cluster communication.", "name": "rx_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Size, in bytes, of RX packets received by the node during internal cluster communication.", "name": "rx_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Current number of inbound TCP connections used for internal communication between nodes.", "name": "server_open", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Total number of TX (transmit) packets sent by the node during internal cluster communication.", "name": "tx_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Size of TX packets sent by the node during internal cluster communication.", "name": "tx_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Size, in bytes, of TX packets sent by the node during internal cluster communication.", "name": "tx_size_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The cumulative number of outbound transport connections that this node has opened since it started.\nEach transport connection may comprise multiple TCP connections but is only counted once in this statistic.\nTransport connections are typically long-lived so this statistic should remain constant in a stable cluster.", "name": "total_outbound_connections", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1118-L1161" }, { "kind": "interface", "name": { "name": "TransportHistogram", "namespace": "nodes._types" }, "properties": [ { "description": "The number of times a transport thread took a period of time within the bounds of this bucket to handle an inbound message.", "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The exclusive upper bound of the bucket in milliseconds.\nMay be omitted on the last bucket if this bucket has no upper bound.", "name": "lt_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The inclusive lower bound of the bucket in milliseconds. May be omitted on the first bucket if this bucket has no lower bound.", "name": "ge_millis", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/_types/Stats.ts#L1163-L1177" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the archived repositories metering.\nClear the archived repositories metering information in the cluster.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.clear_repositories_metering_archive" }, "path": [ { "description": "Comma-separated list of node IDs or names used to limit returned information.", "extDocId": "cluster-nodes", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#cluster-nodes", "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } }, { "description": "Specifies the maximum `archive_version` to be cleared from the archive.", "name": "max_archive_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "query": [], "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts#L24-L52" }, { "kind": "response", "body": { "kind": "value", "codegenName": "metering_infos", "value": { "kind": "instance_of", "type": { "name": "ResponseBase", "namespace": "nodes.clear_repositories_metering_archive" } } }, "name": { "name": "Response", "namespace": "nodes.clear_repositories_metering_archive" }, "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L40" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "ResponseBase", "namespace": "nodes.clear_repositories_metering_archive" }, "properties": [ { "description": "Name of the cluster. Based on the `cluster.name` setting.", "extDocId": "cluster-name", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/deploy/self-managed/important-settings-configuration##_cluster_name_setting", "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Contains repositories metering information for the nodes selected by the request.", "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RepositoryMeteringInformation", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L25-L35" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cluster repositories metering.\nGet repositories metering information for a cluster.\nThis API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time.\nAdditionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.get_repositories_metering_info" }, "path": [ { "description": "Comma-separated list of node IDs or names used to limit returned information.", "extDocId": "cluster-nodes", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#cluster-nodes", "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [], "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "value", "codegenName": "metering_infos", "value": { "kind": "instance_of", "type": { "name": "ResponseBase", "namespace": "nodes.get_repositories_metering_info" } } }, "name": { "name": "Response", "namespace": "nodes.get_repositories_metering_info" }, "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L39" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "ResponseBase", "namespace": "nodes.get_repositories_metering_info" }, "properties": [ { "description": "Name of the cluster. Based on the `cluster.name` setting.", "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Contains repositories metering information for the nodes selected by the request.", "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RepositoryMeteringInformation", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L25-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the hot threads for nodes.\nGet a breakdown of the hot threads on each selected node in the cluster.\nThe output is plain text with a breakdown of the top hot threads for each node.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.hot_threads" }, "path": [ { "description": "List of node IDs or names used to limit returned information.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [ { "description": "If true, known idle threads (e.g. waiting in a socket select, or to get\na task from an empty queue) are filtered out.", "name": "ignore_idle_threads", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The interval to do the second sampling of threads.", "name": "interval", "required": false, "serverDefault": "500ms", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Number of samples of thread stacktrace.", "name": "snapshots", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Specifies the number of hot threads to provide information for.", "name": "threads", "required": false, "serverDefault": 3, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received\nbefore the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The type to sample.", "name": "type", "required": false, "serverDefault": "cpu", "type": { "kind": "instance_of", "type": { "name": "ThreadType", "namespace": "_types" } } }, { "description": "The sort order for 'cpu' type (default: total)", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "ThreadType", "namespace": "_types" } } } ], "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L88" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "nodes.hot_threads" }, "specLocation": "nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22" }, { "kind": "interface", "name": { "name": "DeprecationIndexing", "namespace": "nodes.info" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "nodes/info/types.ts#L144-L146" }, { "kind": "interface", "name": { "name": "NodeInfo", "namespace": "nodes.info" }, "properties": [ { "name": "attributes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "build_flavor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Short hash of the last git commit in this release.", "name": "build_hash", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "build_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The node’s host name.", "name": "host", "required": true, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "http", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoHttp", "namespace": "nodes.info" } } }, { "description": "The node’s IP address.", "name": "ip", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } } }, { "name": "jvm", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeJvmInfo", "namespace": "nodes.info" } } }, { "description": "The node's name", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "network", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoNetwork", "namespace": "nodes.info" } } }, { "name": "os", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeOperatingSystemInfo", "namespace": "nodes.info" } } }, { "name": "plugins", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PluginStats", "namespace": "_types" } } } }, { "name": "process", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeProcessInfo", "namespace": "nodes.info" } } }, { "name": "roles", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeRoles", "namespace": "_types" } } }, { "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettings", "namespace": "nodes.info" } } }, { "name": "thread_pool", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeThreadPoolInfo", "namespace": "nodes.info" } } } }, { "description": "Total heap allowed to be used to hold recently indexed documents before they must be written to disk. This size is a shared pool across all shards on this node, and is controlled by Indexing Buffer settings.", "docId": "indexing-buffer", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/indexing-buffer-settings", "name": "total_indexing_buffer", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Same as total_indexing_buffer, but expressed in bytes.", "name": "total_indexing_buffer_in_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "transport", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoTransport", "namespace": "nodes.info" } } }, { "description": "Host and port where transport HTTP connections are accepted.", "name": "transport_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "description": "Elasticsearch version running on this node.", "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "modules", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PluginStats", "namespace": "_types" } } } }, { "name": "ingest", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngest", "namespace": "nodes.info" } } }, { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeInfoAggregation", "namespace": "nodes.info" } } } } ], "specLocation": "nodes/info/types.ts#L31-L67" }, { "kind": "interface", "name": { "name": "NodeInfoAction", "namespace": "nodes.info" }, "properties": [ { "name": "destructive_requires_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L184-L186" }, { "kind": "interface", "name": { "name": "NodeInfoAggregation", "namespace": "nodes.info" }, "properties": [ { "name": "types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "nodes/info/types.ts#L235-L237" }, { "kind": "interface", "name": { "name": "NodeInfoBootstrap", "namespace": "nodes.info" }, "properties": [ { "name": "memory_lock", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L204-L206" }, { "kind": "interface", "name": { "name": "NodeInfoClient", "namespace": "nodes.info" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L188-L190" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "user_defined_value" } ], "meta": { "description": "Additional or alternative settings", "fieldname": "settings" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "name": { "name": "NodeInfoDiscover", "namespace": "nodes.info" }, "properties": [ { "name": "seed_hosts", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "seed_providers", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "nodes/info/types.ts#L173-L182" }, { "kind": "interface", "name": { "name": "NodeInfoHttp", "namespace": "nodes.info" }, "properties": [ { "name": "bound_address", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "max_content_length", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "max_content_length_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "publish_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L311-L316" }, { "kind": "interface", "name": { "name": "NodeInfoIngest", "namespace": "nodes.info" }, "properties": [ { "name": "processors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeInfoIngestProcessor", "namespace": "nodes.info" } } } } ], "specLocation": "nodes/info/types.ts#L227-L229" }, { "kind": "interface", "name": { "name": "NodeInfoIngestDownloader", "namespace": "nodes.info" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L128-L130" }, { "kind": "interface", "name": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" }, "properties": [ { "name": "downloader", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestDownloader", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L124-L126" }, { "kind": "interface", "name": { "name": "NodeInfoIngestProcessor", "namespace": "nodes.info" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L231-L233" }, { "kind": "interface", "name": { "name": "NodeInfoJvmMemory", "namespace": "nodes.info" }, "properties": [ { "name": "direct_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "direct_max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "heap_init", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "heap_init_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "heap_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "heap_max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "non_heap_init", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "non_heap_init_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "non_heap_max", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "non_heap_max_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/info/types.ts#L318-L329" }, { "kind": "interface", "name": { "name": "NodeInfoMemory", "namespace": "nodes.info" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "nodes/info/types.ts#L331-L334" }, { "kind": "interface", "name": { "name": "NodeInfoNetwork", "namespace": "nodes.info" }, "properties": [ { "name": "primary_interface", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoNetworkInterface", "namespace": "nodes.info" } } }, { "name": "refresh_interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "nodes/info/types.ts#L336-L339" }, { "kind": "interface", "name": { "name": "NodeInfoNetworkInterface", "namespace": "nodes.info" }, "properties": [ { "name": "address", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "mac_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "nodes/info/types.ts#L341-L345" }, { "kind": "interface", "name": { "name": "NodeInfoOSCPU", "namespace": "nodes.info" }, "properties": [ { "name": "cache_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cache_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "cores_per_socket", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "mhz", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "model", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "total_cores", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total_sockets", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "vendor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L347-L356" }, { "kind": "interface", "name": { "name": "NodeInfoPath", "namespace": "nodes.info" }, "properties": [ { "name": "logs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "home", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "repo", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "data", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "specLocation": "nodes/info/types.ts#L158-L163" }, { "kind": "interface", "name": { "name": "NodeInfoRepositories", "namespace": "nodes.info" }, "properties": [ { "name": "url", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoRepositoriesUrl", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L165-L167" }, { "kind": "interface", "name": { "name": "NodeInfoRepositoriesUrl", "namespace": "nodes.info" }, "properties": [ { "name": "allowed_urls", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L169-L171" }, { "kind": "interface", "name": { "name": "NodeInfoScript", "namespace": "nodes.info" }, "properties": [ { "name": "allowed_types", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "disable_max_compilations_rate", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L289-L292" }, { "kind": "interface", "name": { "name": "NodeInfoSearch", "namespace": "nodes.info" }, "properties": [ { "name": "remote", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSearchRemote", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L294-L296" }, { "kind": "interface", "name": { "name": "NodeInfoSearchRemote", "namespace": "nodes.info" }, "properties": [ { "name": "connect", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L298-L300" }, { "kind": "interface", "name": { "name": "NodeInfoSettings", "namespace": "nodes.info" }, "properties": [ { "name": "cluster", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsCluster", "namespace": "nodes.info" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsNode", "namespace": "nodes.info" } } }, { "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoPath", "namespace": "nodes.info" } } }, { "name": "repositories", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoRepositories", "namespace": "nodes.info" } } }, { "name": "discovery", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoDiscover", "namespace": "nodes.info" } } }, { "name": "action", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoAction", "namespace": "nodes.info" } } }, { "name": "client", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoClient", "namespace": "nodes.info" } } }, { "name": "http", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsHttp", "namespace": "nodes.info" } } }, { "name": "bootstrap", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoBootstrap", "namespace": "nodes.info" } } }, { "name": "transport", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsTransport", "namespace": "nodes.info" } } }, { "name": "network", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsNetwork", "namespace": "nodes.info" } } }, { "name": "xpack", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpack", "namespace": "nodes.info" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoScript", "namespace": "nodes.info" } } }, { "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSearch", "namespace": "nodes.info" } } }, { "name": "ingest", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsIngest", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L69-L85" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsCluster", "namespace": "nodes.info" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "routing", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexRouting", "namespace": "indices._types" } } }, { "name": "election", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsClusterElection", "namespace": "nodes.info" } } }, { "name": "initial_master_nodes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "deprecation_indexing", "required": false, "type": { "kind": "instance_of", "type": { "name": "DeprecationIndexing", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L132-L142" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsClusterElection", "namespace": "nodes.info" }, "properties": [ { "name": "strategy", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "nodes/info/types.ts#L148-L150" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsHttp", "namespace": "nodes.info" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsHttpType", "namespace": "nodes.info" } } }, { "name": "type.default", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "compression", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "port", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } } ], "specLocation": "nodes/info/types.ts#L192-L197" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsHttpType", "namespace": "nodes.info" }, "properties": [ { "name": "default", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "default", "specLocation": "nodes/info/types.ts#L199-L202" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsIngest", "namespace": "nodes.info" }, "properties": [ { "name": "attachment", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "append", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "csv", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "convert", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "date", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "date_index_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "dot_expander", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "enrich", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "fail", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "foreach", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "json", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "user_agent", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "kv", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "geoip", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "grok", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "gsub", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "join", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "lowercase", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "remove", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "rename", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "set", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "split", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "trim", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "uppercase", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "urldecode", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "dissect", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "set_security_user", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "drop", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "circle", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } }, { "name": "inference", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoIngestInfo", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L87-L122" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsNetwork", "namespace": "nodes.info" }, "properties": [ { "name": "host", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } } ] } } ], "specLocation": "nodes/info/types.ts#L223-L225" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsNode", "namespace": "nodes.info" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "attr", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "max_local_storage_nodes", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L152-L156" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsTransport", "namespace": "nodes.info" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsTransportType", "namespace": "nodes.info" } } }, { "name": "type.default", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "features", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoSettingsTransportFeatures", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L208-L212" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsTransportFeatures", "namespace": "nodes.info" }, "properties": [ { "name": "x-pack", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L219-L221" }, { "kind": "interface", "name": { "name": "NodeInfoSettingsTransportType", "namespace": "nodes.info" }, "properties": [ { "name": "default", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "shortcutProperty": "default", "specLocation": "nodes/info/types.ts#L214-L217" }, { "kind": "interface", "name": { "name": "NodeInfoTransport", "namespace": "nodes.info" }, "properties": [ { "name": "bound_address", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "publish_address", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "profiles", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "nodes/info/types.ts#L358-L362" }, { "kind": "interface", "name": { "name": "NodeInfoXpack", "namespace": "nodes.info" }, "properties": [ { "name": "license", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackLicense", "namespace": "nodes.info" } } }, { "name": "security", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurity", "namespace": "nodes.info" } } }, { "name": "notification", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "ml", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackMl", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L239-L244" }, { "kind": "interface", "name": { "name": "NodeInfoXpackLicense", "namespace": "nodes.info" }, "properties": [ { "name": "self_generated", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackLicenseType", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L281-L283" }, { "kind": "interface", "name": { "name": "NodeInfoXpackLicenseType", "namespace": "nodes.info" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L285-L287" }, { "kind": "interface", "name": { "name": "NodeInfoXpackMl", "namespace": "nodes.info" }, "properties": [ { "name": "use_auto_machine_memory_percent", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L253-L255" }, { "kind": "interface", "name": { "name": "NodeInfoXpackSecurity", "namespace": "nodes.info" }, "properties": [ { "name": "http", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecuritySsl", "namespace": "nodes.info" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "transport", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecuritySsl", "namespace": "nodes.info" } } }, { "name": "authc", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurityAuthc", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L246-L251" }, { "kind": "interface", "name": { "name": "NodeInfoXpackSecurityAuthc", "namespace": "nodes.info" }, "properties": [ { "name": "realms", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurityAuthcRealms", "namespace": "nodes.info" } } }, { "name": "token", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurityAuthcToken", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L261-L264" }, { "kind": "interface", "name": { "name": "NodeInfoXpackSecurityAuthcRealms", "namespace": "nodes.info" }, "properties": [ { "name": "file", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurityAuthcRealmsStatus", "namespace": "nodes.info" } } } }, { "name": "native", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurityAuthcRealmsStatus", "namespace": "nodes.info" } } } }, { "name": "pki", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeInfoXpackSecurityAuthcRealmsStatus", "namespace": "nodes.info" } } } } ], "specLocation": "nodes/info/types.ts#L266-L270" }, { "kind": "interface", "name": { "name": "NodeInfoXpackSecurityAuthcRealmsStatus", "namespace": "nodes.info" }, "properties": [ { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "order", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L276-L279" }, { "kind": "interface", "name": { "name": "NodeInfoXpackSecurityAuthcToken", "namespace": "nodes.info" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L272-L274" }, { "kind": "interface", "name": { "name": "NodeInfoXpackSecuritySsl", "namespace": "nodes.info" }, "properties": [ { "name": "ssl", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "nodes/info/types.ts#L257-L259" }, { "kind": "interface", "name": { "name": "NodeJvmInfo", "namespace": "nodes.info" }, "properties": [ { "name": "gc_collectors", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "mem", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeInfoJvmMemory", "namespace": "nodes.info" } } }, { "name": "memory_pools", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "pid", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "vm_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "vm_vendor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "vm_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "aliases": [ "bundled_jdk" ], "name": "using_bundled_jdk", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "using_compressed_ordinary_object_pointers", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ] } }, { "name": "input_arguments", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "nodes/info/types.ts#L364-L378" }, { "kind": "interface", "name": { "name": "NodeOperatingSystemInfo", "namespace": "nodes.info" }, "properties": [ { "description": "Name of the JVM architecture (ex: amd64, x86)", "name": "arch", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Number of processors available to the Java virtual machine", "name": "available_processors", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of processors actually used to calculate thread pool size. This number can be set with the node.processors setting of a node and defaults to the number of processors reported by the OS.", "name": "allocated_processors", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Name of the operating system (ex: Linux, Windows, Mac OS X)", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "pretty_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Refresh interval for the OS statistics", "name": "refresh_interval_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Version of the operating system", "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "cpu", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoOSCPU", "namespace": "nodes.info" } } }, { "name": "mem", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoMemory", "namespace": "nodes.info" } } }, { "name": "swap", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeInfoMemory", "namespace": "nodes.info" } } } ], "specLocation": "nodes/info/types.ts#L380-L397" }, { "kind": "interface", "name": { "name": "NodeProcessInfo", "namespace": "nodes.info" }, "properties": [ { "description": "Process identifier (PID)", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Indicates if the process address space has been successfully locked in memory", "name": "mlockall", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Refresh interval for the process statistics", "name": "refresh_interval_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "nodes/info/types.ts#L399-L406" }, { "kind": "interface", "name": { "name": "NodeThreadPoolInfo", "namespace": "nodes.info" }, "properties": [ { "name": "core", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "max", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "queue_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "nodes/info/types.ts#L302-L309" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get node information.\n\nBy default, the API returns all attributes and core settings for cluster nodes.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.info" }, "path": [ { "description": "Comma-separated list of node IDs or names used to limit returned information.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } }, { "description": "Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest.", "name": "metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } } ], "query": [ { "description": "If true, returns settings in flat format.", "name": "flat_settings", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L71" }, { "kind": "response", "body": { "kind": "value", "codegenName": "infos", "value": { "kind": "instance_of", "type": { "name": "ResponseBase", "namespace": "nodes.info" } } }, "examples": { "nodesInfoResponseExample1": { "description": "An abbreviated response when requesting cluster nodes information.", "value": "{\n \"_nodes\": {},\n \"cluster_name\": \"elasticsearch\",\n \"nodes\": {\n \"USpTGYaBSIKbgSUJR2Z9lg\": {\n \"name\": \"node-0\",\n \"transport_address\": \"192.168.17:9300\",\n \"host\": \"node-0.elastic.co\",\n \"ip\": \"192.168.17\",\n \"version\": \"{version}\",\n \"transport_version\": 100000298,\n \"index_version\": 100000074,\n \"component_versions\": {\n \"ml_config_version\": 100000162,\n \"transform_config_version\": 100000096\n },\n \"build_flavor\": \"default\",\n \"build_type\": \"{build_type}\",\n \"build_hash\": \"587409e\",\n \"roles\": [\n \"master\",\n \"data\",\n \"ingest\"\n ],\n \"attributes\": {},\n \"plugins\": [\n {\n \"name\": \"analysis-icu\",\n \"version\": \"{version}\",\n \"description\": \"The ICU Analysis plugin integrates Lucene ICU\n module into elasticsearch, adding ICU relates analysis components.\",\n \"classname\":\n \"org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin\",\n \"has_native_controller\": false\n }\n ],\n \"modules\": [\n {\n \"name\": \"lang-painless\",\n \"version\": \"{version}\",\n \"description\": \"An easy, safe and fast scripting language for\n Elasticsearch\",\n \"classname\": \"org.elasticsearch.painless.PainlessPlugin\",\n \"has_native_controller\": false\n }\n ]\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "nodes.info" }, "specLocation": "nodes/info/NodesInfoResponse.ts#L30-L33" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "ResponseBase", "namespace": "nodes.info" }, "properties": [ { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeInfo", "namespace": "nodes.info" } } } } ], "specLocation": "nodes/info/NodesInfoResponse.ts#L25-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The password for the Elasticsearch keystore.", "name": "secure_settings_password", "required": false, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } } ] }, "description": "Reload the keystore on nodes in the cluster.\n\nSecure settings are stored in an on-disk keystore. Certain of these settings are reloadable.\nThat is, you can change them on disk and reload them without restarting any nodes in the cluster.\nWhen you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node.\n\nWhen the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings.\nReloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted.\nAlternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password.", "examples": { "ReloadSecureSettingsRequestExample1": { "description": "Run `POST _nodes/reload_secure_settings` to reload the keystore on nodes in the cluster.", "value": "{\n \"secure_settings_password\": \"keystore-password\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.reload_secure_settings" }, "path": [ { "description": "The names of particular nodes in the cluster to target.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70" }, { "kind": "response", "body": { "kind": "value", "codegenName": "reload_results", "value": { "kind": "instance_of", "type": { "name": "ResponseBase", "namespace": "nodes.reload_secure_settings" } } }, "examples": { "ReloadSecureSettingsResponseExample1": { "description": "A successful response when reloading keystore on nodes in your cluster.", "value": "{\n \"_nodes\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"cluster_name\": \"my_cluster\",\n \"nodes\": {\n \"pQHNt5rXTTWNvUgOrdynKg\": {\n \"name\": \"node-0\"\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "nodes.reload_secure_settings" }, "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L33" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "ResponseBase", "namespace": "nodes.reload_secure_settings" }, "properties": [ { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeReloadResult", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L25-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get node statistics.\nGet statistics for nodes in a cluster.\nBy default, all stats are returned. You can limit the returned information by using metrics.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.stats" }, "path": [ { "description": "Comma-separated list of node IDs or names used to limit returned information.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } }, { "description": "Limit the information returned to the specified metrics", "name": "metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } }, { "description": "Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified.", "name": "index_metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } } ], "query": [ { "description": "Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.", "name": "completion_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Comma-separated list or wildcard expressions of fields to include in fielddata statistics.", "name": "fielddata_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Comma-separated list or wildcard expressions of fields to include in the statistics.", "name": "fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "Comma-separated list of search groups to include in the search statistics.", "name": "groups", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).", "name": "include_segment_file_sizes", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Indicates whether statistics are aggregated at the cluster, index, or shard level.", "name": "level", "required": false, "type": { "kind": "instance_of", "type": { "name": "Level", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "A comma-separated list of document types for the indexing index metric.", "name": "types", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "If `true`, the response includes information from segments that are not loaded into memory.", "name": "include_unloaded_segments", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L99" }, { "kind": "response", "body": { "kind": "value", "codegenName": "stats", "value": { "kind": "instance_of", "type": { "name": "ResponseBase", "namespace": "nodes.stats" } } }, "name": { "name": "Response", "namespace": "nodes.stats" }, "specLocation": "nodes/stats/NodesStatsResponse.ts#L30-L33" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "ResponseBase", "namespace": "nodes.stats" }, "properties": [ { "name": "cluster_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Stats", "namespace": "nodes._types" } } } } ], "specLocation": "nodes/stats/NodesStatsResponse.ts#L25-L28" }, { "kind": "interface", "name": { "name": "NodeUsage", "namespace": "nodes.usage" }, "properties": [ { "name": "rest_actions", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "name": "since", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "aggregations", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "nodes/usage/types.ts#L25-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get feature usage information.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "nodes.usage" }, "path": [ { "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } }, { "description": "Limits the information returned to the specific metrics.\nA comma-separated list of the following options: `_all`, `rest_actions`.", "name": "metric", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metrics", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "nodes/usage/NodesUsageRequest.ts#L24-L68" }, { "kind": "response", "body": { "kind": "value", "codegenName": "usages", "value": { "kind": "instance_of", "type": { "name": "ResponseBase", "namespace": "nodes.usage" } } }, "name": { "name": "Response", "namespace": "nodes.usage" }, "specLocation": "nodes/usage/NodesUsageResponse.ts#L30-L33" }, { "kind": "interface", "inherits": { "type": { "name": "NodesResponseBase", "namespace": "nodes._types" } }, "name": { "name": "ResponseBase", "namespace": "nodes.usage" }, "properties": [ { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeUsage", "namespace": "nodes.usage" } } } } ], "specLocation": "nodes/usage/NodesUsageResponse.ts#L25-L28" }, { "kind": "interface", "name": { "name": "QueryRule", "namespace": "query_rules._types" }, "properties": [ { "description": "A unique identifier for the rule.", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The type of rule.\n`pinned` will identify and pin specific documents to the top of search results.\n`exclude` will exclude specific documents from search results.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryRuleType", "namespace": "query_rules._types" } } }, { "description": "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.", "name": "criteria", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryRuleCriteria", "namespace": "query_rules._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRuleCriteria", "namespace": "query_rules._types" } } } ] } }, { "description": "The actions to take when the rule is matched.\nThe format of this action depends on the rule type.", "name": "actions", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryRuleActions", "namespace": "query_rules._types" } } }, { "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "query_rules/_types/QueryRuleset.ts#L36-L58" }, { "kind": "interface", "name": { "name": "QueryRuleActions", "namespace": "query_rules._types" }, "properties": [ { "description": "The unique document IDs of the documents to apply the rule to.\nOnly one of `ids` or `docs` may be specified and at least one must be specified.", "name": "ids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "description": "The documents to apply the rule to.\nOnly one of `ids` or `docs` may be specified and at least one must be specified.\nThere is a maximum value of 100 documents in a rule.\nYou can specify the following attributes for each document:\n\n* `_index`: The index of the document to pin.\n* `_id`: The unique document ID.", "name": "docs", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PinnedDoc", "namespace": "_types.query_dsl" } } } } ], "specLocation": "query_rules/_types/QueryRuleset.ts#L110-L126" }, { "kind": "interface", "name": { "name": "QueryRuleCriteria", "namespace": "query_rules._types" }, "properties": [ { "description": "The type of criteria. The following criteria types are supported:\n\n* `always`: Matches all queries, regardless of input.\n* `contains`: Matches that contain this value anywhere in the field meet the criteria defined by the rule. Only applicable for string values.\n* `exact`: Only exact matches meet the criteria defined by the rule. Applicable for string or numerical values.\n* `fuzzy`: Exact matches or matches within the allowed Levenshtein Edit Distance meet the criteria defined by the rule. Only applicable for string values.\n* `gt`: Matches with a value greater than this value meet the criteria defined by the rule. Only applicable for numerical values.\n* `gte`: Matches with a value greater than or equal to this value meet the criteria defined by the rule. Only applicable for numerical values.\n* `lt`: Matches with a value less than this value meet the criteria defined by the rule. Only applicable for numerical values.\n* `lte`: Matches with a value less than or equal to this value meet the criteria defined by the rule. Only applicable for numerical values.\n* `prefix`: Matches that start with this value meet the criteria defined by the rule. Only applicable for string values.\n* `suffix`: Matches that end with this value meet the criteria defined by the rule. Only applicable for string values.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryRuleCriteriaType", "namespace": "query_rules._types" } } }, { "description": "The metadata field to match against.\nThis metadata will be used to match against `match_criteria` sent in the rule.\nIt is required for all criteria types except `always`.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The values to match against the `metadata` field.\nOnly one value must match for the criteria to be met.\nIt is required for all criteria types except `always`.", "name": "values", "required": false, "type": { "kind": "array_of", "value": { "kind": "user_defined_value" } } } ], "specLocation": "query_rules/_types/QueryRuleset.ts#L65-L93" }, { "kind": "enum", "members": [ { "name": "global" }, { "name": "exact" }, { "name": "exact_fuzzy" }, { "name": "fuzzy" }, { "name": "prefix" }, { "name": "suffix" }, { "name": "contains" }, { "name": "lt" }, { "name": "lte" }, { "name": "gt" }, { "name": "gte" }, { "name": "always" } ], "name": { "name": "QueryRuleCriteriaType", "namespace": "query_rules._types" }, "specLocation": "query_rules/_types/QueryRuleset.ts#L95-L108" }, { "kind": "enum", "members": [ { "name": "pinned" }, { "name": "exclude" } ], "name": { "name": "QueryRuleType", "namespace": "query_rules._types" }, "specLocation": "query_rules/_types/QueryRuleset.ts#L60-L63" }, { "kind": "interface", "name": { "name": "QueryRuleset", "namespace": "query_rules._types" }, "properties": [ { "description": "A unique identifier for the ruleset.", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Rules associated with the query ruleset.", "name": "rules", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRule", "namespace": "query_rules._types" } } } } ], "specLocation": "query_rules/_types/QueryRuleset.ts#L25-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a query rule.\nDelete a query rule within a query ruleset.\nThis is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.delete_rule" }, "path": [ { "description": "The unique identifier of the query ruleset containing the rule to delete", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The unique identifier of the query rule within the specified ruleset to delete", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/delete_rule/QueryRuleDeleteRequest.ts#L22-L50" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "query_rules.delete_rule" }, "specLocation": "query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a query ruleset.\nRemove a query ruleset and its associated data.\nThis is a destructive action that is not recoverable.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.delete_ruleset" }, "path": [ { "description": "The unique identifier of the query ruleset to delete", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/delete_ruleset/QueryRulesetDeleteRequest.ts#L22-L45" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "query_rules.delete_ruleset" }, "specLocation": "query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a query rule.\nGet details about a query rule within a query ruleset.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.get_rule" }, "path": [ { "description": "The unique identifier of the query ruleset containing the rule to retrieve", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The unique identifier of the query rule within the specified ruleset to retrieve", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/get_rule/QueryRuleGetRequest.ts#L22-L50" }, { "kind": "response", "body": { "kind": "value", "codegenName": "rule", "value": { "kind": "instance_of", "type": { "name": "QueryRule", "namespace": "query_rules._types" } } }, "examples": { "QueryRuleGetResponseExample1": { "description": "A successful response from `GET _query_rules/my-ruleset/_rule/my-rule1`.", "value": "{\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"query_string\",\n \"values\": [\n \"pugs\",\n \"puggles\"\n ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "query_rules.get_rule" }, "specLocation": "query_rules/get_rule/QueryRuleGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a query ruleset.\nGet details about a query ruleset.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.get_ruleset" }, "path": [ { "description": "The unique identifier of the query ruleset", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/get_ruleset/QueryRulesetGetRequest.ts#L22-L44" }, { "kind": "response", "body": { "kind": "value", "codegenName": "ruleset", "value": { "kind": "instance_of", "type": { "name": "QueryRuleset", "namespace": "query_rules._types" } } }, "examples": { "QueryRulesetGetResponseExample1": { "description": "A successful response from `GET _query_rules/my-ruleset/`.", "value": "{\n \"ruleset_id\": \"my-ruleset\",\n \"rules\": [\n {\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"query_string\",\n \"values\": [ \"pugs\", \"puggles\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n },\n {\n \"rule_id\": \"my-rule2\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"fuzzy\",\n \"metadata\": \"query_string\",\n \"values\": [ \"rescue dogs\" ]\n }\n ],\n \"actions\": {\n \"docs\": [\n {\n \"_index\": \"index1\",\n \"_id\": \"id3\"\n },\n {\n \"_index\": \"index2\",\n \"_id\": \"id4\"\n }\n ]\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "query_rules.get_ruleset" }, "specLocation": "query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "QueryRulesetListItem", "namespace": "query_rules.list_rulesets" }, "properties": [ { "description": "A unique identifier for the ruleset.", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The number of rules associated with the ruleset.", "name": "rule_total_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A map of criteria type (for example, `exact`) to the number of rules of that type.\n\nNOTE: The counts in `rule_criteria_types_counts` may be larger than the value of `rule_total_count` because a rule may have multiple criteria.", "name": "rule_criteria_types_counts", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "description": "A map of rule type (for example, `pinned`) to the number of rules of that type.", "name": "rule_type_counts", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "query_rules/list_rulesets/types.ts#L23-L44" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get all query rulesets.\nGet summarized information about the query rulesets.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.list_rulesets" }, "path": [], "query": [ { "description": "The offset from the first result to fetch.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of results to retrieve.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "query_rules/list_rulesets/QueryRulesetListRequest.ts#L22-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRulesetListItem", "namespace": "query_rules.list_rulesets" } } } } ] }, "examples": { "QueryRulesetListResponseExample1": { "description": "A successful response from `GET _query_rules/?from=0&size=3`.", "value": "{\n \"count\": 3,\n \"results\": [\n {\n \"ruleset_id\": \"ruleset-1\",\n \"rule_total_count\": 1,\n \"rule_criteria_types_counts\": {\n \"exact\": 1\n }\n },\n {\n \"ruleset_id\": \"ruleset-2\",\n \"rule_total_count\": 2,\n \"rule_criteria_types_counts\": {\n \"exact\": 1,\n \"fuzzy\": 1\n }\n },\n {\n \"ruleset_id\": \"ruleset-3\",\n \"rule_total_count\": 3,\n \"rule_criteria_types_counts\": {\n \"exact\": 1,\n \"fuzzy\": 2\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "query_rules.list_rulesets" }, "specLocation": "query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The type of rule.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryRuleType", "namespace": "query_rules._types" } } }, { "description": "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.", "name": "criteria", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryRuleCriteria", "namespace": "query_rules._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRuleCriteria", "namespace": "query_rules._types" } } } ] } }, { "description": "The actions to take when the rule is matched.\nThe format of this action depends on the rule type.", "name": "actions", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryRuleActions", "namespace": "query_rules._types" } } }, { "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Create or update a query rule.\nCreate or update a query rule within a query ruleset.\n\nIMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule.\nIt is advised to use one or the other in query rulesets, to avoid errors.\nAdditionally, pinned queries have a maximum limit of 100 pinned hits.\nIf multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.", "examples": { "QueryRulePutRequestExample1": { "description": "Run `POST _query_rules/my-ruleset/_test` to test a ruleset. Provide the match criteria that you want to test against.\n", "value": "{\n \"match_criteria\": {\n \"query_string\": \"puggles\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.put_rule" }, "path": [ { "description": "The unique identifier of the query ruleset containing the rule to be created or updated.", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The unique identifier of the query rule within the specified ruleset to be created or updated.", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/put_rule/QueryRulePutRequest.ts#L28-L79" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "query_rules.put_rule" }, "specLocation": "query_rules/put_rule/QueryRulePutResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "rules", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "QueryRule", "namespace": "query_rules._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRule", "namespace": "query_rules._types" } } } ] } } ] }, "description": "Create or update a query ruleset.\nThere is a limit of 100 rules per ruleset.\nThis limit can be increased by using the `xpack.applications.rules.max_rules_per_ruleset` cluster setting.\n\nIMPORTANT: Due to limitations within pinned queries, you can only select documents using `ids` or `docs`, but cannot use both in single rule.\nIt is advised to use one or the other in query rulesets, to avoid errors.\nAdditionally, pinned queries have a maximum limit of 100 pinned hits.\nIf multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset.", "examples": { "QueryRulesetPutRequestExample1": { "description": "Run `PUT _query_rules/my-ruleset` to create a new query ruleset. Two rules are associated with `my-ruleset`. `my-rule1` will pin documents with IDs `id1` and `id2` when `user_query` contains `pugs` or `puggles` and `user_country` exactly matches `us`. `my-rule2` will exclude documents from different specified indices with IDs `id3` and `id4` when the `query_string` fuzzily matches `rescue dogs`.\n", "value": "{\n \"rules\": [\n {\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"user_query\",\n \"values\": [ \"pugs\", \"puggles\" ]\n },\n {\n \"type\": \"exact\",\n \"metadata\": \"user_country\",\n \"values\": [ \"us\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n },\n {\n \"rule_id\": \"my-rule2\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"fuzzy\",\n \"metadata\": \"user_query\",\n \"values\": [ \"rescue dogs\" ]\n }\n ],\n \"actions\": {\n \"docs\": [\n {\n \"_index\": \"index1\",\n \"_id\": \"id3\"\n },\n {\n \"_index\": \"index2\",\n \"_id\": \"id4\"\n }\n ]\n }\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.put_ruleset" }, "path": [ { "description": "The unique identifier of the query ruleset to be created or updated.", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "query_rules.put_ruleset" }, "specLocation": "query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26" }, { "kind": "interface", "name": { "name": "QueryRulesetMatchedRule", "namespace": "query_rules.test" }, "properties": [ { "description": "Ruleset unique identifier", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Rule unique identifier within that ruleset", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "query_rules/test/QueryRulesetTestResponse.ts#L30-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "match_criteria", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Test a query ruleset.\nEvaluate match criteria against a query ruleset to identify the rules that would match that criteria.", "examples": { "QueryRulesetTestRequestExample1": { "description": "Run `PUT _query_rules/my-ruleset` to create a new query ruleset. Two rules are associated with `my-ruleset`. `my-rule1` will pin documents with IDs `id1` and `id2` when `user_query` contains `pugs` or `puggles` and `user_country` exactly matches `us`. `my-rule2` will exclude documents from different specified indices with IDs `id3` and `id4` when the `query_string` fuzzily matches `rescue dogs`.\n", "value": "{\n \"rules\": [\n {\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"user_query\",\n \"values\": [ \"pugs\", \"puggles\" ]\n },\n {\n \"type\": \"exact\",\n \"metadata\": \"user_country\",\n \"values\": [ \"us\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n },\n {\n \"rule_id\": \"my-rule2\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"fuzzy\",\n \"metadata\": \"user_query\",\n \"values\": [ \"rescue dogs\" ]\n }\n ],\n \"actions\": {\n \"docs\": [\n {\n \"_index\": \"index1\",\n \"_id\": \"id3\"\n },\n {\n \"_index\": \"index2\",\n \"_id\": \"id4\"\n }\n ]\n }\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "query_rules.test" }, "path": [ { "description": "The unique identifier of the query ruleset to be created or updated", "name": "ruleset_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "query_rules/test/QueryRulesetTestRequest.ts#L24-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "total_matched_rules", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "matched_rules", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRulesetMatchedRule", "namespace": "query_rules.test" } } } } ] }, "examples": { "QueryRulesetTestResponseExample1": { "description": "A successful response from `POST _query_rules/my-ruleset/_test`.", "value": "{\n \"total_matched_rules\": 1,\n \"matched_rules\": [\n {\n \"ruleset_id\": \"my-ruleset\",\n \"rule_id\": \"my-rule1\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "query_rules.test" }, "specLocation": "query_rules/test/QueryRulesetTestResponse.ts#L23-L28" }, { "kind": "interface", "name": { "name": "DateHistogramGrouping", "namespace": "rollup._types" }, "properties": [ { "description": "How long to wait before rolling up new documents.\nBy default, the indexer attempts to roll up all data that is available.\nHowever, it is not uncommon for data to arrive out of order.\nThe indexer is unable to deal with data that arrives after a time-span has been rolled up.\nYou need to specify a delay that matches the longest period of time you expect out-of-order data to arrive.", "name": "delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The date field that is to be rolled up.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The interval of time buckets to be generated when rolling up.", "docId": "calendar-and-fixed-intervals", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-datehistogram-aggregation#calendar_and_fixed_intervals", "name": "calendar_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The interval of time buckets to be generated when rolling up.", "docId": "calendar-and-fixed-intervals", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-datehistogram-aggregation#calendar_and_fixed_intervals", "name": "fixed_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Defines what `time_zone` the rollup documents are stored as.\nUnlike raw data, which can shift timezones on the fly, rolled documents have to be stored with a specific timezone.\nBy default, rollup documents are stored in `UTC`.", "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ], "specLocation": "rollup/_types/Groupings.ts#L42-L73" }, { "kind": "interface", "name": { "name": "FieldMetric", "namespace": "rollup._types" }, "properties": [ { "description": "The field to collect metrics for. This must be a numeric of some kind.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "An array of metrics to collect for the field. At least one metric must be configured.", "name": "metrics", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Metric", "namespace": "rollup._types" } } } } ], "specLocation": "rollup/_types/Metric.ts#L30-L35" }, { "kind": "interface", "name": { "name": "Groupings", "namespace": "rollup._types" }, "properties": [ { "description": "A date histogram group aggregates a date field into time-based buckets.\nThis group is mandatory; you currently cannot roll up documents without a timestamp and a `date_histogram` group.", "name": "date_histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateHistogramGrouping", "namespace": "rollup._types" } } }, { "description": "The histogram group aggregates one or more numeric fields into numeric histogram intervals.", "name": "histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "HistogramGrouping", "namespace": "rollup._types" } } }, { "description": "The terms group can be used on keyword or numeric fields to allow bucketing via the terms aggregation at a later point.\nThe indexer enumerates and stores all values of a field for each time-period.\nThis can be potentially costly for high-cardinality groups such as IP addresses, especially if the time-bucket is particularly sparse.", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsGrouping", "namespace": "rollup._types" } } } ], "specLocation": "rollup/_types/Groupings.ts#L24-L40" }, { "kind": "interface", "name": { "name": "HistogramGrouping", "namespace": "rollup._types" }, "properties": [ { "description": "The set of fields that you wish to build histograms for.\nAll fields specified must be some kind of numeric.\nOrder does not matter.", "name": "fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "description": "The interval of histogram buckets to be generated when rolling up.\nFor example, a value of `5` creates buckets that are five units wide (`0-5`, `5-10`, etc).\nNote that only one interval can be specified in the histogram group, meaning that all fields being grouped via the histogram must share the same interval.", "name": "interval", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "rollup/_types/Groupings.ts#L84-L97" }, { "kind": "enum", "members": [ { "name": "min" }, { "name": "max" }, { "name": "sum" }, { "name": "avg" }, { "name": "value_count" } ], "name": { "name": "Metric", "namespace": "rollup._types" }, "specLocation": "rollup/_types/Metric.ts#L22-L28" }, { "kind": "interface", "name": { "name": "TermsGrouping", "namespace": "rollup._types" }, "properties": [ { "description": "The set of fields that you wish to collect terms for.\nThis array can contain fields that are both keyword and numerics.\nOrder does not matter.", "name": "fields", "required": true, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "rollup/_types/Groupings.ts#L75-L82" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Delete a rollup job.\n\nA job must be stopped before it can be deleted.\nIf you attempt to delete a started job, an error occurs.\nSimilarly, if you attempt to delete a nonexistent job, an exception occurs.\n\nIMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data.\nThe API does not delete any previously rolled up data.\nThis is by design; a user may wish to roll up a static data set.\nBecause the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data).\nThus the job can be deleted, leaving behind the rolled up data for analysis.\nIf you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index.\nIf the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example:\n\n```\nPOST my_rollup_index/_delete_by_query\n{\n \"query\": {\n \"term\": {\n \"_rollup.id\": \"the_rollup_job_id\"\n }\n }\n}\n```", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.delete_job" }, "path": [ { "description": "Identifier for the job.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "rollup/delete_job/DeleteRollupJobRequest.ts#L23-L67" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "task_failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TaskFailure", "namespace": "_types" } } } } ] }, "examples": { "DeleteRollupJobResponseExample1": { "description": "A successful response from `DELETE _rollup/job/sensor`.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "rollup.delete_job" }, "specLocation": "rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27" }, { "kind": "enum", "members": [ { "name": "started" }, { "name": "indexing" }, { "name": "stopping" }, { "name": "stopped" }, { "name": "aborting" } ], "name": { "name": "IndexingJobState", "namespace": "rollup.get_jobs" }, "specLocation": "rollup/get_jobs/types.ts#L77-L83" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Get rollup job information.\nGet the configuration, stats, and status of rollup jobs.\n\nNOTE: This API returns only active (both `STARTED` and `STOPPED`) jobs.\nIf a job was created, ran for a while, then was deleted, the API does not return any details about it.\nFor details about a historical rollup job, the rollup capabilities API may be more useful.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.get_jobs" }, "path": [ { "description": "Identifier for the rollup job.\nIf it is `_all` or omitted, the API returns all rollup jobs.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "rollup/get_jobs/GetRollupJobRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "jobs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RollupJob", "namespace": "rollup.get_jobs" } } } } ] }, "examples": { "GetRollupJobResponseExample1": { "description": "A successful response from `GET _rollup/job/sensor`.", "value": "{\n \"jobs\": [\n {\n \"config\": {\n \"id\": \"sensor\",\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"groups\": {\n \"date_histogram\": {\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\",\n \"field\": \"timestamp\",\n \"time_zone\": \"UTC\"\n },\n \"terms\": {\n \"fields\": [\n \"node\"\n ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [\n \"min\",\n \"max\",\n \"sum\"\n ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [\n \"avg\"\n ]\n }\n ],\n \"timeout\": \"20s\",\n \"page_size\": 1000\n },\n \"status\": {\n \"job_state\": \"stopped\"\n },\n \"stats\": {\n \"pages_processed\": 0,\n \"documents_processed\": 0,\n \"rollups_indexed\": 0,\n \"trigger_count\": 0,\n \"index_failures\": 0,\n \"index_time_in_ms\": 0,\n \"index_total\": 0,\n \"search_failures\": 0,\n \"search_time_in_ms\": 0,\n \"search_total\": 0,\n \"processing_time_in_ms\": 0,\n \"processing_total\": 0\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "rollup.get_jobs" }, "specLocation": "rollup/get_jobs/GetRollupJobResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "RollupJob", "namespace": "rollup.get_jobs" }, "properties": [ { "description": "The rollup job configuration.", "name": "config", "required": true, "type": { "kind": "instance_of", "type": { "name": "RollupJobConfiguration", "namespace": "rollup.get_jobs" } } }, { "description": "Transient statistics about the rollup job, such as how many documents have been processed and how many rollup summary docs have been indexed.\nThese stats are not persisted.\nIf a node is restarted, these stats are reset.", "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "RollupJobStats", "namespace": "rollup.get_jobs" } } }, { "description": "The current status of the indexer for the rollup job.", "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "RollupJobStatus", "namespace": "rollup.get_jobs" } } } ], "specLocation": "rollup/get_jobs/types.ts#L28-L43" }, { "kind": "interface", "name": { "name": "RollupJobConfiguration", "namespace": "rollup.get_jobs" }, "properties": [ { "name": "cron", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "groups", "required": true, "type": { "kind": "instance_of", "type": { "name": "Groupings", "namespace": "rollup._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index_pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "metrics", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldMetric", "namespace": "rollup._types" } } } }, { "name": "page_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "rollup_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "timeout", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "rollup/get_jobs/types.ts#L45-L54" }, { "kind": "interface", "name": { "name": "RollupJobStats", "namespace": "rollup.get_jobs" }, "properties": [ { "name": "documents_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "index_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "pages_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "rollups_indexed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "search_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "search_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "search_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "trigger_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "processing_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "processing_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "rollup/get_jobs/types.ts#L56-L69" }, { "kind": "interface", "name": { "name": "RollupJobStatus", "namespace": "rollup.get_jobs" }, "properties": [ { "name": "current_position", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "job_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexingJobState", "namespace": "rollup.get_jobs" } } }, { "name": "upgraded_doc_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "rollup/get_jobs/types.ts#L71-L75" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Get the rollup job capabilities.\nGet the capabilities of any rollup jobs that have been configured for a specific index or index pattern.\n\nThis API is useful because a rollup job is often configured to rollup only a subset of fields from the source index.\nFurthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration.\nThis API enables you to inspect an index and determine:\n\n1. Does this index have associated rollup data somewhere in the cluster?\n2. If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live?", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.get_rollup_caps" }, "path": [ { "description": "Index, indices or index-pattern to return rollup capabilities for.\n`_all` may be used to fetch rollup capabilities from all jobs.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "rollup/get_rollup_caps/GetRollupCapabilitiesRequest.ts#L23-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "capabilities", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RollupCapabilities", "namespace": "rollup.get_rollup_caps" } } } }, "examples": { "GetRollupCapabilitiesResponseExample1": { "description": "A successful response from `GET _rollup/data/sensor-*` for a rollup job that targets the index pattern `sensor-*`. The response contains the rollup job ID, the index that holds the rolled data, and the index pattern that the job was targeting. It also shows a list of fields that contain data eligible for rollup searches. For example, you can use a `min`, `max`, or `sum` aggregation on the `temperature` field, but only a `date_histogram` on `timestamp`.\n", "value": "{\n \"sensor-*\" : {\n \"rollup_jobs\" : [\n {\n \"job_id\" : \"sensor\",\n \"rollup_index\" : \"sensor_rollup\",\n \"index_pattern\" : \"sensor-*\",\n \"fields\" : {\n \"node\" : [\n {\n \"agg\" : \"terms\"\n }\n ],\n \"temperature\" : [\n {\n \"agg\" : \"min\"\n },\n {\n \"agg\" : \"max\"\n },\n {\n \"agg\" : \"sum\"\n }\n ],\n \"timestamp\" : [\n {\n \"agg\" : \"date_histogram\",\n \"time_zone\" : \"UTC\",\n \"fixed_interval\" : \"1h\",\n \"delay\": \"7d\"\n }\n ],\n \"voltage\" : [\n {\n \"agg\" : \"avg\"\n }\n ]\n }\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "rollup.get_rollup_caps" }, "specLocation": "rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27" }, { "kind": "interface", "name": { "name": "RollupCapabilities", "namespace": "rollup.get_rollup_caps" }, "properties": [ { "description": "There can be multiple, independent jobs configured for a single index or index pattern. Each of these jobs may have different configurations, so the API returns a list of all the various configurations available.", "name": "rollup_jobs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RollupCapabilitySummary", "namespace": "rollup.get_rollup_caps" } } } } ], "specLocation": "rollup/get_rollup_caps/types.ts#L24-L29" }, { "kind": "interface", "name": { "name": "RollupCapabilitySummary", "namespace": "rollup.get_rollup_caps" }, "properties": [ { "name": "fields", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RollupFieldSummary", "namespace": "rollup.get_rollup_caps" } } } } }, { "name": "index_pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "rollup_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "rollup/get_rollup_caps/types.ts#L31-L36" }, { "kind": "interface", "name": { "name": "RollupFieldSummary", "namespace": "rollup.get_rollup_caps" }, "properties": [ { "name": "agg", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "calendar_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ], "specLocation": "rollup/get_rollup_caps/types.ts#L38-L42" }, { "kind": "interface", "name": { "name": "IndexCapabilities", "namespace": "rollup.get_rollup_index_caps" }, "properties": [ { "name": "rollup_jobs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RollupJobSummary", "namespace": "rollup.get_rollup_index_caps" } } } } ], "specLocation": "rollup/get_rollup_index_caps/types.ts#L24-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Get the rollup index capabilities.\nGet the rollup capabilities of all jobs inside of a rollup index.\nA single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine:\n\n* What jobs are stored in an index (or indices specified via a pattern)?\n* What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job?", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.get_rollup_index_caps" }, "path": [ { "description": "Data stream or index to check for rollup capabilities.\nWildcard (`*`) expressions are supported.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [], "specLocation": "rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "value", "codegenName": "capabilities", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexCapabilities", "namespace": "rollup.get_rollup_index_caps" } } } }, "examples": { "GetRollupIndexCapabilitiesResponseExample1": { "description": "A successful response from `GET /sensor_rollup/_rollup/data`. The response contains the rollup job ID, the index that holds the rolled data, and the index pattern that the job was targeting. It also shows a list of fields that contain data eligible for rollup searches. For example, you can use a `min`, `max`, or `sum` aggregation on the `temperature` field, but only a `date_histogram` on `timestamp`.\n", "value": "{\n \"sensor_rollup\" : {\n \"rollup_jobs\" : [\n {\n \"job_id\" : \"sensor\",\n \"rollup_index\" : \"sensor_rollup\",\n \"index_pattern\" : \"sensor-*\",\n \"fields\" : {\n \"node\" : [\n {\n \"agg\" : \"terms\"\n }\n ],\n \"temperature\" : [\n {\n \"agg\" : \"min\"\n },\n {\n \"agg\" : \"max\"\n },\n {\n \"agg\" : \"sum\"\n }\n ],\n \"timestamp\" : [\n {\n \"agg\" : \"date_histogram\",\n \"time_zone\" : \"UTC\",\n \"fixed_interval\" : \"1h\",\n \"delay\": \"7d\"\n }\n ],\n \"voltage\" : [\n {\n \"agg\" : \"avg\"\n }\n ]\n }\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "rollup.get_rollup_index_caps" }, "specLocation": "rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27" }, { "kind": "interface", "name": { "name": "RollupJobSummary", "namespace": "rollup.get_rollup_index_caps" }, "properties": [ { "name": "fields", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RollupJobSummaryField", "namespace": "rollup.get_rollup_index_caps" } } } } }, { "name": "index_pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "job_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "rollup_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "rollup/get_rollup_index_caps/types.ts#L28-L33" }, { "kind": "interface", "name": { "name": "RollupJobSummaryField", "namespace": "rollup.get_rollup_index_caps" }, "properties": [ { "name": "agg", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "time_zone", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } }, { "name": "calendar_interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "rollup/get_rollup_index_caps/types.ts#L35-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "cron", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "groups", "required": true, "type": { "kind": "instance_of", "type": { "name": "Groupings", "namespace": "rollup._types" } } }, { "description": "The index or index pattern to roll up. Supports wildcard-style patterns (`logstash-*`). The job attempts to\nrollup the entire index or index-pattern.", "name": "index_pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "metrics", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldMetric", "namespace": "rollup._types" } } } }, { "description": "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.", "name": "page_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "rollup_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "Time to wait for the request to complete.", "name": "timeout", "required": false, "serverDefault": "20s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "headers", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpHeaders", "namespace": "_types" } } } ] }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Create a rollup job.\n\nWARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run.\n\nThe rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index.\n\nThere are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group.\n\nJobs are created in a `STOPPED` state. You can start them with the start rollup jobs API.", "examples": { "CreateRollupJobRequestExample1": { "description": "Run `PUT _rollup/job/sensor` to create a rollup job that targets the `sensor-*` index pattern. This configuration enables date histograms to be used on the `timestamp` field and terms aggregations to be used on the `node` field. This configuration defines metrics over two fields: `temperature` and `voltage`. For the `temperature` field, it collects the `min`, `max`, and `sum` of the temperature. For `voltage`, it collects the `average`.\n", "value": "{\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"page_size\": 1000,\n \"groups\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\"\n },\n \"terms\": {\n \"fields\": [ \"node\" ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [ \"min\", \"max\", \"sum\" ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [ \"avg\" ]\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.put_job" }, "path": [ { "description": "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.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "rollup/put_job/CreateRollupJobRequest.ts#L27-L105" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "CreateRollupJobResponseExample1": { "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "rollup.put_job" }, "specLocation": "rollup/put_job/CreateRollupJobResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "aliases": [ "aggs" ], "description": "Specifies aggregations.", "extDocId": "rollup-agg-limitations", "extDocUrl": "https://www.elastic.co/docs/manage-data/lifecycle/rollup/rollup-aggregation-limitations", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Specifies a DSL query that is subject to some limitations.", "extDocId": "rollup-search-limitations", "extDocUrl": "https://www.elastic.co/docs/manage-data/lifecycle/rollup/rollup-search-limitations", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "Must be zero if set, as rollups work on pre-aggregated data.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Search rolled-up data.\nThe rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data.\nIt rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query.\n\nThe request body supports a subset of features from the regular search API.\nThe following functionality is not available:\n\n`size`: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely.\n`highlighter`, `suggestors`, `post_filter`, `profile`, `explain`: These are similarly disallowed.\n\n**Searching both historical rollup and non-rollup data**\n\nThe rollup search API has the capability to search across both \"live\" non-rollup data and the aggregated rollup data.\nThis is done by simply adding the live indices to the URI. For example:\n\n```\nGET sensor-1,sensor_rollup/_rollup_search\n{\n \"size\": 0,\n \"aggregations\": {\n \"max_temperature\": {\n \"max\": {\n \"field\": \"temperature\"\n }\n }\n }\n}\n```\n\nThe rollup search endpoint does two things when the search runs:\n\n* The original request is sent to the non-rollup index unaltered.\n* A rewritten version of the original request is sent to the rollup index.\n\nWhen the two responses are received, the endpoint rewrites the rollup response and merges the two together.\nDuring the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used.", "examples": { "RollupSearchRequestExample1": { "description": "Search rolled up data stored in `sensor_rollup` with `GET /sensor_rollup/_rollup_search`", "value": "{\n \"size\": 0,\n \"aggregations\": {\n \"max_temperature\": {\n \"max\": {\n \"field\": \"temperature\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.rollup_search" }, "path": [ { "description": "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.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "name": "rest_total_hits_as_int", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specify whether aggregation and suggester names should be prefixed by their respective types in the response", "name": "typed_keys", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "rollup/rollup_search/RollupSearchRequest.ts#L27-L109" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "terminated_early", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "hits", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "rollup.rollup_search.Response" } } ], "type": { "name": "HitsMetadata", "namespace": "_global.search._types" } } }, { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Aggregate", "namespace": "_types.aggregations" } } } } ] }, "examples": { "RollupSearchResponseExample1": { "description": "An abbreviated response from `GET /sensor_rollup/_rollup_search` with a `max` aggregation on a `temperature` field. The response provides some metadata about the request (`took`, `_shards`), the search hits (which is always empty for rollup searches), and the aggregation response.\n", "value": "{\n \"took\" : 102,\n \"timed_out\" : false,\n \"terminated_early\" : false,\n \"_shards\" : {} ,\n \"hits\" : {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n },\n \"max_score\" : 0.0,\n \"hits\" : [ ]\n },\n \"aggregations\" : {\n \"max_temperature\" : {\n \"value\" : 202.0\n }\n }\n}" } }, "generics": [ { "name": "TDocument", "namespace": "rollup.rollup_search.Response" } ], "name": { "name": "Response", "namespace": "rollup.rollup_search" }, "specLocation": "rollup/rollup_search/RollupSearchResponse.ts#L27-L36" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Start rollup jobs.\nIf you try to start a job that does not exist, an exception occurs.\nIf you try to start a job that is already started, nothing happens.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.start_job" }, "path": [ { "description": "Identifier for the rollup job.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "rollup/start_job/StartRollupJobRequest.ts#L23-L46" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "started", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "StartRollupJobResponseExample1": { "description": "A successful response from `POST _rollup/job/sensor/_start`.", "value": "{\n \"started\": true\n}" } }, "name": { "name": "Response", "namespace": "rollup.start_job" }, "specLocation": "rollup/start_job/StartRollupJobResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "8.11.0" }, "description": "Stop rollup jobs.\nIf you try to stop a job that does not exist, an exception occurs.\nIf you try to stop a job that is already stopped, nothing happens.\n\nSince only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped.\nThis is accomplished with the `wait_for_completion` query parameter, and optionally a timeout. For example:\n\n```\nPOST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s\n```\nThe parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed.\nIf the specified time elapses without the job moving to STOPPED, a timeout exception occurs.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "rollup.stop_job" }, "path": [ { "description": "Identifier for the rollup job.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "rollup/stop_job/StopRollupJobRequest.ts#L24-L73" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "stopped", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "rollup.stop_job" }, "specLocation": "rollup/stop_job/StopRollupJobResponse.ts#L20-L22" }, { "kind": "interface", "name": { "name": "AnalyticsCollection", "namespace": "search_application._types" }, "properties": [ { "description": "Data stream for the collection.", "name": "event_data_stream", "required": true, "type": { "kind": "instance_of", "type": { "name": "EventDataStream", "namespace": "search_application._types" } } } ], "specLocation": "search_application/_types/BehavioralAnalytics.ts#L22-L27" }, { "kind": "interface", "name": { "name": "EventDataStream", "namespace": "search_application._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "specLocation": "search_application/_types/BehavioralAnalytics.ts#L29-L31" }, { "kind": "enum", "members": [ { "codegenName": "PageView", "name": "page_view" }, { "codegenName": "Search", "name": "search" }, { "codegenName": "SearchClick", "name": "search_click" } ], "name": { "name": "EventType", "namespace": "search_application._types" }, "specLocation": "search_application/_types/AnalyticsEvent.ts#L22-L26" }, { "kind": "interface", "inherits": { "type": { "name": "SearchApplicationParameters", "namespace": "search_application._types" } }, "name": { "name": "SearchApplication", "namespace": "search_application._types" }, "properties": [ { "description": "Search Application name", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Last time the Search Application was updated.", "name": "updated_at_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "search_application/_types/SearchApplication.ts#L24-L33" }, { "kind": "interface", "name": { "name": "SearchApplicationParameters", "namespace": "search_application._types" }, "properties": [ { "description": "Indices that are part of the Search Application.", "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "description": "Analytics collection associated to the Search Application.", "name": "analytics_collection_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Search template to use on search operations.", "name": "template", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchApplicationTemplate", "namespace": "search_application._types" } } } ], "specLocation": "search_application/_types/SearchApplicationParameters.ts#L23-L36" }, { "kind": "interface", "name": { "name": "SearchApplicationTemplate", "namespace": "search_application._types" }, "properties": [ { "description": "The associated mustache template.", "name": "script", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "search_application/_types/SearchApplicationTemplate.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a search application.\n\nRemove a search application and its associated alias. Indices attached to the search application are not removed.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.delete" }, "path": [ { "description": "The name of the search application to delete.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "search_application/delete/SearchApplicationsDeleteRequest.ts#L22-L46" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "search_application.delete" }, "specLocation": "search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Delete a behavioral analytics collection.\nThe associated data stream is also deleted.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.delete_behavioral_analytics" }, "path": [ { "description": "The name of the analytics collection to be deleted", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteRequest.ts#L22-L45" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "search_application.delete_behavioral_analytics" }, "specLocation": "search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get search application details.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.get" }, "path": [ { "description": "The name of the search application", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "search_application/get/SearchApplicationsGetRequest.ts#L22-L43" }, { "kind": "response", "body": { "kind": "value", "codegenName": "search_application", "value": { "kind": "instance_of", "type": { "name": "SearchApplication", "namespace": "search_application._types" } } }, "examples": { "SearchApplicationGetResponseExample1": { "description": "A sucessful response from `GET _application/search_application/my-app/`.", "value": "{\n \"name\": \"my-app\",\n \"indices\": [ \"index1\", \"index2\" ],\n \"updated_at_millis\": 1682105622204,\n \"template\": {\n \"script\": {\n \"source\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"{{query_string}}\",\n \"default_field\": \"{{default_field}}\"\n }\n }\n },\n \"lang\": \"mustache\",\n \"options\": {\n \"content_type\": \"application/json;charset=utf-8\"\n },\n \"params\": {\n \"query_string\": \"*\",\n \"default_field\": \"*\"\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "search_application.get" }, "specLocation": "search_application/get/SearchApplicationsGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Get behavioral analytics collections.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.get_behavioral_analytics" }, "path": [ { "description": "A list of analytics collections to limit the returned information", "name": "name", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } } ], "query": [], "specLocation": "search_application/get_behavioral_analytics/BehavioralAnalyticsGetRequest.ts#L22-L48" }, { "kind": "response", "body": { "kind": "value", "codegenName": "analytics", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AnalyticsCollection", "namespace": "search_application._types" } } } }, "examples": { "BehavioralAnalyticsGetResponseExample1": { "description": "A successful response from `GET _application/analytics/my*`", "value": "{\n \"my_analytics_collection\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection\"\n }\n },\n \"my_analytics_collection2\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection2\"\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "search_application.get_behavioral_analytics" }, "specLocation": "search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get search applications.\nGet information about search applications.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.list" }, "path": [], "query": [ { "description": "Query in the Lucene query string syntax.", "name": "q", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Starting offset.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies a max number of results to get.", "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "search_application/list/SearchApplicationsListRequest.ts#L22-L53" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "results", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SearchApplication", "namespace": "search_application._types" } } } } ] }, "examples": { "SearchApplicationsListResponseExample1": { "description": "A succesful response from `GET _application/search_application?from=0&size=3&q=app*` returns the first three search applications whose names start with `app`.", "value": "{\n \"count\": 2,\n \"results\": [\n {\n \"name\": \"app-1\",\n \"updated_at_millis\": 1690981129366\n },\n {\n \"name\": \"app-2\",\n \"updated_at_millis\": 1691501823939\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "search_application.list" }, "specLocation": "search_application/list/SearchApplicationsListResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "payload", "value": { "kind": "user_defined_value" } }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Create a behavioral analytics collection event.", "examples": { "BehavioralAnalyticsEventPostRequestExample1": { "description": "Run `POST _application/analytics/my_analytics_collection/event/search_click` to send a `search_click` event to an analytics collection called `my_analytics_collection`.", "value": "{\n \"session\": {\n \"id\": \"1797ca95-91c9-4e2e-b1bd-9c38e6f386a9\"\n },\n \"user\": {\n \"id\": \"5f26f01a-bbee-4202-9298-81261067abbd\"\n },\n \"search\":{\n \"query\": \"search term\",\n \"results\": {\n \"items\": [\n {\n \"document\": {\n \"id\": \"123\",\n \"index\": \"products\"\n }\n }\n ],\n \"total_results\": 10\n },\n \"sort\": {\n \"name\": \"relevance\"\n },\n \"search_application\": \"website\"\n },\n \"document\":{\n \"id\": \"123\",\n \"index\": \"products\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.post_behavioral_analytics_event" }, "path": [ { "description": "The name of the behavioral analytics collection.", "name": "collection_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The analytics event type.", "name": "event_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "EventType", "namespace": "search_application._types" } } } ], "query": [ { "description": "Whether the response type has to include more details", "name": "debug", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "accepted", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "event", "required": false, "type": { "kind": "user_defined_value" } } ] }, "exceptions": [ { "body": { "kind": "no_body" }, "description": "\nEvent has been accepted and will be ingested.", "statusCodes": [ 202 ] }, { "body": { "kind": "no_body" }, "description": "\nEither the event type is unknown or the event payload contains invalid data.", "statusCodes": [ 400 ] }, { "body": { "kind": "no_body" }, "description": "\nAnalytics collection does not exist.", "statusCodes": [ 404 ] } ], "name": { "name": "Response", "namespace": "search_application.post_behavioral_analytics_event" }, "specLocation": "search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostResponse.ts#L22-L47" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "search_application", "value": { "kind": "instance_of", "type": { "name": "SearchApplicationParameters", "namespace": "search_application._types" } } }, "description": "Create or update a search application.", "examples": { "SearchApplicationPutRequestExample1": { "description": "Run `PUT _application/search_application/my-app` to create or update a search application called `my-app`. When the dictionary parameter is specified, the search application search API will perform the following parameter validation: it accepts only the `query_string` and `default_field` parameters; it verifies that `query_string` and `default_field` are both strings; it accepts `default_field` only if it takes the values title or description. If the parameters are not valid, the search application search API will return an error.\n", "value": "{\n \"indices\": [ \"index1\", \"index2\" ],\n \"template\": {\n \"script\": {\n \"source\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"{{query_string}}\",\n \"default_field\": \"{{default_field}}\"\n }\n }\n },\n \"params\": {\n \"query_string\": \"*\",\n \"default_field\": \"*\"\n }\n },\n \"dictionary\": {\n \"properties\": {\n \"query_string\": {\n \"type\": \"string\"\n },\n \"default_field\": {\n \"type\": \"string\",\n \"enum\": [\n \"title\",\n \"description\"\n ]\n },\n \"additionalProperties\": false\n },\n \"required\": [\n \"query_string\"\n ]\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.put" }, "path": [ { "description": "The name of the search application to be created or updated.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, this request cannot replace or update existing Search Applications.", "name": "create", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "search_application/put/SearchApplicationsPutRequest.ts#L23-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "search_application.put" }, "specLocation": "search_application/put/SearchApplicationsPutResponse.ts#L22-L26" }, { "kind": "interface", "inherits": { "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } }, "name": { "name": "AnalyticsAcknowledgeResponseBase", "namespace": "search_application.put_behavioral_analytics" }, "properties": [ { "description": "The name of the analytics collection created or updated", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L28-L33" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "deprecation": { "description": "", "version": "9.0.0" }, "description": "Create a behavioral analytics collection.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.put_behavioral_analytics" }, "path": [ { "description": "The name of the analytics collection to be created or updated.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutRequest.ts#L22-L44" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AnalyticsAcknowledgeResponseBase", "namespace": "search_application.put_behavioral_analytics" } } }, "name": { "name": "Response", "namespace": "search_application.put_behavioral_analytics" }, "specLocation": "search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Render a search application query.\nGenerate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified.\nIf a parameter used in the search template is not specified in `params`, the parameter's default value will be used.\nThe API returns the specific Elasticsearch query that would be generated and run by calling the search application search API.\n\nYou must have `read` privileges on the backing alias of the search application.", "examples": { "SearchApplicationsRenderQueryRequestExample1": { "description": "Run `POST _application/search_application/my-app/_render_query` to generate a query for a search application called `my-app` that uses the search template.", "value": "{\n \"params\": {\n \"query_string\": \"my first query\",\n \"text_fields\": [\n {\n \"name\": \"title\",\n \"boost\": 5\n },\n {\n \"name\": \"description\",\n \"boost\": 1\n }\n ]\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.render_query" }, "path": [ { "description": "The name of the search application to render teh query for.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "examples": { "SearchApplicationsRenderQueryResponseExample1": { "description": "A successful response for generating a query for a search application. The `from`, `size`, and `explain` parameters were not specified in the request, so the default values specified in the search template are used.", "value": "{\n \"from\": 0,\n \"size\": 10,\n \"query\": {\n \"multi_match\": {\n \"query\": \"my first query\",\n \"fields\": [\n \"description^1.0\",\n \"title^5.0\"\n ]\n }\n },\n \"explain\": false\n}" } }, "name": { "name": "Response", "namespace": "search_application.render_query" }, "specLocation": "search_application/render_query/SearchApplicationsRenderQueryResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Query parameters specific to this request, which will override any defaults specified in the template.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Run a search application search.\nGenerate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template.\nUnspecified template parameters are assigned their default values if applicable.", "examples": { "SearchApplicationsSearchRequestExample1": { "description": "Use `POST _application/search_application/my-app/_search` to run a search against a search application called `my-app` that uses a search template.", "value": "{\n \"params\": {\n \"query_string\": \"my first query\",\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 5},\n {\"name\": \"description\", \"boost\": 1}\n ]\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "search_application.search" }, "path": [ { "description": "The name of the search application to be searched.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "availability": { "serverless": {}, "stack": { "since": "8.14.0" } }, "description": "Determines whether aggregation names are prefixed by their respective types in the response.", "name": "typed_keys", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "search_application/search/SearchApplicationsSearchRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "TDocument", "namespace": "search_application.search.Response" } } ], "type": { "name": "ResponseBody", "namespace": "_global.search" } } }, "generics": [ { "name": "TDocument", "namespace": "search_application.search.Response" } ], "name": { "name": "Response", "namespace": "search_application.search" }, "specLocation": "search_application/search/SearchApplicationsSearchResponse.ts#L22-L25" }, { "kind": "enum", "members": [ { "name": "cluster" }, { "name": "indices" }, { "name": "shards" } ], "name": { "name": "StatsLevel", "namespace": "searchable_snapshots._types" }, "specLocation": "searchable_snapshots/_types/stats.ts#L20-L24" }, { "kind": "interface", "name": { "name": "Node", "namespace": "searchable_snapshots.cache_stats" }, "properties": [ { "name": "shared_cache", "required": true, "type": { "kind": "instance_of", "type": { "name": "Shared", "namespace": "searchable_snapshots.cache_stats" } } } ], "specLocation": "searchable_snapshots/cache_stats/Response.ts#L30-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get cache statistics.\nGet statistics about the shared cache for partially mounted indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "searchable_snapshots.cache_stats" }, "path": [ { "description": "The names of the nodes in the cluster to target.", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [ { "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "searchable_snapshots/cache_stats/Request.ts#L24-L53" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Node", "namespace": "searchable_snapshots.cache_stats" } } } } ] }, "examples": { "CacheStatsResponseExample1": { "description": "A successful response from `GET /_searchable_snapshots/cache/stats`.", "value": "{\n \"nodes\" : {\n \"eerrtBMtQEisohZzxBLUSw\" : {\n \"shared_cache\" : {\n \"reads\" : 6051,\n \"bytes_read_in_bytes\" : 5448829,\n \"writes\" : 37,\n \"bytes_written_in_bytes\" : 1208320,\n \"evictions\" : 5,\n \"num_regions\" : 65536,\n \"size_in_bytes\" : 1099511627776,\n \"region_size_in_bytes\" : 16777216\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "searchable_snapshots.cache_stats" }, "specLocation": "searchable_snapshots/cache_stats/Response.ts#L24-L28" }, { "kind": "interface", "name": { "name": "Shared", "namespace": "searchable_snapshots.cache_stats" }, "properties": [ { "name": "reads", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "bytes_read_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "writes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "bytes_written_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "evictions", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "num_regions", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "region_size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "searchable_snapshots/cache_stats/Response.ts#L34-L43" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the cache.\nClear indices and data streams from the shared cache for partially mounted indices.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "searchable_snapshots.clear_cache" }, "path": [ { "description": "A comma-separated list of data streams, indices, and aliases to clear from the cache.\nIt supports wildcards (`*`).", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both.", "name": "expand_wildcards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", "name": "allow_no_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", "name": "ignore_unavailable", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L56" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "user_defined_value" } }, "name": { "name": "Response", "namespace": "searchable_snapshots.clear_cache" }, "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "MountedSnapshot", "namespace": "searchable_snapshots.mount" }, "properties": [ { "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "name": "shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ], "specLocation": "searchable_snapshots/mount/types.ts#L23-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The name of the index that will be created.", "name": "renamed_index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The settings that should be added to the index when it is mounted.", "name": "index_settings", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "The names of settings that should be removed from the index when it is mounted.", "name": "ignore_index_settings", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Mount a snapshot.\nMount a snapshot as a searchable snapshot index.\nDo not use this API for snapshots managed by index lifecycle management (ILM).\nManually mounting ILM-managed snapshots can interfere with ILM processes.", "examples": { "SearchableSnapshotsMountSnapshotRequestExample1": { "description": "Run `POST /_snapshot/my_repository/my_snapshot/_mount?wait_for_completion=true` to mount the index `my_docs` from an existing snapshot named `my_snapshot` stored in `my_repository` as a new index `docs`.\n", "summary": null, "value": "{\n \"index\": \"my_docs\",\n \"renamed_index\": \"docs\",\n \"index_settings\": {\n \"index.number_of_replicas\": 0\n },\n \"ignore_index_settings\": [ \"index.refresh_interval\" ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "searchable_snapshots.mount" }, "path": [ { "description": "The name of the repository containing the snapshot of the index to mount.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the snapshot of the index to mount.", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If true, the request blocks until the operation is complete.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The mount option for the searchable snapshot index.", "name": "storage", "required": false, "serverDefault": "full_copy", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "MountedSnapshot", "namespace": "searchable_snapshots.mount" } } } ] }, "name": { "name": "Response", "namespace": "searchable_snapshots.mount" }, "specLocation": "searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get searchable snapshot statistics.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "searchable_snapshots.stats" }, "path": [ { "description": "A comma-separated list of data streams and indices to retrieve statistics for.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "query": [ { "description": "Return stats aggregated at cluster, index or shard level", "name": "level", "required": false, "type": { "kind": "instance_of", "type": { "name": "StatsLevel", "namespace": "searchable_snapshots._types" } } } ], "specLocation": "searchable_snapshots/stats/SearchableSnapshotsStatsRequest.ts#L24-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "stats", "required": true, "type": { "kind": "user_defined_value" } }, { "name": "total", "required": true, "type": { "kind": "user_defined_value" } } ] }, "name": { "name": "Response", "namespace": "searchable_snapshots.stats" }, "specLocation": "searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27" }, { "kind": "interface", "name": { "name": "Access", "namespace": "security._types" }, "properties": [ { "description": "A list of indices permission entries for cross-cluster replication.", "name": "replication", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ReplicationAccess", "namespace": "security._types" } } } }, { "description": "A list of indices permission entries for cross-cluster search.", "name": "search", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SearchAccess", "namespace": "security._types" } } } } ], "specLocation": "security/_types/Access.ts#L22-L31" }, { "kind": "interface", "name": { "name": "ApiKey", "namespace": "security._types" }, "properties": [ { "description": "Id for the API key", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Name of the API key.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.10.0" } }, "description": "The type of the API key (e.g. `rest` or `cross_cluster`).", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ApiKeyType", "namespace": "security._types" } } }, { "description": "Creation time for the API key in milliseconds.", "name": "creation", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Expiration time for the API key in milliseconds.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Invalidation status for the API key.\nIf the key has been invalidated, it has a value of `true`. Otherwise, it is `false`.", "name": "invalidated", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.12.0" } }, "description": "If the key has been invalidated, invalidation time in milliseconds.", "name": "invalidation", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "Principal for which this API key was created", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "description": "Realm name of the principal for which this API key was created.", "name": "realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.14.0" } }, "description": "Realm type of the principal for which this API key was created", "name": "realm_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "description": "Metadata of the API key", "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The role descriptors assigned to this API key when it was created or last updated.\nAn empty role descriptor means the API key inherits the owner user’s permissions.", "name": "role_descriptors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.5.0" } }, "description": "The owner user’s permissions associated with the API key.\nIt is a point-in-time snapshot captured at creation and subsequent updates.\nAn API key’s effective permissions are an intersection of its assigned privileges and the owner user’s permissions.", "name": "limited_by", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.10.0" } }, "description": "The access granted to cross-cluster API keys.\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.", "name": "access", "required": false, "type": { "kind": "instance_of", "type": { "name": "Access", "namespace": "security._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.14.0" } }, "description": "The profile uid for the API key owner principal, if requested and if it exists", "name": "profile_uid", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Sorting values when using the `sort` parameter with the `security.query_api_keys` API.", "name": "_sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ], "specLocation": "security/_types/ApiKey.ts#L27-L113" }, { "kind": "enum", "members": [ { "name": "rest" }, { "name": "cross_cluster" } ], "name": { "name": "ApiKeyType", "namespace": "security._types" }, "specLocation": "security/_types/ApiKey.ts#L115-L118" }, { "kind": "interface", "name": { "name": "ApplicationGlobalUserPrivileges", "namespace": "security._types" }, "properties": [ { "name": "manage", "required": true, "type": { "kind": "instance_of", "type": { "name": "ManageUserPrivileges", "namespace": "security._types" } } } ], "specLocation": "security/_types/Privileges.ts#L436-L438" }, { "kind": "interface", "name": { "name": "ApplicationPrivileges", "namespace": "security._types" }, "properties": [ { "description": "The name of the application to which this entry applies.", "name": "application", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of strings, where each element is the name of an application privilege or action.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A list resources to which the privileges are applied.", "name": "resources", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/_types/Privileges.ts#L27-L40" }, { "kind": "interface", "name": { "name": "BulkError", "namespace": "security._types" }, "properties": [ { "description": "The number of errors", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Details about the errors, keyed by role name", "name": "details", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } } ], "specLocation": "security/_types/Bulk.ts#L24-L33" }, { "kind": "interface", "name": { "name": "ClusterNode", "namespace": "security._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "security/_types/ClusterNode.ts#L22-L24" }, { "kind": "enum", "isOpen": true, "members": [ { "name": "all" }, { "name": "cancel_task" }, { "availability": { "stack": {} }, "name": "create_snapshot" }, { "availability": { "stack": {} }, "name": "cross_cluster_replication" }, { "availability": { "stack": {} }, "name": "cross_cluster_search" }, { "availability": { "stack": {} }, "name": "delegate_pki" }, { "availability": { "stack": {} }, "name": "grant_api_key" }, { "name": "manage" }, { "name": "manage_api_key" }, { "availability": { "stack": {} }, "name": "manage_autoscaling" }, { "name": "manage_behavioral_analytics" }, { "availability": { "stack": {} }, "name": "manage_ccr" }, { "availability": { "stack": {} }, "name": "manage_data_frame_transforms" }, { "availability": { "stack": {} }, "name": "manage_data_stream_global_retention" }, { "name": "manage_enrich" }, { "name": "manage_esql" }, { "availability": { "stack": {} }, "name": "manage_ilm" }, { "name": "manage_index_templates" }, { "name": "manage_inference" }, { "name": "manage_ingest_pipelines" }, { "name": "manage_logstash_pipelines" }, { "name": "manage_ml" }, { "availability": { "stack": {} }, "name": "manage_oidc" }, { "name": "manage_own_api_key" }, { "name": "manage_pipeline" }, { "availability": { "stack": {} }, "name": "manage_rollup" }, { "availability": { "stack": {} }, "name": "manage_saml" }, { "name": "manage_search_application" }, { "name": "manage_search_query_rules" }, { "name": "manage_search_synonyms" }, { "name": "manage_security" }, { "availability": { "stack": {} }, "name": "manage_service_account" }, { "availability": { "stack": {} }, "name": "manage_slm" }, { "availability": { "stack": {} }, "name": "manage_token" }, { "name": "manage_transform" }, { "availability": { "stack": {} }, "name": "manage_user_profile" }, { "availability": { "stack": {} }, "name": "manage_watcher" }, { "name": "monitor" }, { "availability": { "stack": {} }, "name": "monitor_data_frame_transforms" }, { "availability": { "stack": {} }, "name": "monitor_data_stream_global_retention" }, { "name": "monitor_enrich" }, { "name": "monitor_esql" }, { "name": "monitor_inference" }, { "name": "monitor_ml" }, { "availability": { "stack": {} }, "name": "monitor_rollup" }, { "availability": { "stack": {} }, "name": "monitor_snapshot" }, { "availability": { "stack": { "since": "8.17.0" } }, "name": "monitor_stats" }, { "availability": { "stack": {} }, "name": "monitor_text_structure" }, { "name": "monitor_transform" }, { "availability": { "stack": {} }, "name": "monitor_watcher" }, { "name": "none" }, { "name": "post_behavioral_analytics_event" }, { "availability": { "stack": {} }, "name": "read_ccr" }, { "availability": { "stack": {} }, "name": "read_fleet_secrets" }, { "availability": { "stack": {} }, "name": "read_ilm" }, { "name": "read_pipeline" }, { "name": "read_security" }, { "availability": { "stack": {} }, "name": "read_slm" }, { "availability": { "stack": {} }, "name": "transport_client" }, { "availability": { "stack": {} }, "name": "write_connector_secrets" }, { "availability": { "stack": {} }, "name": "write_fleet_secrets" } ], "name": { "name": "ClusterPrivilege", "namespace": "security._types" }, "specLocation": "security/_types/Privileges.ts#L42-L201" }, { "kind": "interface", "name": { "name": "CreatedStatus", "namespace": "security._types" }, "properties": [ { "name": "created", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/CreatedStatus.ts#L20-L22" }, { "kind": "interface", "name": { "name": "FieldSecurity", "namespace": "security._types" }, "properties": [ { "name": "except", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } }, { "name": "grant", "required": false, "type": { "kind": "instance_of", "type": { "name": "Fields", "namespace": "_types" } } } ], "specLocation": "security/_types/FieldSecurity.ts#L22-L25" }, { "kind": "interface", "name": { "name": "GlobalPrivilege", "namespace": "security._types" }, "properties": [ { "name": "application", "required": true, "type": { "kind": "instance_of", "type": { "name": "ApplicationGlobalUserPrivileges", "namespace": "security._types" } } } ], "specLocation": "security/_types/Privileges.ts#L432-L434" }, { "kind": "enum", "members": [ { "description": "In this type of grant, you must supply the user ID and password for which you want to create the API key.", "name": "password" }, { "description": "In this type of grant, you must supply an access token that was created by the Elasticsearch token service.\nIf you are activating a user profile, you can alternatively supply a JWT (either a JWT `access_token` or a JWT `id_token`).", "name": "access_token" } ], "name": { "name": "GrantType", "namespace": "security._types" }, "specLocation": "security/_types/GrantType.ts#L20-L30" }, { "kind": "enum", "isOpen": true, "members": [ { "name": "all" }, { "name": "auto_configure" }, { "name": "create" }, { "name": "create_doc" }, { "name": "create_index" }, { "availability": { "stack": {} }, "name": "cross_cluster_replication" }, { "availability": { "stack": {} }, "name": "cross_cluster_replication_internal" }, { "name": "delete" }, { "name": "delete_index" }, { "name": "index" }, { "name": "maintenance" }, { "name": "manage" }, { "name": "manage_data_stream_lifecycle" }, { "availability": { "stack": {} }, "name": "manage_follow_index" }, { "availability": { "stack": {} }, "name": "manage_ilm" }, { "availability": { "stack": {} }, "name": "manage_leader_index" }, { "name": "monitor" }, { "name": "none" }, { "name": "read" }, { "availability": { "stack": {} }, "name": "read_cross_cluster" }, { "name": "view_index_metadata" }, { "name": "write" } ], "name": { "name": "IndexPrivilege", "namespace": "security._types" }, "specLocation": "security/_types/Privileges.ts#L388-L430" }, { "kind": "interface", "name": { "name": "IndicesPrivileges", "namespace": "security._types" }, "properties": [ { "description": "The document fields that the owners of the role have read access to.", "extDocId": "field-and-document-access-control", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-access-at-document-field-level", "name": "field_security", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldSecurity", "namespace": "security._types" } } }, { "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", "name": "names", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "description": "The index level privileges that owners of the role have on the specified indices.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilege", "namespace": "security._types" } } } }, { "description": "A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesPrivilegesQuery", "namespace": "security._types" } } }, { "availability": { "stack": {} }, "description": "Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.", "name": "allow_restricted_indices", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/Privileges.ts#L218-L244" }, { "kind": "type_alias", "codegenNames": [ "json_text", "query", "template" ], "description": "While creating or updating a role you can provide either a JSON structure or a string to the API.\nHowever, the response provided by Elasticsearch will only be string with a json-as-text content.\n\nSince this is embedded in `IndicesPrivileges`, the same structure is used for clarity in both contexts.", "name": { "name": "IndicesPrivilegesQuery", "namespace": "security._types" }, "specLocation": "security/_types/Privileges.ts#L343-L351", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } }, { "kind": "instance_of", "type": { "name": "RoleTemplateQuery", "namespace": "security._types" } } ] } }, { "kind": "interface", "name": { "name": "ManageUserPrivileges", "namespace": "security._types" }, "properties": [ { "name": "applications", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/_types/Privileges.ts#L440-L442" }, { "kind": "interface", "name": { "name": "RealmInfo", "namespace": "security._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/_types/RealmInfo.ts#L22-L25" }, { "kind": "enum", "members": [ { "availability": { "stack": { "since": "8.14.0" } }, "name": "monitor_enrich" }, { "availability": { "stack": { "since": "8.17.0" } }, "name": "monitor_stats" } ], "name": { "name": "RemoteClusterPrivilege", "namespace": "security._types" }, "specLocation": "security/_types/Privileges.ts#L203-L215" }, { "kind": "interface", "description": "The subset of cluster level privileges that can be defined for remote clusters.", "name": { "name": "RemoteClusterPrivileges", "namespace": "security._types" }, "properties": [ { "description": "A list of cluster aliases to which the permissions in this entry apply.", "name": "clusters", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "The cluster level privileges that owners of the role have on the remote cluster.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivilege", "namespace": "security._types" } } } } ], "specLocation": "security/_types/Privileges.ts#L280-L292" }, { "kind": "interface", "description": "The subset of index level privileges that can be defined for remote clusters.", "name": { "name": "RemoteIndicesPrivileges", "namespace": "security._types" }, "properties": [ { "description": "A list of cluster aliases to which the permissions in this entry apply.", "name": "clusters", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } }, { "description": "The document fields that the owners of the role have read access to.", "extDocId": "field-and-document-access-control", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-access-at-document-field-level", "name": "field_security", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldSecurity", "namespace": "security._types" } } }, { "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", "name": "names", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "description": "The index level privileges that owners of the role have on the specified indices.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilege", "namespace": "security._types" } } } }, { "description": "A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesPrivilegesQuery", "namespace": "security._types" } } }, { "availability": { "stack": {} }, "description": "Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.", "name": "allow_restricted_indices", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/Privileges.ts#L246-L278" }, { "kind": "interface", "name": { "name": "RemoteUserIndicesPrivileges", "namespace": "security._types" }, "properties": [ { "description": "The document fields that the owners of the role have read access to.", "extDocId": "field-and-document-access-control", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-access-at-document-field-level", "name": "field_security", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldSecurity", "namespace": "security._types" } } } }, { "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", "name": "names", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "description": "The index level privileges that owners of the role have on the specified indices.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilege", "namespace": "security._types" } } } }, { "description": "Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role.", "name": "query", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesPrivilegesQuery", "namespace": "security._types" } } } }, { "description": "Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.", "name": "allow_restricted_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "clusters", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/_types/Privileges.ts#L318-L341" }, { "kind": "interface", "name": { "name": "ReplicationAccess", "namespace": "security._types" }, "properties": [ { "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", "name": "names", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "description": "This needs to be set to true if the patterns in the names field should cover system indices.", "name": "allow_restricted_indices", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/Privileges.ts#L444-L454" }, { "kind": "interface", "name": { "name": "Restriction", "namespace": "security._types" }, "properties": [ { "description": "A list of workflows to which the API key is restricted.\nNOTE: In order to use a role restriction, an API key must be created with a single role descriptor.", "name": "workflows", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RestrictionWorkflow", "namespace": "security._types" } } } } ], "specLocation": "security/_types/RoleDescriptor.ts#L135-L141" }, { "kind": "enum", "isOpen": true, "members": [ { "name": "search_application_query" } ], "name": { "name": "RestrictionWorkflow", "namespace": "security._types" }, "specLocation": "security/_types/RoleDescriptor.ts#L143-L146" }, { "kind": "interface", "name": { "name": "RoleDescriptor", "namespace": "security._types" }, "properties": [ { "description": "A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.", "name": "cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "aliases": [ "index" ], "description": "A list of indices permissions entries.", "name": "indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.14.0" } }, "description": "A list of indices permissions for remote clusters.", "name": "remote_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteIndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.15.0" } }, "description": "A list of cluster permissions for remote clusters.\nNOTE: This is limited a subset of the cluster permissions.", "name": "remote_cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": {} }, "description": "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.", "name": "global", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GlobalPrivilege", "namespace": "security._types" } } }, { "kind": "instance_of", "type": { "name": "GlobalPrivilege", "namespace": "security._types" } } ] } }, { "description": "A list of application privilege entries", "name": "applications", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivileges", "namespace": "security._types" } } } }, { "description": "Optional meta-data. Within the metadata object, keys that begin with `_` are reserved for system usage.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "A list of users that the API keys can impersonate.\nNOTE: In Elastic Cloud Serverless, the run-as feature is disabled.\nFor API compatibility, you can still specify an empty `run_as` field, but a non-empty list will be rejected.", "extDocId": "run-as-privilege", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/submitting-requests-on-behalf-of-other-users", "name": "run_as", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Optional description of the role descriptor", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Restriction for when the role descriptor is allowed to be effective.", "name": "restriction", "required": false, "type": { "kind": "instance_of", "type": { "name": "Restriction", "namespace": "security._types" } } }, { "name": "transient_metadata", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "security/_types/RoleDescriptor.ts#L33-L83" }, { "kind": "interface", "attachedBehaviors": [ "OverloadOf" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } ], "type": { "name": "OverloadOf", "namespace": "_spec_utils" } } ], "name": { "name": "RoleDescriptorRead", "namespace": "security._types" }, "properties": [ { "description": "A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute.", "name": "cluster", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "aliases": [ "index" ], "description": "A list of indices permissions entries.", "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.14.0" } }, "description": "A list of indices permissions for remote clusters.", "name": "remote_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteIndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.15.0" } }, "description": "A list of cluster permissions for remote clusters.\nNOTE: This is limited a subset of the cluster permissions.", "name": "remote_cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": {} }, "description": "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.", "name": "global", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GlobalPrivilege", "namespace": "security._types" } } }, { "kind": "instance_of", "type": { "name": "GlobalPrivilege", "namespace": "security._types" } } ] } }, { "description": "A list of application privilege entries", "name": "applications", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivileges", "namespace": "security._types" } } } }, { "description": "Optional meta-data. Within the metadata object, keys that begin with `_` are reserved for system usage.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "A list of users that the API keys can impersonate.", "extDocId": "run-as-privilege", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/submitting-requests-on-behalf-of-other-users", "name": "run_as", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "An optional description of the role descriptor.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A restriction for when the role descriptor is allowed to be effective.", "extDocId": "role-restriction", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/role-restriction", "name": "restriction", "required": false, "type": { "kind": "instance_of", "type": { "name": "Restriction", "namespace": "security._types" } } }, { "name": "transient_metadata", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "security/_types/RoleDescriptor.ts#L85-L133" }, { "kind": "interface", "name": { "name": "RoleMapping", "namespace": "security._types" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "role_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RoleTemplate", "namespace": "security._types" } } } }, { "name": "rules", "required": true, "type": { "kind": "instance_of", "type": { "name": "RoleMappingRule", "namespace": "security._types" } } } ], "specLocation": "security/_types/RoleMapping.ts#L25-L33" }, { "kind": "interface", "name": { "name": "RoleMappingRule", "namespace": "security._types" }, "properties": [ { "name": "any", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RoleMappingRule", "namespace": "security._types" } } } }, { "name": "all", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RoleMappingRule", "namespace": "security._types" } } } }, { "name": "field", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } ] } } }, { "name": "except", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoleMappingRule", "namespace": "security._types" } } } ], "specLocation": "security/_types/RoleMappingRule.ts#L23-L31", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "RoleTemplate", "namespace": "security._types" }, "properties": [ { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "TemplateFormat", "namespace": "security._types" } } }, { "name": "template", "required": true, "type": { "kind": "instance_of", "type": { "name": "Script", "namespace": "_types" } } } ], "specLocation": "security/_types/RoleTemplate.ts#L28-L31" }, { "kind": "type_alias", "codegenNames": [ "query_string", "query_object" ], "name": { "name": "RoleTemplateInlineQuery", "namespace": "security._types" }, "specLocation": "security/_types/Privileges.ts#L385-L386", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } ] } }, { "kind": "interface", "name": { "name": "RoleTemplateQuery", "namespace": "security._types" }, "properties": [ { "description": "When you create a role, you can specify a query that defines the document level security permissions. You can optionally\nuse Mustache templates in the role query to insert the username of the current authenticated user into the role.\nLike other places in Elasticsearch that support templating or scripting, you can specify inline, stored, or file-based\ntemplates and define custom parameters. You access the details for the current authenticated user through the _user parameter.", "extDocId": "templating-role-query", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-access-at-document-field-level#templating-role-query", "name": "template", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoleTemplateScript", "namespace": "security._types" } } } ], "specLocation": "security/_types/Privileges.ts#L353-L363" }, { "kind": "interface", "name": { "name": "RoleTemplateScript", "namespace": "security._types" }, "properties": [ { "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoleTemplateInlineQuery", "namespace": "security._types" } } }, { "description": "The `id` for a stored script.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Specifies any named parameters that are passed into the script as variables.\nUse parameters instead of hard-coded values to decrease compile time.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "Specifies the language the script is written in.", "name": "lang", "required": false, "serverDefault": "painless", "type": { "kind": "instance_of", "type": { "name": "ScriptLanguage", "namespace": "_types" } } }, { "name": "options", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "shortcutProperty": "source", "specLocation": "security/_types/Privileges.ts#L365-L383" }, { "kind": "interface", "name": { "name": "SearchAccess", "namespace": "security._types" }, "properties": [ { "description": "The document fields that the owners of the role have read access to.", "extDocId": "field-and-document-access-control", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-access-at-document-field-level", "name": "field_security", "required": false, "type": { "kind": "instance_of", "type": { "name": "FieldSecurity", "namespace": "security._types" } } }, { "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", "name": "names", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "description": "A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesPrivilegesQuery", "namespace": "security._types" } } }, { "availability": { "stack": {} }, "description": "Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.", "name": "allow_restricted_indices", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/Privileges.ts#L456-L476" }, { "kind": "interface", "name": { "name": "SecuritySettings", "namespace": "security._types" }, "properties": [ { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } } ], "specLocation": "security/_types/SecuritySettings.ts#L22-L24" }, { "kind": "enum", "members": [ { "name": "string" }, { "name": "json" } ], "name": { "name": "TemplateFormat", "namespace": "security._types" }, "specLocation": "security/_types/RoleTemplate.ts#L22-L25" }, { "kind": "interface", "name": { "name": "User", "namespace": "security._types" }, "properties": [ { "name": "email", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "full_name", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "profile_uid", "required": false, "type": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } ], "specLocation": "security/_types/User.ts#L23-L31" }, { "kind": "interface", "name": { "name": "UserIndicesPrivileges", "namespace": "security._types" }, "properties": [ { "description": "The document fields that the owners of the role have read access to.", "extDocId": "field-and-document-access-control", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/controlling-access-at-document-field-level", "name": "field_security", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldSecurity", "namespace": "security._types" } } } }, { "description": "A list of indices (or index name patterns) to which the permissions in this entry apply.", "name": "names", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ] } }, { "description": "The index level privileges that owners of the role have on the specified indices.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilege", "namespace": "security._types" } } } }, { "description": "Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role.", "name": "query", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesPrivilegesQuery", "namespace": "security._types" } } } }, { "description": "Set to `true` if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the `names` list, Elasticsearch checks privileges against these indices regardless of the value set for `allow_restricted_indices`.", "name": "allow_restricted_indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/Privileges.ts#L294-L316" }, { "kind": "interface", "name": { "name": "UserProfile", "namespace": "security._types" }, "properties": [ { "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } }, { "name": "user", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserProfileUser", "namespace": "security._types" } } }, { "name": "data", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "labels", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/_types/UserProfile.ts#L41-L47" }, { "kind": "interface", "name": { "name": "UserProfileHitMetadata", "namespace": "security._types" }, "properties": [ { "name": "_primary_term", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } } ], "specLocation": "security/_types/UserProfile.ts#L27-L30" }, { "kind": "type_alias", "name": { "name": "UserProfileId", "namespace": "security._types" }, "specLocation": "security/_types/UserProfile.ts#L25-L25", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "UserProfileUser", "namespace": "security._types" }, "properties": [ { "name": "email", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "full_name", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "realm_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "realm_domain", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "specLocation": "security/_types/UserProfile.ts#L32-L39" }, { "kind": "interface", "inherits": { "type": { "name": "UserProfile", "namespace": "security._types" } }, "name": { "name": "UserProfileWithMetadata", "namespace": "security._types" }, "properties": [ { "name": "last_synchronized", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_doc", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserProfileHitMetadata", "namespace": "security._types" } } } ], "specLocation": "security/_types/UserProfile.ts#L49-L52" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "access_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of grant.", "name": "grant_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "GrantType", "namespace": "security._types" } } }, { "description": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types.", "name": "password", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Activate a user profile.\n\nCreate or update a user profile on behalf of another user.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nThe calling application must have either an `access_token` or a combination of `username` and `password` for the user that the profile document is intended for.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nThis API creates or updates a profile document for end users with information that is extracted from the user's authentication object including `username`, `full_name,` `roles`, and the authentication realm.\nFor example, in the JWT `access_token` case, the profile user's `username` is extracted from the JWT token claim pointed to by the `claims.principal` setting of the JWT realm that authenticated the token.\n\nWhen updating a profile document, the API enables the document if it was disabled.\nAny updates do not change existing content for either the `labels` or `data` fields.", "examples": { "ActivateUserProfileRequestExample1": { "description": "Run `POST /_security/profile/_activate` to activate a user profile.\n", "value": "{\n \"grant_type\": \"password\",\n \"username\" : \"jacknich\",\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.activate_user_profile" }, "path": [], "query": [], "specLocation": "security/activate_user_profile/Request.ts#L23-L76" }, { "kind": "response", "body": { "kind": "value", "codegenName": "user_profile", "value": { "kind": "instance_of", "type": { "name": "UserProfileWithMetadata", "namespace": "security._types" } } }, "examples": { "ActivateUserProfileResponseExample1": { "description": "A successful response from `POST /_security/profile/_activate`.", "value": "{\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\"\n },\n \"labels\": {},\n \"data\": {},\n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n}" } }, "name": { "name": "Response", "namespace": "security.activate_user_profile" }, "specLocation": "security/activate_user_profile/Response.ts#L22-L25" }, { "kind": "interface", "name": { "name": "AuthenticateApiKey", "namespace": "security.authenticate" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "security/authenticate/SecurityAuthenticateResponse.ts#L44-L47" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Authenticate a user.\n\nAuthenticates a user and returns information about the authenticated user.\nInclude the user information in a [basic auth header](https://en.wikipedia.org/wiki/Basic_access_authentication).\nA successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user.\nIf the user cannot be authenticated, this API returns a 401 status code.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.authenticate" }, "path": [], "query": [], "specLocation": "security/authenticate/SecurityAuthenticateRequest.ts#L22-L41" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "api_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "AuthenticateApiKey", "namespace": "security.authenticate" } } }, { "name": "authentication_realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "RealmInfo", "namespace": "security._types" } } }, { "name": "email", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "full_name", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "lookup_realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "RealmInfo", "namespace": "security._types" } } }, { "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "authentication_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "name": "token", "required": false, "type": { "kind": "instance_of", "type": { "name": "Token", "namespace": "security.authenticate" } } } ] }, "examples": { "SecurityAuthenticateResponseExample1": { "description": "A successful response from `GET /_security/_authenticate`.", "value": "{\n \"username\": \"rdeniro\",\n \"roles\": [\n \"admin\"\n ],\n \"full_name\": null,\n \"email\": null,\n \"metadata\": { },\n \"enabled\": true,\n \"authentication_realm\": {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\": {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\": \"realm\"\n}" } }, "name": { "name": "Response", "namespace": "security.authenticate" }, "specLocation": "security/authenticate/SecurityAuthenticateResponse.ts#L24-L42" }, { "kind": "interface", "name": { "name": "Token", "namespace": "security.authenticate" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "name": "type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/authenticate/types.ts#L22-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "An array of role names to delete", "name": "names", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Bulk delete roles.\n\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe bulk delete roles API cannot delete roles that are defined in roles files.", "examples": { "SecurityBulkDeleteRoleRequestExample1": { "description": "Run DELETE /_security/role` to delete `my_admin_role` and `my_user_role` roles.\n", "summary": "Bulk delete example 1", "value": "{\n \"names\": [\"my_admin_role\", \"my_user_role\"]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.bulk_delete_role" }, "path": [], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Array of deleted roles", "name": "deleted", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Array of roles that could not be found", "name": "not_found", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Present if any deletes resulted in errors", "name": "errors", "required": false, "type": { "kind": "instance_of", "type": { "name": "BulkError", "namespace": "security._types" } } } ] }, "examples": { "SecurityBulkDeleteRoleResponseExample1": { "description": "A successful response from `DELETE /_security/role`.", "summary": "A successful response", "value": "{\n \"deleted\": [\n \"my_admin_role\",\n \"my_user_role\"\n ]\n}" }, "SecurityBulkDeleteRoleResponseExample2": { "description": "A partially successful response from `DELETE /_security/role`. If a role cannot be found, it appears in the `not_found` list in the response.\n", "summary": "A response with not_found roles", "value": "{\n \"deleted\": [\n \"my_admin_role\"\n ],\n \"not_found\": [\n \"not_an_existing_role\"\n ]\n}" }, "SecurityBulkDeleteRoleResponseExample3": { "description": "A partially successful response from `DELETE /_security/role`. If part of a request fails or is invalid, the response includes `errors`.\n", "summary": "A response with errors", "value": "{\n \"deleted\": [\n \"my_admin_role\"\n ],\n \"errors\": {\n \"count\": 1,\n \"details\": {\n \"superuser\": {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"role [superuser] is reserved and cannot be deleted\"\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.bulk_delete_role" }, "specLocation": "security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A dictionary of role name to RoleDescriptor objects to add or update", "name": "roles", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } } ] }, "description": "Bulk create or update roles.\n\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe bulk create or update roles API cannot update roles that are defined in roles files.", "examples": { "SecurityBulkPutRoleRequestExample1": { "description": "Run `POST /_security/role` to add roles called `my_admin_role` and `my_user_role`.\n", "summary": "Bulk role success", "value": "{\n \"roles\": {\n \"my_admin_role\": {\n \"cluster\": [\n \"all\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\",\n \"index2\"\n ],\n \"privileges\": [\n \"all\"\n ],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n },\n \"my_user_role\": {\n \"cluster\": [\n \"all\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n }\n }\n}" }, "SecurityBulkPutRoleRequestExample2": { "description": "Because errors are handled individually for each role create or update, the API allows partial success. For example, `POST /_security/role` would throw an error for `my_admin_role` because the privilege `bad_cluster_privilege` doesn't exist, but would be successful for the `my_user_role`.\n", "summary": "Bulk role errors", "value": "{\n \"roles\": {\n \"my_admin_role\": {\n \"cluster\": [\n \"bad_cluster_privilege\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\",\n \"index2\"\n ],\n \"privileges\": [\"all\"],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n },\n \"my_user_role\": {\n \"cluster\": [\n \"all\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n }\n }\n}" }, "SecurityBulkPutRoleRequestExample3": { "description": "Run `POST /_security/role/only_remote_access_role` to configure a role with remote indices and remote cluster privileges for a remote cluster.", "summary": "Role example 3", "value": "{\n \"remote_indices\": [\n {\n \"clusters\": [\"my_remote\"], \n \"names\": [\"logs*\"], \n \"privileges\": [\"read\", \"read_cross_cluster\", \"view_index_metadata\"] \n }\n ],\n \"remote_cluster\": [\n {\n \"clusters\": [\"my_remote\"], \n \"privileges\": [\"monitor_stats\"] \n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.bulk_put_role" }, "path": [], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Array of created roles", "name": "created", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Array of updated roles", "name": "updated", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Array of role names without any changes", "name": "noop", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Present if any updates resulted in errors", "name": "errors", "required": false, "type": { "kind": "instance_of", "type": { "name": "BulkError", "namespace": "security._types" } } } ] }, "examples": { "SecurityBulkPutRoleResponseExample1": { "description": "A successful response from `POST /_security/role/my_admin_role` returns a JSON structure that shows whether the role has been created, updated, or had no changes made.\n", "summary": "A successful response", "value": "{\n \"created\": [ \n \"my_admin_role\", \n \"my_user_role\"\n ]\n}" }, "SecurityBulkPutRoleResponseExample2": { "description": "A partially successful response from `POST /_security/role`. Errors are handled individually for each role create or update, thus the API allows partial success. In this example, the creation of the `my_user_role` role succeeds and the `my_admin_role` role fails.\n", "summary": "A partially successful response", "value": "{\n \"created\": [\n \"my_user_role\" \n ],\n \"errors\": { \n \"count\": 1, \n \"details\": {\n \"my_admin_role\": { \n \"type\": \"action_request_validation_exception\",\n \"reason\": \"Validation Failed: 1: unknown cluster privilege [bad_cluster_privilege]. a privilege must be either one of the predefined cluster privilege names [manage_own_api_key,manage_data_stream_global_retention,monitor_data_stream_global_retention,none,cancel_task,cross_cluster_replication,cross_cluster_search,delegate_pki,grant_api_key,manage_autoscaling,manage_index_templates,manage_logstash_pipelines,manage_oidc,manage_saml,manage_search_application,manage_search_query_rules,manage_search_synonyms,manage_service_account,manage_token,manage_user_profile,monitor_connector,monitor_enrich,monitor_inference,monitor_ml,monitor_rollup,monitor_snapshot,monitor_stats,monitor_text_structure,monitor_watcher,post_behavioral_analytics_event,read_ccr,read_connector_secrets,read_fleet_secrets,read_ilm,read_pipeline,read_security,read_slm,transport_client,write_connector_secrets,write_fleet_secrets,create_snapshot,manage_behavioral_analytics,manage_ccr,manage_connector,manage_enrich,manage_ilm,manage_inference,manage_ml,manage_rollup,manage_slm,manage_watcher,monitor_data_frame_transforms,monitor_transform,manage_api_key,manage_ingest_pipelines,manage_pipeline,manage_data_frame_transforms,manage_transform,manage_security,monitor,manage,all] or a pattern over one of the available cluster actions;\"\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.bulk_put_role" }, "specLocation": "security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Expiration time for the API keys.\nBy default, API keys never expire.\nThis property can be omitted to leave the value unchanged.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The API key identifiers.", "name": "ids", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "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.", "name": "role_descriptors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } } ] }, "description": "Bulk update API keys.\nUpdate the attributes for multiple API keys.\n\nIMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required.\n\nThis API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates.\n\nIt is not possible to update expired or invalidated API keys.\n\nThis API supports updates to API key access scope, metadata and expiration.\nThe access scope of each API key is derived from the `role_descriptors` you specify in the request and a snapshot of the owner user's permissions at the time of the request.\nThe snapshot of the owner's permissions is updated automatically on every call.\n\nIMPORTANT: If you don't specify `role_descriptors` in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified.\n\nA successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update.", "examples": { "SecurityBulkUpdateApiKeysRequestExample1": { "description": "Assign new role descriptors and metadata and update the expiration time for two API keys.", "value": "{\n \"ids\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"role_descriptors\": {\n \"role-a\": {\n \"indices\": [\n {\n \"names\": [\n \"*\"\n ],\n \"privileges\": [\n \"write\"\n ]\n }\n ]\n }\n },\n \"metadata\": {\n \"environment\": {\n \"level\": 2,\n \"trusted\": true,\n \"tags\": [\n \"production\"\n ]\n }\n },\n \"expiration\": \"30d\"\n}" }, "SecurityBulkUpdateApiKeysRequestExample2": { "description": "Remove the previously assigned permissions for two API keys, making them inherit the owner user's full permissions.", "value": "{\n \"ids\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"role_descriptors\": {}\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.bulk_update_api_keys" }, "path": [], "query": [], "specLocation": "security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "errors", "required": false, "type": { "kind": "instance_of", "type": { "name": "BulkError", "namespace": "security._types" } } }, { "name": "noops", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "updated", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "examples": { "SecurityBulkUpdateApiKeysResponseExample1": { "description": "A successful response from updating two API keys.", "value": "{\n \"updated\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"noops\": []\n}" } }, "name": { "name": "Response", "namespace": "security.bulk_update_api_keys" }, "specLocation": "security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts#L22-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The new password value. Passwords must be at least 6 characters long.", "name": "password", "required": false, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } }, { "description": "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.", "name": "password_hash", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Change passwords.\n\nChange the passwords of users in the native realm and built-in users.", "examples": { "SecurityChangePasswordRequestExample1": { "description": "Run `POST /_security/user/jacknich/_password` to update the password for the `jacknich` user.\n", "value": "{\n \"password\" : \"new-test-password\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.change_password" }, "path": [ { "description": "The user whose password you want to change. If you do not specify this\nparameter, the password is changed for the current user.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/change_password/SecurityChangePasswordRequest.ts#L23-L65" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "security.change_password" }, "specLocation": "security/change_password/SecurityChangePasswordResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the API key cache.\n\nEvict a subset of all entries from the API key cache.\nThe cache is also automatically cleared on state changes of the security index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.clear_api_key_cache" }, "path": [ { "description": "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.", "name": "ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } } ], "query": [], "specLocation": "security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "codegenName": "node_stats", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterNode", "namespace": "security._types" } } } } ] }, "name": { "name": "Response", "namespace": "security.clear_api_key_cache" }, "specLocation": "security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the privileges cache.\n\nEvict privileges from the native application privilege cache.\nThe cache is also automatically cleared for applications that have their privileges updated.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.clear_cached_privileges" }, "path": [ { "description": "A comma-separated list of applications.\nTo clear all applications, use an asterism (`*`).\nIt does not support other wildcard patterns.", "name": "application", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "security/clear_cached_privileges/SecurityClearCachedPrivilegesRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "codegenName": "node_stats", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterNode", "namespace": "security._types" } } } } ] }, "name": { "name": "Response", "namespace": "security.clear_cached_privileges" }, "specLocation": "security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the user cache.\n\nEvict users from the user cache.\nYou can completely clear the cache or evict specific users.\n\nUser credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request.\nThere are realm settings that you can use to configure the user cache.\nFor more information, refer to the documentation about controlling the user cache.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.clear_cached_realms" }, "path": [ { "description": "A comma-separated list of realms.\nTo clear all realms, use an asterisk (`*`).\nIt does not support other wildcard patterns.", "name": "realms", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "usernames", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/clear_cached_realms/SecurityClearCachedRealmsRequest.ts#L23-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "codegenName": "node_stats", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterNode", "namespace": "security._types" } } } } ] }, "name": { "name": "Response", "namespace": "security.clear_cached_realms" }, "specLocation": "security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear the roles cache.\n\nEvict roles from the native role cache.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.clear_cached_roles" }, "path": [ { "description": "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.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [], "specLocation": "security/clear_cached_roles/ClearCachedRolesRequest.ts#L23-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "codegenName": "node_stats", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterNode", "namespace": "security._types" } } } } ] }, "name": { "name": "Response", "namespace": "security.clear_cached_roles" }, "specLocation": "security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clear service account token caches.\n\nEvict a subset of all entries from the service account token caches.\nTwo separate caches exist for service account tokens: one cache for tokens backed by the `service_tokens` file, and another for tokens backed by the `.security` index.\nThis API clears matching entries from both caches.\n\nThe cache for service account tokens backed by the `.security` index is cleared automatically on state changes of the security index.\nThe cache for tokens backed by the `service_tokens` file is cleared automatically on file changes.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.clear_cached_service_tokens" }, "path": [ { "description": "The namespace, which is a top-level grouping of service accounts.", "name": "namespace", "required": true, "type": { "kind": "instance_of", "type": { "name": "Namespace", "namespace": "_types" } } }, { "description": "The name of the service, which must be unique within its namespace.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "Service", "namespace": "_types" } } }, { "description": "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.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [], "specLocation": "security/clear_cached_service_tokens/ClearCachedServiceTokensRequest.ts#L23-L58" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "codegenName": "node_stats", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ClusterNode", "namespace": "security._types" } } } } ] }, "name": { "name": "Response", "namespace": "security.clear_cached_service_tokens" }, "specLocation": "security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The expiration time for the API key.\nBy default, API keys never expire.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "A name for the API key.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "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.", "extDocId": "security-api-put-role", "extDocUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role", "name": "role_descriptors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ] }, "description": "Create an API key.\n\nCreate an API key for access without requiring basic authentication.\n\nIMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges.\nIf you specify privileges, the API returns an error.\n\nA successful request returns a JSON structure that contains the API key, its unique id, and its name.\nIf applicable, it also returns expiration information for the API key in milliseconds.\n\nNOTE: By default, API keys never expire. You can specify expiration information when you create the API keys.\n\nThe API keys are created by the Elasticsearch API key service, which is automatically enabled.\nTo configure or turn off the API key service, refer to API key service setting documentation.", "examples": { "SecurityCreateApiKeyRequestExample1": { "description": "Run `POST /_security/api_key` to create an API key. If `expiration` is not provided, the API keys do not expire. If `role_descriptors` is not provided, the permissions of the authenticated user are applied.\n", "value": "{\n \"name\": \"my-api-key\",\n \"expiration\": \"1d\", \n \"role_descriptors\": { \n \"role-a\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-a*\"],\n \"privileges\": [\"read\"]\n }\n ]\n },\n \"role-b\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-b*\"],\n \"privileges\": [\"all\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.create_api_key" }, "path": [], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Generated API key.", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Expiration in milliseconds for the API key.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Unique ID for this API key.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Specifies the name for this API key.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "description": "API key credentials which is the base64-encoding of\nthe UTF-8 representation of `id` and `api_key` joined\nby a colon (`:`).", "name": "encoded", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "SecurityCreateApiKeyResponseExample1": { "description": "A successful response from `POST /_security/api_key`.", "value": "{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\", \n \"name\": \"my-api-key\",\n \"expiration\": 1544068612110, \n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\", \n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\" \n}" } }, "name": { "name": "Response", "namespace": "security.create_api_key" }, "specLocation": "security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "access", "required": true, "type": { "kind": "instance_of", "type": { "name": "Access", "namespace": "security._types" } } }, { "description": "Expiration time for the API key.\nBy default, API keys never expire.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "Specifies the name for this API key.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ] }, "description": "Create a cross-cluster API key.\n\nCreate an API key of the `cross_cluster` type for the API key based remote cluster access.\nA `cross_cluster` API key cannot be used to authenticate through the REST interface.\n\nIMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error.\n\nCross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled.\n\nNOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the `access` property.\n\nA successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds.\n\nBy default, API keys never expire. You can specify expiration information when you create the API keys.\n\nCross-cluster API keys can only be updated with the update cross-cluster API key API.\nAttempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error.", "examples": { "CreateCrossClusterApiKeyRequestExample1": { "description": "Run `POST /_security/cross_cluster/api_key` to create a cross-cluster API key.\n", "value": "{\n \"name\": \"my-cross-cluster-api-key\",\n \"expiration\": \"1d\", \n \"access\": {\n \"search\": [ \n {\n \"names\": [\"logs*\"]\n }\n ],\n \"replication\": [ \n {\n \"names\": [\"archive*\"]\n }\n ]\n },\n \"metadata\": {\n \"description\": \"phase one\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.create_cross_cluster_api_key" }, "path": [], "query": [], "specLocation": "security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L80" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Generated API key.", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Expiration in milliseconds for the API key.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Unique ID for this API key.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Specifies the name for this API key.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "API key credentials which is the base64-encoding of\nthe UTF-8 representation of `id` and `api_key` joined\nby a colon (`:`).", "name": "encoded", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "CreateCrossClusterApiKeyResponseExample1": { "description": "A successful response from `POST /_security/service/elastic/fleet-server/credential/token`.\n", "value": "{\n \"created\": true,\n \"token\": {\n \"name\": \"Jk5J1HgBuyBK5TpDrdo4\",\n \"value\": \"AAEAAWVsYXN0aWM...vZmxlZXQtc2VydmVyL3Rva2VuMTo3TFdaSDZ\"\n }\n}" } }, "name": { "name": "Response", "namespace": "security.create_cross_cluster_api_key" }, "specLocation": "security/create_cross_cluster_api_key/CreateCrossClusterApiKeyResponse.ts#L23-L48" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Create a service account token.\n\nCreate a service accounts token for access without requiring basic authentication.\n\nNOTE: Service account tokens never expire.\nYou must actively delete them if they are no longer needed.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.create_service_token" }, "path": [ { "description": "The name of the namespace, which is a top-level grouping of service accounts.", "name": "namespace", "required": true, "type": { "kind": "instance_of", "type": { "name": "Namespace", "namespace": "_types" } } }, { "description": "The name of the service.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "Service", "namespace": "_types" } } }, { "description": "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 `//`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/create_service_token/CreateServiceTokenRequest.ts#L23-L72" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "created", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "token", "required": true, "type": { "kind": "instance_of", "type": { "name": "Token", "namespace": "security.create_service_token" } } } ] }, "examples": { "CreateServiceTokenRequestExample1": { "description": "A successful response from `POST /_security/service/elastic/fleet-server/credential/token/token1`. The response includes the service account token, its name, and its secret value as a bearer token.\n", "value": "{\n \"created\": true,\n \"token\": {\n \"name\": \"token1\",\n \"value\": \"AAEAAWVsYXN0aWM...vZmxlZXQtc2VydmVyL3Rva2VuMTo3TFdaSDZ\" \n }\n}" } }, "name": { "name": "Response", "namespace": "security.create_service_token" }, "specLocation": "security/create_service_token/CreateServiceTokenResponse.ts#L22-L30" }, { "kind": "interface", "name": { "name": "Token", "namespace": "security.create_service_token" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/create_service_token/types.ts#L22-L25" }, { "kind": "interface", "name": { "name": "Authentication", "namespace": "security.delegate_pki" }, "properties": [ { "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "full_name", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "email", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "name": "token", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "authentication_realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "AuthenticationRealm", "namespace": "security.delegate_pki" } } }, { "name": "lookup_realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "AuthenticationRealm", "namespace": "security.delegate_pki" } } }, { "name": "authentication_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "api_key", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55" }, { "kind": "interface", "name": { "name": "AuthenticationRealm", "namespace": "security.delegate_pki" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "domain", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "x509_certificate_chain", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Delegate PKI authentication.\n\nThis API implements the exchange of an X509Certificate chain for an Elasticsearch access token.\nThe certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has `delegation.enabled` set to `true`.\nA successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw `username_pattern` of the respective realm.\n\nThis API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch.\n\nIMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated.\nThis is part of the TLS authentication process and it is delegated to the proxy that calls this API.\nThe proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token.", "examples": { "SecurityDelegatePkiRequestExample1": { "description": "Delegate a one element certificate chain.", "value": "{\n\"x509_certificate_chain\": [\"MIIDeDCCAmCgAwIBAgIUBzj/nGGKxP2iXawsSquHmQjCJmMwDQYJKoZIhvcNAQELBQAwUzErMCkGA1UEAxMiRWxhc3RpY3NlYXJjaCBUZXN0IEludGVybWVkaWF0ZSBDQTEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMB4XDTIzMDcxODE5MjkwNloXDTQzMDcxMzE5MjkwNlowSjEiMCAGA1UEAxMZRWxhc3RpY3NlYXJjaCBUZXN0IENsaWVudDEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAllHL4pQkkfwAm/oLkxYYO+r950DEy1bjH+4viCHzNADLCTWO+lOZJVlNx7QEzJE3QGMdif9CCBBxQFMapA7oUFCLq84fPSQQu5AnvvbltVD9nwVtCs+9ZGDjMKsz98RhSLMFIkxdxi6HkQ3Lfa4ZSI4lvba4oo+T/GveazBDS+NgmKyq00EOXt3tWi1G9vEVItommzXWfv0agJWzVnLMldwkPqsw0W7zrpyT7FZS4iLbQADGceOW8fiauOGMkscu9zAnDR/SbWl/chYioQOdw6ndFLn1YIFPd37xL0WsdsldTpn0vH3YfzgLMffT/3P6YlwBegWzsx6FnM/93Ecb4wIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBQKNRwjW+Ad/FN1Rpoqme/5+jrFWzAfBgNVHSMEGDAWgBRcya0c0x/PaI7MbmJVIylWgLqXNjANBgkqhkiG9w0BAQsFAAOCAQEACZ3PF7Uqu47lplXHP6YlzYL2jL0D28hpj5lGtdha4Muw1m/BjDb0Pu8l0NQ1z3AP6AVcvjNDkQq6Y5jeSz0bwQlealQpYfo7EMXjOidrft1GbqOMFmTBLpLA9SvwYGobSTXWTkJzonqVaTcf80HpMgM2uEhodwTcvz6v1WEfeT/HMjmdIsq4ImrOL9RNrcZG6nWfw0HR3JNOgrbfyEztEI471jHznZ336OEcyX7gQuvHE8tOv5+oD1d7s3Xg1yuFp+Ynh+FfOi3hPCuaHA+7F6fLmzMDLVUBAllugst1C3U+L/paD7tqIa4ka+KNPCbSfwazmJrt4XNiivPR4hwH5g==\"]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.delegate_pki" }, "path": [], "query": [], "specLocation": "security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "An access token associated with the subject distinguished name of the client's certificate.", "name": "access_token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The amount of time (in seconds) before the token expires.", "name": "expires_in", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The type of token.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "authentication", "required": false, "type": { "kind": "instance_of", "type": { "name": "Authentication", "namespace": "security.delegate_pki" } } } ] }, "examples": { "SecurityDelegatePkiResponseExample1": { "description": "A successful response from delegating a one element certificate chain.", "value": "{\n \"access_token\": \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\": \"Bearer\",\n \"expires_in\": 1200,\n \"authentication\": {\n \"username\": \"Elasticsearch Test Client\",\n \"roles\": [],\n \"full_name\": null,\n \"email\": null,\n \"metadata\": {\n \"pki_dn\": \"O=org, OU=Elasticsearch, CN=Elasticsearch Test Client\",\n \"pki_delegated_by_user\": \"test_admin\",\n \"pki_delegated_by_realm\": \"file\"\n },\n \"enabled\": true,\n \"authentication_realm\": {\n \"name\": \"pki1\",\n \"type\": \"pki\"\n },\n \"lookup_realm\": {\n \"name\": \"pki1\",\n \"type\": \"pki\"\n },\n \"authentication_type\": \"realm\"\n }\n}" } }, "name": { "name": "Response", "namespace": "security.delegate_pki" }, "specLocation": "security/delegate_pki/SecurityDelegatePkiResponse.ts#L24-L41" }, { "kind": "interface", "name": { "name": "FoundStatus", "namespace": "security.delete_privileges" }, "properties": [ { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/delete_privileges/types.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete application privileges.\n\nTo use this API, you must have one of the following privileges:\n\n* The `manage_security` cluster privilege (or a greater privilege such as `all`).\n* The \"Manage Application Privileges\" global privilege for the application being referenced in the request.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.delete_privileges" }, "path": [ { "description": "The name of the application.\nApplication privileges are always associated with exactly one application.", "name": "application", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the privilege.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/delete_privileges/SecurityDeletePrivilegesRequest.ts#L23-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FoundStatus", "namespace": "security.delete_privileges" } } } } }, "examples": { "SecurityDeletePrivilegesResponseExample1": { "description": "A successful response from `DELETE /_security/privilege/myapp/read`. If the privilege is successfully deleted, `found` is set to `true`.\n", "value": "{\n \"myapp\": {\n \"read\": {\n \"found\" : true\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.delete_privileges" }, "specLocation": "security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete roles.\n\nDelete roles in the native realm.\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe delete roles API cannot remove roles that are defined in roles files.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.delete_role" }, "path": [ { "description": "The name of the role.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/delete_role/SecurityDeleteRoleRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If the role is successfully deleted, `found` is `true`.\nOtherwise, `found` is `false`.", "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "SecurityDeleteRoleResponseExample1": { "description": "A successful response from `DELETE /_security/role/my_admin_role`. If the role is successfully deleted, `found` is set to `true`.\n", "value": "{\n \"found\" : true\n}" } }, "name": { "name": "Response", "namespace": "security.delete_role" }, "specLocation": "security/delete_role/SecurityDeleteRoleResponse.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete role mappings.\n\nRole mappings define which roles are assigned to each user.\nThe role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files.\nThe delete role mappings API cannot remove role mappings that are defined in role mapping files.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.delete_role_mapping" }, "path": [ { "description": "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.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/delete_role_mapping/SecurityDeleteRoleMappingRequest.ts#L23-L53" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If the mapping is successfully deleted, `found` is `true`.\nOtherwise, `found` is `false`.", "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "SecurityDeleteRoleMappingResponseExample1": { "description": "A successful response from `DELETE /_security/role_mapping/mapping1`. If the mapping is successfully deleted, `found` is `true`.\n", "value": "{\n \"found\" : true\n}" } }, "name": { "name": "Response", "namespace": "security.delete_role_mapping" }, "specLocation": "security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete service account tokens.\n\nDelete service account tokens for a service in a specified namespace.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.delete_service_token" }, "path": [ { "description": "The namespace, which is a top-level grouping of service accounts.", "name": "namespace", "required": true, "type": { "kind": "instance_of", "type": { "name": "Namespace", "namespace": "_types" } } }, { "description": "The service name.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "Service", "namespace": "_types" } } }, { "description": "The name of the service account token.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/delete_service_token/DeleteServiceTokenRequest.ts#L23-L58" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If the service account token is successfully deleted, the request returns `{\"found\": true}`.\nOtherwise, the response will have status code 404 and `found` is set to `false`.", "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "DeleteServiceTokenResponseExample1": { "description": "A successful response from `DELETE /_security/service/elastic/fleet-server/credential/token/token42`.\n", "value": "{\n \"found\" : true\n}" } }, "name": { "name": "Response", "namespace": "security.delete_service_token" }, "specLocation": "security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete users.\n\nDelete users from the native realm.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.delete_user" }, "path": [ { "description": "An identifier for the user.", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/delete_user/SecurityDeleteUserRequest.ts#L23-L48" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If the user is successfully deleted, the request returns `{\"found\": true}`.\nOtherwise, `found` is set to `false`.", "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "SecurityDeleteUserResponseExample1": { "description": "A successful response from `DELETE /_security/user/jacknich`.\n", "value": "{\n \"found\" : true\n}" } }, "name": { "name": "Response", "namespace": "security.delete_user" }, "specLocation": "security/delete_user/SecurityDeleteUserResponse.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Disable users.\n\nDisable users in the native realm.\nBy default, when you create users, they are enabled.\nYou can use this API to revoke a user's access to Elasticsearch.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.disable_user" }, "path": [ { "description": "An identifier for the user.", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/disable_user/SecurityDisableUserRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "security.disable_user" }, "specLocation": "security/disable_user/SecurityDisableUserResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Disable a user profile.\n\nDisable user profiles so that they are not visible in user profile searches.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nWhen you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches.\nTo re-enable a disabled user profile, use the enable user profile API .", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.disable_user_profile" }, "path": [ { "description": "Unique identifier for the user profile.", "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/disable_user_profile/Request.ts#L24-L63" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "security.disable_user_profile" }, "specLocation": "security/disable_user_profile/Response.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Enable users.\n\nEnable users in the native realm.\nBy default, when you create users, they are enabled.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.enable_user" }, "path": [ { "description": "An identifier for the user.", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/enable_user/SecurityEnableUserRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [] }, "name": { "name": "Response", "namespace": "security.enable_user" }, "specLocation": "security/enable_user/SecurityEnableUserResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Enable a user profile.\n\nEnable user profiles to make them visible in user profile searches.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nWhen you activate a user profile, it's automatically enabled and visible in user profile searches.\nIf you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.enable_user_profile" }, "path": [ { "description": "A unique identifier for the user profile.", "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/enable_user_profile/Request.ts#L24-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "security.enable_user_profile" }, "specLocation": "security/enable_user_profile/Response.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Enroll Kibana.\n\nEnable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster.\n\nNOTE: This API is currently intended for internal use only by Kibana.\nKibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.enroll_kibana" }, "path": [], "query": [], "specLocation": "security/enroll_kibana/Request.ts#L22-L40" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "token", "required": true, "type": { "kind": "instance_of", "type": { "name": "Token", "namespace": "security.enroll_kibana" } } }, { "description": "The CA certificate used to sign the node certificates that Elasticsearch uses for TLS on the HTTP layer.\nThe certificate is returned as a Base64 encoded string of the ASN.1 DER encoding of the certificate.", "name": "http_ca", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "EnrollKibanaResponseExample1": { "description": "A successful response from `GET /_security/enroll/kibana`.", "value": "{\n \"token\" : {\n \"name\" : \"enroll-process-token-1629123923000\", \n \"value\": \"AAEAAWVsYXN0aWM...vZmxlZXQtc2VydmVyL3Rva2VuMTo3TFdaSDZ\" \n },\n \"http_ca\" : \"MIIJlAIBAzVoGCSqGSIb3...vsDfsA3UZBAjEPfhubpQysAICAA=\", \n}" } }, "name": { "name": "Response", "namespace": "security.enroll_kibana" }, "specLocation": "security/enroll_kibana/Response.ts#L20-L29" }, { "kind": "interface", "name": { "name": "Token", "namespace": "security.enroll_kibana" }, "properties": [ { "description": "The name of the bearer token for the `elastic/kibana` service account.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The value of the bearer token for the `elastic/kibana` service account.\nUse this value to authenticate the service account with Elasticsearch.", "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/enroll_kibana/Response.ts#L31-L41" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Enroll a node.\n\nEnroll a new node to allow it to join an existing cluster with security features enabled.\n\nThe response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster.\nThe response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.enroll_node" }, "path": [], "query": [], "specLocation": "security/enroll_node/Request.ts#L22-L40" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The CA private key that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the key.", "name": "http_ca_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The CA certificate that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.", "name": "http_ca_cert", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The CA certificate that is used to sign the TLS certificate for the transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.", "name": "transport_ca_cert", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The private key that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the key.", "name": "transport_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The certificate that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.", "name": "transport_cert", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of transport addresses in the form of `host:port` for the nodes that are already members of the cluster.", "name": "nodes_addresses", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "examples": { "EnrollNodeResponseExample1": { "description": "A successful response from `PGET /security/enroll/node`.", "value": "{\n \"http_ca_key\" : \"MIIJlAIBAzCCCVoGCSqGSIb3DQEHAaCCCUsEgglHMIIJQzCCA98GCSqGSIb3DQ....vsDfsA3UZBAjEPfhubpQysAICCAA=\", \n \"http_ca_cert\" : \"MIIJlAIBAzCCCVoGCSqGSIb3DQEHAaCCCUsEgglHMIIJQzCCA98GCSqGSIb3DQ....vsDfsA3UZBAjEPfhubpQysAICCAA=\", \n \"transport_ca_cert\" : \"MIIJlAIBAzCCCVoGCSqGSIb3DQEHAaCCCUsEgglHMIIJQzCCA98GCSqG....vsDfsA3UZBAjEPfhubpQysAICCAA=\", \n \"transport_key\" : \"MIIEJgIBAzCCA98GCSqGSIb3DQEHAaCCA9AEggPMMIIDyDCCA8QGCSqGSIb3....YuEiOXvqZ6jxuVSQ0CAwGGoA==\", \n \"transport_cert\" : \"MIIEJgIBAzCCA98GCSqGSIb3DQEHAaCCA9AEggPMMIIDyDCCA8QGCSqGSIb3....YuEiOXvqZ6jxuVSQ0CAwGGoA==\", \n \"nodes_addresses\" : [ \n \"192.168.1.2:9300\"\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.enroll_node" }, "specLocation": "security/enroll_node/Response.ts#L20-L47" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get API key information.\n\nRetrieves information for one or more API keys.\nNOTE: If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.\nIf you have `read_security`, `manage_api_key` or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_api_key" }, "path": [], "query": [ { "description": "An API key id.\nThis parameter cannot be used with any of `name`, `realm_name` or `username`.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "An API key name.\nThis parameter cannot be used with any of `id`, `realm_name` or `username`.\nIt supports prefix search with wildcard.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "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.", "name": "owner", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The name of an authentication realm.\nThis parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`.", "name": "realm_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The username of a user.\nThis parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.5.0" } }, "description": "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.", "name": "with_limited_by", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.10.0" } }, "description": "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.", "name": "active_only", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.14.0" } }, "description": "Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.", "name": "with_profile_uid", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/get_api_key/SecurityGetApiKeyRequest.ts#L23-L95" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "api_keys", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApiKey", "namespace": "security._types" } } } } ] }, "examples": { "SecurityGetApiKeyResponseExample1": { "description": "A successful response from `GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx&with_limited_by=true`.", "summary": "Get a key by ID", "value": "{\n \"api_keys\": [ \n {\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\", \n \"name\": \"my-api-key\", \n \"creation\": 1548550550158, \n \"expiration\": 1548551550158, \n \"invalidated\": false, \n \"username\": \"myuser\", \n \"realm\": \"native1\", \n \"realm_type\": \"native\",\n \"metadata\": { \n \"application\": \"myapp\"\n },\n \"role_descriptors\": { }, \n \"limited_by\": [ \n {\n \"role-power-user\": {\n \"cluster\": [\n \"monitor\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"*\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"allow_restricted_indices\": false\n }\n ],\n \"applications\": [ ],\n \"run_as\": [ ],\n \"metadata\": { },\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n }\n ]\n }\n ]\n}" }, "SecurityGetApiKeyResponseExample2": { "description": "A successful response from `GET /_security/api_key?username=myuser&realm_name=native1`. The response contains all API keys for the user `myuser` in the `native1` realm.\n", "summary": "Get all keys for a user", "value": "{\n \"api_keys\": [\n {\n \"id\": \"0GF5GXsBCXxz2eDxWwFN\",\n \"name\": \"hadoop_myuser_key\",\n \"creation\": 1548550550158,\n \"expiration\": 1548551550158,\n \"invalidated\": false,\n \"username\": \"myuser\",\n \"realm\": \"native1\",\n \"realm_type\": \"native\",\n \"metadata\": {\n \"application\": \"myapp\"\n },\n \"role_descriptors\": {\n \"role-a\": {\n \"cluster\": [\n \"monitor\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index-a\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"allow_restricted_indices\": false\n }\n ],\n \"applications\": [ ],\n \"run_as\": [ ],\n \"metadata\": { },\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n }\n },\n {\n \"id\": \"6wHJmcQpReKBa42EHV5SBw\",\n \"name\": \"api-key-name-2\",\n \"creation\": 1548550550158,\n \"invalidated\": false,\n \"username\": \"user-y\",\n \"realm\": \"realm-2\",\n \"metadata\": {},\n \"role_descriptors\": { }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.get_api_key" }, "specLocation": "security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get builtin privileges.\n\nGet the list of cluster privileges and index privileges that are available in this version of Elasticsearch.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_builtin_privileges" }, "path": [], "query": [], "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesRequest.ts#L22-L40" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The list of cluster privileges that are understood by this version of Elasticsearch.", "name": "cluster", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "description": "The list of index privileges that are understood by this version of Elasticsearch.", "name": "index", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "availability": { "stack": { "since": "8.15.0" } }, "description": "The list of remote_cluster privileges that are understood by this version of Elasticsearch.", "name": "remote_cluster", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivilege", "namespace": "security._types" } } } } ] }, "examples": { "SecurityGetBuiltinPrivilegesResponseExample1": { "description": "A successful response from `GET /_security/privilege/_builtin`.", "value": "{\n \"cluster\" : [\n \"all\",\n \"cancel_task\",\n \"create_snapshot\",\n \"cross_cluster_replication\",\n \"cross_cluster_search\",\n \"delegate_pki\",\n \"grant_api_key\",\n \"manage\",\n \"manage_api_key\",\n \"manage_autoscaling\",\n \"manage_behavioral_analytics\",\n \"manage_ccr\",\n \"manage_connector\",\n \"manage_data_frame_transforms\",\n \"manage_data_stream_global_retention\",\n \"manage_enrich\",\n \"manage_ilm\",\n \"manage_index_templates\",\n \"manage_inference\",\n \"manage_ingest_pipelines\",\n \"manage_logstash_pipelines\",\n \"manage_ml\",\n \"manage_oidc\",\n \"manage_own_api_key\",\n \"manage_pipeline\",\n \"manage_rollup\",\n \"manage_saml\",\n \"manage_search_application\",\n \"manage_search_query_rules\",\n \"manage_search_synonyms\",\n \"manage_security\",\n \"manage_service_account\",\n \"manage_slm\",\n \"manage_token\",\n \"manage_transform\",\n \"manage_user_profile\",\n \"manage_watcher\",\n \"monitor\",\n \"monitor_connector\",\n \"monitor_data_frame_transforms\",\n \"monitor_data_stream_global_retention\",\n \"monitor_enrich\",\n \"monitor_inference\",\n \"monitor_ml\",\n \"monitor_rollup\",\n \"monitor_snapshot\",\n \"monitor_stats\",\n \"monitor_text_structure\",\n \"monitor_transform\",\n \"monitor_watcher\",\n \"none\",\n \"post_behavioral_analytics_event\",\n \"read_ccr\",\n \"read_connector_secrets\",\n \"read_fleet_secrets\",\n \"read_ilm\",\n \"read_pipeline\",\n \"read_security\",\n \"read_slm\",\n \"transport_client\",\n \"write_connector_secrets\",\n \"write_fleet_secrets\"\n ],\n \"index\" : [\n \"all\",\n \"auto_configure\",\n \"create\",\n \"create_doc\",\n \"create_index\",\n \"cross_cluster_replication\",\n \"cross_cluster_replication_internal\",\n \"delete\",\n \"delete_index\",\n \"index\",\n \"maintenance\",\n \"manage\",\n \"manage_data_stream_lifecycle\",\n \"manage_follow_index\",\n \"manage_ilm\",\n \"manage_leader_index\",\n \"monitor\",\n \"none\",\n \"read\",\n \"read_cross_cluster\",\n \"view_index_metadata\",\n \"write\"\n ],\n \"remote_cluster\" : [\n \"monitor_enrich\",\n \"monitor_stats\"\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.get_builtin_privileges" }, "specLocation": "security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L42" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get application privileges.\n\nTo use this API, you must have one of the following privileges:\n\n* The `read_security` cluster privilege (or a greater privilege such as `manage_security` or `all`).\n* The \"Manage Application Privileges\" global privilege for the application being referenced in the request.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_privileges" }, "path": [ { "description": "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.", "name": "application", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the privilege.\nIf you do not specify this parameter, the API returns information about all privileges for the requested application.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [], "specLocation": "security/get_privileges/SecurityGetPrivilegesRequest.ts#L23-L65" }, { "kind": "response", "body": { "kind": "value", "codegenName": "privileges", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Actions", "namespace": "security.put_privileges" } } } } }, "examples": { "SecurityGetPrivilegesResponseExample1": { "description": "A successful response from `GET /_security/privilege/myapp/read`. The response contains information about the `read` privilege for the `app01` application.\n", "value": "{\n \"myapp\": {\n \"read\": {\n \"application\": \"myapp\",\n \"name\": \"read\",\n \"actions\": [\n \"data:read/*\",\n \"action:login\"\n ],\n \"metadata\": {\n \"description\": \"Read access to myapp\"\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_privileges" }, "specLocation": "security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get roles.\n\nGet roles in the native realm.\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe get roles API cannot retrieve roles that are defined in roles files.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_role" }, "path": [ { "description": "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.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [], "specLocation": "security/get_role/SecurityGetRoleRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "value", "codegenName": "roles", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Role", "namespace": "security.get_role" } } } }, "examples": { "SecurityGetRoleResponseExample1": { "description": "A successful response from `GET /_security/role/my_admin_role`. The response contains information about the `my_admin_role` role in the native realm.\n", "value": "{\n \"my_admin_role\": {\n \"description\": \"Grants full access to all management features within the cluster.\",\n \"cluster\" : [ \"all\" ],\n \"indices\" : [\n {\n \"names\" : [ \"index1\", \"index2\" ],\n \"privileges\" : [ \"all\" ],\n \"allow_restricted_indices\" : false,\n \"field_security\" : {\n \"grant\" : [ \"title\", \"body\" ]}\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [ \"other_user\" ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_role" }, "specLocation": "security/get_role/SecurityGetRoleResponse.ts#L23-L31" }, { "kind": "interface", "name": { "name": "Role", "namespace": "security.get_role" }, "properties": [ { "name": "cluster", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.14.0" } }, "name": "remote_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteIndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.15.0" } }, "name": "remote_cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivileges", "namespace": "security._types" } } } }, { "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "run_as", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "transient_metadata", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "applications", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivileges", "namespace": "security._types" } } } }, { "name": "role_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RoleTemplate", "namespace": "security._types" } } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "global", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } } } } ], "specLocation": "security/get_role/types.ts#L32-L54" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get role mappings.\n\nRole mappings define which roles are assigned to each user.\nThe role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files.\nThe get role mappings API cannot retrieve role mappings that are defined in role mapping files.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_role_mapping" }, "path": [ { "description": "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.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [], "specLocation": "security/get_role_mapping/SecurityGetRoleMappingRequest.ts#L23-L53" }, { "kind": "response", "body": { "kind": "value", "codegenName": "role_mappings", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleMapping", "namespace": "security._types" } } } }, "examples": { "SecurityGetRoleMappingResponseExample1": { "description": "A successful response from `GET /_security/role_mapping/mapping1`.", "value": "{\n \"mapping1\": {\n \"enabled\": true,\n \"roles\": [\n \"user\"\n ],\n \"rules\": {\n \"field\": {\n \"username\": \"*\"\n }\n },\n \"metadata\": {}\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_role_mapping" }, "specLocation": "security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get service accounts.\n\nGet a list of service accounts that match the provided path parameters.\n\nNOTE: Currently, only the `elastic/fleet-server` service account is available.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_service_accounts" }, "path": [ { "description": "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.", "name": "namespace", "required": false, "type": { "kind": "instance_of", "type": { "name": "Namespace", "namespace": "_types" } } }, { "description": "The service name.\nOmit this parameter to retrieve information about all service accounts that belong to the specified `namespace`.", "name": "service", "required": false, "type": { "kind": "instance_of", "type": { "name": "Service", "namespace": "_types" } } } ], "query": [], "specLocation": "security/get_service_accounts/GetServiceAccountsRequest.ts#L23-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "service_accoutns", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptorWrapper", "namespace": "security.get_service_accounts" } } } }, "examples": { "GetServiceAccountsResponseExample1": { "description": "A successful response from `GET /_security/service/elastic/fleet-server`. The response contains information about the `elastic/fleet-server` service account.\n", "value": "{\n \"elastic/fleet-server\": {\n \"role_descriptor\": {\n \"cluster\": [\n \"monitor\",\n \"manage_own_api_key\",\n \"read_fleet_secrets\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"logs-*\",\n \"metrics-*\",\n \"traces-*\",\n \".logs-endpoint.diagnostic.collection-*\",\n \".logs-endpoint.action.responses-*\",\n \".logs-endpoint.heartbeat-*\"\n ],\n \"privileges\": [\n \"write\",\n \"create_index\",\n \"auto_configure\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \"profiling-*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \"traces-apm.sampled-*\"\n ],\n \"privileges\": [\n \"read\",\n \"monitor\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \".fleet-secrets*\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-actions*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-agents*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-artifacts*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-enrollment-api-keys*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-policies*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-policies-leader*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-servers*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-fileds*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \"synthetics-*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"create_index\",\n \"auto_configure\"\n ],\n \"allow_restricted_indices\": false\n }\n ],\n \"applications\": [\n {\n \"application\": \"kibana-*\",\n \"privileges\": [\n \"reserved_fleet-setup\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [],\n \"metadata\": {},\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_service_accounts" }, "specLocation": "security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L29" }, { "kind": "interface", "name": { "name": "RoleDescriptorWrapper", "namespace": "security.get_service_accounts" }, "properties": [ { "name": "role_descriptor", "required": true, "type": { "kind": "instance_of", "type": { "name": "RoleDescriptorRead", "namespace": "security._types" } } } ], "specLocation": "security/get_service_accounts/types.ts#L22-L24" }, { "kind": "interface", "name": { "name": "NodesCredentials", "namespace": "security.get_service_credentials" }, "properties": [ { "description": "General status showing how nodes respond to the above collection request", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "description": "File-backed tokens collected from all nodes", "name": "file_tokens", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodesCredentialsFileToken", "namespace": "security.get_service_credentials" } } } } ], "specLocation": "security/get_service_credentials/types.ts#L23-L28" }, { "kind": "interface", "name": { "name": "NodesCredentialsFileToken", "namespace": "security.get_service_credentials" }, "properties": [ { "name": "nodes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/get_service_credentials/types.ts#L30-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get service account credentials.\n\nTo use this API, you must have at least the `read_security` cluster privilege (or a greater privilege such as `manage_service_account` or `manage_security`).\n\nThe response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster.\n\nNOTE: For tokens backed by the `service_tokens` file, the API collects them from all nodes of the cluster.\nTokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_service_credentials" }, "path": [ { "description": "The name of the namespace.", "name": "namespace", "required": true, "type": { "kind": "instance_of", "type": { "name": "Namespace", "namespace": "_types" } } }, { "description": "The service name.", "name": "service", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "security/get_service_credentials/GetServiceCredentialsRequest.ts#L23-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "service_account", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "tokens", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } }, { "description": "Service account credentials collected from all nodes of the cluster.", "name": "nodes_credentials", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodesCredentials", "namespace": "security.get_service_credentials" } } } ] }, "examples": { "GetServiceCredentialsResponseExample1": { "description": "A successful response from `GET /_security/service/elastic/fleet-server/credential`. The response contains all credentials for the `elastic/fleet-server` service account.\n", "value": "{\n \"service_account\": \"elastic/fleet-server\",\n \"count\": 3,\n \"tokens\": {\n \"token1\": {}, \n \"token42\": {} \n },\n \"nodes_credentials\": { \n \"_nodes\": { \n \"total\": 3,\n \"successful\": 3,\n \"failed\": 0\n },\n \"file_tokens\": { \n \"my-token\": {\n \"nodes\": [ \"node0\", \"node1\" ] \n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_service_credentials" }, "specLocation": "security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get security index settings.\n\nGet the user-configurable settings for the security internal index (`.security` and associated indices).\nOnly a subset of the index settings — those that are user-configurable—will be shown.\nThis includes:\n\n* `index.auto_expand_replicas`\n* `index.number_of_replicas`", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_settings" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "security/get_settings/SecurityGetSettingsRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Settings for the index used for most security configuration, including native realm users and roles configured with the API.", "name": "security", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecuritySettings", "namespace": "security._types" } } }, { "description": "Settings for the index used to store profile information.", "name": "security-profile", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecuritySettings", "namespace": "security._types" } } }, { "description": "Settings for the index used to store tokens.", "name": "security-tokens", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecuritySettings", "namespace": "security._types" } } } ] }, "name": { "name": "Response", "namespace": "security.get_settings" }, "specLocation": "security/get_settings/SecurityGetSettingsResponse.ts#L21-L36" }, { "kind": "enum", "members": [ { "description": "This grant type implements the Resource Owner Password Credentials Grant of OAuth2.\nIn this grant, a trusted client exchanges the end user's credentials for an access token and (possibly) a refresh token.\nThe request needs to be made by an authenticated user but happens on behalf of another authenticated user (the one whose credentials are passed as request parameters).\nThis grant type is not suitable or designed for the self-service user creation of tokens.", "name": "password" }, { "description": "This grant type implements the Client Credentials Grant of OAuth2.\nIt is geared for machine to machine communication and is not suitable or designed for the self-service user creation of tokens.\nIt generates only access tokens that cannot be refreshed.\nThe premise is that the entity that uses `client_credentials` has constant access to a set of (client, not end-user) credentials and can authenticate itself at will.", "name": "client_credentials" }, { "description": "This grant type is supported internally and implements SPNEGO based Kerberos support.\nThe `_kerberos` grant type may change from version to version.", "name": "_kerberos" }, { "description": "This grant type implements the Refresh Token Grant of OAuth2.\nIn this grant a user exchanges a previously issued refresh token for a new access token and a new refresh token.", "name": "refresh_token" } ], "name": { "name": "AccessTokenGrantType", "namespace": "security.get_token" }, "specLocation": "security/get_token/types.ts#L23-L48" }, { "kind": "interface", "inherits": { "type": { "name": "User", "namespace": "security._types" } }, "name": { "name": "AuthenticatedUser", "namespace": "security.get_token" }, "properties": [ { "name": "authentication_realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserRealm", "namespace": "security.get_token" } } }, { "name": "lookup_realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserRealm", "namespace": "security.get_token" } } }, { "name": "authentication_provider", "required": false, "type": { "kind": "instance_of", "type": { "name": "AuthenticationProvider", "namespace": "security.get_token" } } }, { "name": "authentication_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/get_token/types.ts#L60-L65" }, { "kind": "interface", "name": { "name": "AuthenticationProvider", "namespace": "security.get_token" }, "properties": [ { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "security/get_token/types.ts#L55-L58" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The type of grant.\nSupported grant types are: `password`, `_kerberos`, `client_credentials`, and `refresh_token`.", "name": "grant_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "AccessTokenGrantType", "namespace": "security.get_token" } } }, { "description": "The scope of the token.\nCurrently tokens are only issued for a scope of FULL regardless of the value sent with the request.", "name": "scope", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "password", "required": false, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } }, { "description": "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.", "name": "kerberos_ticket", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "refresh_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ] }, "description": "Get a token.\n\nCreate a bearer token for access without requiring basic authentication.\nThe tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface.\nAlternatively, you can explicitly enable the `xpack.security.authc.token.enabled` setting.\nWhen you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface.\n\nThe get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body.\n\nA successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available.\n\nThe tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used.\nThat time period is defined by the `xpack.security.authc.token.timeout` setting.\nIf you want to invalidate a token immediately, you can do so by using the invalidate token API.", "examples": { "GetUserAccessTokenRequestExample1": { "description": "Run `POST /_security/oauth2/token` to obtain a token using the `client_credentials` grant type, which simply creates a token as the authenticated user.\n", "summary": "A client_credentials grant type example", "value": "{\n \"grant_type\" : \"client_credentials\"\n}" }, "GetUserAccessTokenRequestExample2": { "description": "Run `POST /_security/oauth2/token` to obtain a token for the `test_admin` user using the password grant type. This request needs to be made by an authenticated user with sufficient privileges that may or may not be the same as the one whose username is passed in the `username` parameter.\n", "summary": "A password grant type example", "value": "{\n \"grant_type\" : \"password\",\n \"username\" : \"test_admin\",\n \"password\" : \"x-pack-test-password\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_token" }, "path": [], "query": [], "specLocation": "security/get_token/GetUserAccessTokenRequest.ts#L25-L90" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "access_token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "expires_in", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "scope", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "refresh_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "kerberos_authentication_response_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "authentication", "required": true, "type": { "kind": "instance_of", "type": { "name": "AuthenticatedUser", "namespace": "security.get_token" } } } ] }, "examples": { "GetUserAccessTokenResponseExample1": { "description": "A successful response from `POST /_security/oauth2/token`.", "summary": "A client_credentials grant type example", "value": "{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"realm\"\n }\n}" }, "GetUserAccessTokenResponseExample2": { "description": "A successful response from `POST /_security/oauth2/token`.", "summary": "A password grant type example", "value": "{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"realm\"\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_token" }, "specLocation": "security/get_token/GetUserAccessTokenResponse.ts#L23-L33" }, { "kind": "interface", "name": { "name": "UserRealm", "namespace": "security.get_token" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/get_token/types.ts#L50-L53" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get users.\n\nGet information about users in the native realm and built-in users.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_user" }, "path": [ { "description": "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.", "name": "username", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ] } } ], "query": [ { "availability": { "serverless": {}, "stack": { "since": "8.5.0" } }, "description": "Determines whether to retrieve the user profile UID, if it exists, for the users.", "name": "with_profile_uid", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/get_user/SecurityGetUserRequest.ts#L23-L56" }, { "kind": "response", "body": { "kind": "value", "codegenName": "users", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "User", "namespace": "security._types" } } } }, "examples": { "SecurityGetUserResponseExample1": { "description": "A successful response from `GET /_security/user/jacknich?with_profile_uid=true`. It includes the user `profile_uid` as part of the response.\n", "value": "{\n \"jacknich\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": { \"intelligence\" : 7 },\n \"enabled\": true,\n \"profile_uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_user" }, "specLocation": "security/get_user/SecurityGetUserResponse.ts#L23-L30" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get user privileges.\n\nGet the security privileges for the logged in user.\nAll users can use this API, but only to determine their own privileges.\nTo check the privileges of other users, you must use the run as feature.\nTo check whether a user has a specific list of privileges, use the has privileges API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_user_privileges" }, "path": [], "query": [ { "description": "The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.", "name": "application", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.", "name": "priviledge", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "username", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ], "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "applications", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivileges", "namespace": "security._types" } } } }, { "name": "cluster", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "remote_cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivileges", "namespace": "security._types" } } } }, { "name": "global", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "GlobalPrivilege", "namespace": "security._types" } } } }, { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserIndicesPrivileges", "namespace": "security._types" } } } }, { "name": "remote_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteUserIndicesPrivileges", "namespace": "security._types" } } } }, { "name": "run_as", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "examples": { "SecurityGetUserPrivilegesResponseExample1": { "description": "A successful response from `GET /_security/user/_privileges`.", "value": "{\n \"cluster\" : [\n \"all\"\n ],\n \"global\" : [ ],\n \"indices\" : [\n {\n \"names\" : [\n \"*\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"allow_restricted_indices\" : true\n }\n ],\n \"applications\" : [\n {\n \"application\" : \"*\",\n \"privileges\" : [\n \"*\"\n ],\n \"resources\" : [\n \"*\"\n ]\n }\n ],\n \"run_as\" : [\n \"*\"\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.get_user_privileges" }, "specLocation": "security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L28-L38" }, { "kind": "interface", "name": { "name": "GetUserProfileErrors", "namespace": "security.get_user_profile" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "details", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } } ], "specLocation": "security/get_user_profile/types.ts#L25-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a user profile.\n\nGet a user's profile using the unique profile ID.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.get_user_profile" }, "path": [ { "description": "A unique identifier for the user profile.", "name": "uid", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } ] } } ], "query": [ { "description": "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.", "name": "data", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "specLocation": "security/get_user_profile/Request.ts#L23-L59" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A successful call returns the JSON representation of the user profile and its internal versioning numbers.\nThe API returns an empty object if no profile document is found for the provided `uid`.\nThe content of the data field is not returned by default to avoid deserializing a potential large payload.", "name": "profiles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserProfileWithMetadata", "namespace": "security._types" } } } }, { "name": "errors", "required": false, "type": { "kind": "instance_of", "type": { "name": "GetUserProfileErrors", "namespace": "security.get_user_profile" } } } ] }, "examples": { "GetUserProfileResponseExample1": { "description": "A successful response from `GET /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0`. By default, no content is returned in the `data` field.\n", "summary": "Profile details for a UUID", "value": "{\n \"profiles\": [\n {\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\"\n },\n \"labels\": {\n \"direction\": \"north\"\n },\n \"data\": {}, \n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n }\n ]\n}" }, "GetUserProfileResponseExample2": { "description": "A successful response from `GET /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0?data=app1.key1`.\n", "summary": "Profile details for a UUID and data key", "value": "{\n \"profiles\": [\n {\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\"\n },\n \"labels\": {\n \"direction\": \"north\"\n },\n \"data\": {\n \"app1\": {\n \"key1\": \"value1\"\n }\n },\n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n }\n ]\n}" }, "GetUserProfileResponseExample3": { "description": "A response that contains errors that occurred while retrieving user profiles.\n", "summary": "Profile details with errors", "value": "{\n \"profiles\": [],\n \"errors\": {\n \"count\": 1,\n \"details\": {\n \"u_FmxQt3gr1BBH5wpnz9HkouPj3Q710XkOgg1PWkwLPBW_5\": {\n \"type\": \"resource_not_found_exception\",\n \"reason\": \"profile document not found\"\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.get_user_profile" }, "specLocation": "security/get_user_profile/Response.ts#L23-L33" }, { "kind": "enum", "members": [ { "name": "access_token" }, { "name": "password" } ], "name": { "name": "ApiKeyGrantType", "namespace": "security.grant_api_key" }, "specLocation": "security/grant_api_key/types.ts#L47-L50" }, { "kind": "interface", "name": { "name": "GrantApiKey", "namespace": "security.grant_api_key" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "Expiration time for the API key. By default, API keys never expire.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "DurationLarge", "namespace": "_types" } } }, { "description": "The role descriptors for this API key.\nWhen it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token.\nIf you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token.", "name": "role_descriptors", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } }, { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } } ] } }, { "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "security/grant_api_key/types.ts#L25-L45" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The API key.", "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "GrantApiKey", "namespace": "security.grant_api_key" } } }, { "description": "The type of grant. Supported grant types are: `access_token`, `password`.", "name": "grant_type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ApiKeyGrantType", "namespace": "security.grant_api_key" } } }, { "description": "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.", "name": "access_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "description": "The user's password.\nIf you specify the `password` grant type, this parameter is required.\nIt is not valid with other grant types.", "name": "password", "required": false, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } }, { "description": "The name of the user to be impersonated.", "name": "run_as", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ] }, "description": "Grant an API key.\n\nCreate an API key on behalf of another user.\nThis API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API.\nThe caller must have authentication credentials for the user on whose behalf the API key will be created.\nIt is not possible to use this API to create an API key without that user's credentials.\nThe supported user authentication credential types are:\n\n* username and password\n* Elasticsearch access tokens\n* JWTs\n\nThe user, for whom the authentication credentials is provided, can optionally \"run as\" (impersonate) another user.\nIn this case, the API key will be created on behalf of the impersonated user.\n\nThis API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf.\nThe API keys are created by the Elasticsearch API key service, which is automatically enabled.\n\nA successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name.\nIf applicable, it also returns expiration information for the API key in milliseconds.\n\nBy default, API keys never expire. You can specify expiration information when you create the API keys.", "examples": { "SecurityGrantApiKeyRequestExample1": { "description": "Run `POST /_security/api_key/grant` to create an API key on behalf of the `test_admin` user.\n", "summary": "Grant an API key", "value": "{\n \"grant_type\": \"password\",\n \"username\" : \"test_admin\",\n \"password\" : \"x-pack-test-password\",\n \"api_key\" : {\n \"name\": \"my-api-key\",\n \"expiration\": \"1d\",\n \"role_descriptors\": {\n \"role-a\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-a*\"],\n \"privileges\": [\"read\"]\n }\n ]\n },\n \"role-b\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-b*\"],\n \"privileges\": [\"all\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n }\n}" }, "SecurityGrantApiKeyRequestExample2": { "description": "Run `POST /_security/api_key/grant`. The user (`test_admin`) whose credentials are provided can \"run as\" another user (`test_user`). The API key will be granted to the impersonated user (`test_user`).\n", "summary": "Grant an API key with run_as", "value": "{\n \"grant_type\": \"password\",\n \"username\" : \"test_admin\", \n \"password\" : \"x-pack-test-password\", \n \"run_as\": \"test_user\", \n \"api_key\" : {\n \"name\": \"another-api-key\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.grant_api_key" }, "path": [], "query": [], "specLocation": "security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L92" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "api_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "expiration", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "encoded", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "security.grant_api_key" }, "specLocation": "security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31" }, { "kind": "interface", "name": { "name": "ApplicationPrivilegesCheck", "namespace": "security.has_privileges" }, "properties": [ { "description": "The name of the application.", "name": "application", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A list of the privileges that you want to check for the specified resources.\nIt may be either application privilege names or the names of actions that are granted by those privileges", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A list of resource names against which the privileges should be checked.", "name": "resources", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "security/has_privileges/types.ts#L24-L32" }, { "kind": "type_alias", "name": { "name": "ApplicationsPrivileges", "namespace": "security.has_privileges" }, "specLocation": "security/has_privileges/types.ts#L47-L47", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ResourcePrivileges", "namespace": "security.has_privileges" } } } }, { "kind": "interface", "name": { "name": "IndexPrivilegesCheck", "namespace": "security.has_privileges" }, "properties": [ { "description": "A list of indices.", "name": "names", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "A list of the privileges that you want to check for the specified indices.", "name": "privileges", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilege", "namespace": "security._types" } } } }, { "description": "This needs to be set to `true` (default is `false`) if using wildcards or regexps for patterns that cover restricted indices.\nImplicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false.\nIf restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of `allow_restricted_indices`.", "name": "allow_restricted_indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/has_privileges/types.ts#L34-L45" }, { "kind": "type_alias", "name": { "name": "Privileges", "namespace": "security.has_privileges" }, "specLocation": "security/has_privileges/types.ts#L49-L49", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "application", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivilegesCheck", "namespace": "security.has_privileges" } } } }, { "description": "A list of the cluster privileges that you want to check.", "name": "cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "name": "index", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilegesCheck", "namespace": "security.has_privileges" } } } } ] }, "description": "Check user privileges.\n\nDetermine whether the specified user has a specified list of privileges.\nAll users can use this API, but only to determine their own privileges.\nTo check the privileges of other users, you must use the run as feature.", "examples": { "SecurityHasPrivilegesRequestExample1": { "description": "Run `GET /_security/user/_has_privileges` to check whether the current user has a specific set of cluster, index, and application privileges.", "value": "{\n \"cluster\": [ \"monitor\", \"manage\" ],\n \"index\" : [\n {\n \"names\": [ \"suppliers\", \"products\" ],\n \"privileges\": [ \"read\" ]\n },\n {\n \"names\": [ \"inventory\" ],\n \"privileges\" : [ \"read\", \"write\" ]\n }\n ],\n \"application\": [\n {\n \"application\": \"inventory_manager\",\n \"privileges\" : [ \"read\", \"data:write/inventory\" ],\n \"resources\" : [ \"product/1852563\" ]\n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.has_privileges" }, "path": [ { "description": "Username", "name": "user", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59" }, { "kind": "type_alias", "name": { "name": "ResourcePrivileges", "namespace": "security.has_privileges" }, "specLocation": "security/has_privileges/types.ts#L48-L48", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Privileges", "namespace": "security.has_privileges" } } } }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "application", "required": true, "type": { "kind": "instance_of", "type": { "name": "ApplicationsPrivileges", "namespace": "security.has_privileges" } } }, { "name": "cluster", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } }, { "name": "has_all_requested", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "index", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Privileges", "namespace": "security.has_privileges" } } } }, { "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ] }, "examples": { "SecurityHasPrivilegesResponseExample1": { "description": "A successful response from `GET /_security/user/_has_privileges`, which lists the privileges for the `rdeniro` user.", "value": "{\n \"username\": \"rdeniro\",\n \"has_all_requested\" : false,\n \"cluster\" : {\n \"monitor\" : true,\n \"manage\" : false\n },\n \"index\" : {\n \"suppliers\" : {\n \"read\" : true\n },\n \"products\" : {\n \"read\" : true\n },\n \"inventory\" : {\n \"read\" : true,\n \"write\" : false\n }\n },\n \"application\" : {\n \"inventory_manager\" : {\n \"product/1852563\" : {\n \"read\": false,\n \"data:write/inventory\": false\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.has_privileges" }, "specLocation": "security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L35" }, { "kind": "interface", "name": { "name": "HasPrivilegesUserProfileErrors", "namespace": "security.has_privileges_user_profile" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "details", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } } ], "specLocation": "security/has_privileges_user_profile/types.ts#L39-L42" }, { "kind": "interface", "name": { "name": "PrivilegesCheck", "namespace": "security.has_privileges_user_profile" }, "properties": [ { "name": "application", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivilegesCheck", "namespace": "security.has_privileges" } } } }, { "description": "A list of the cluster privileges that you want to check.", "name": "cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "name": "index", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexPrivilegesCheck", "namespace": "security.has_privileges" } } } } ], "specLocation": "security/has_privileges_user_profile/types.ts#L30-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A list of profile IDs. The privileges are checked for associated users of the profiles.", "name": "uids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } }, { "description": "An object containing all the privileges to be checked.", "name": "privileges", "required": true, "type": { "kind": "instance_of", "type": { "name": "PrivilegesCheck", "namespace": "security.has_privileges_user_profile" } } } ] }, "description": "Check user profile privileges.\n\nDetermine whether the users associated with the specified user profile IDs have all the requested privileges.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.", "examples": { "HasPrivilegesUserProfileRequestExample1": { "description": "Run `POST /_security/profile/_has_privileges` to check whether the two users associated with the specified profiles have all the requested set of cluster, index, and application privileges.\n", "value": "{\n \"uids\": [\n \"u_LQPnxDxEjIH0GOUoFkZr5Y57YUwSkL9Joiq-g4OCbPc_0\",\n \"u_rzRnxDgEHIH0GOUoFkZr5Y27YUwSk19Joiq=g4OCxxB_1\",\n \"u_does-not-exist_0\"\n ],\n \"privileges\": {\n \"cluster\": [ \"monitor\", \"create_snapshot\", \"manage_ml\" ],\n \"index\" : [\n {\n \"names\": [ \"suppliers\", \"products\" ],\n \"privileges\": [ \"create_doc\"]\n },\n {\n \"names\": [ \"inventory\" ],\n \"privileges\" : [ \"read\", \"write\" ]\n }\n ],\n \"application\": [\n {\n \"application\": \"inventory_manager\",\n \"privileges\" : [ \"read\", \"data:write/inventory\" ],\n \"resources\" : [ \"product/1852563\" ]\n }\n ]\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.has_privileges_user_profile" }, "path": [], "query": [], "specLocation": "security/has_privileges_user_profile/Request.ts#L24-L55" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The subset of the requested profile IDs of the users that\nhave all the requested privileges.", "name": "has_privilege_uids", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } }, { "description": "The subset of the requested profile IDs for which an error\nwas encountered. It does not include the missing profile IDs\nor the profile IDs of the users that do not have all the\nrequested privileges. This field is absent if empty.", "name": "errors", "required": false, "type": { "kind": "instance_of", "type": { "name": "HasPrivilegesUserProfileErrors", "namespace": "security.has_privileges_user_profile" } } } ] }, "examples": { "HasPrivilegesUserProfileResponseExample1": { "description": "A response from `POST /_security/profile/_has_privileges` that indicates only one of the three users has all the privileges and one of them is not found.\n", "value": "{\n \"has_privilege_uids\": [\"u_rzRnxDgEHIH0GOUoFkZr5Y27YUwSk19Joiq=g4OCxxB_1\"],\n \"errors\": {\n \"count\": 1,\n \"details\": {\n \"u_does-not-exist_0\": {\n \"type\": \"resource_not_found_exception\",\n \"reason\": \"profile document not found\"\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.has_privileges_user_profile" }, "specLocation": "security/has_privileges_user_profile/Response.ts#L23-L38" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "A list of API key ids.\nThis parameter cannot be used with any of `name`, `realm_name`, or `username`.", "name": "ids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } }, { "description": "An API key name.\nThis parameter cannot be used with any of `ids`, `realm_name` or `username`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "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`.", "name": "owner", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The name of an authentication realm.\nThis parameter cannot be used with either `ids` or `name`, or when `owner` flag is set to `true`.", "name": "realm_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The username of a user.\nThis parameter cannot be used with either `ids` or `name` or when `owner` flag is set to `true`.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ] }, "description": "Invalidate API keys.\n\nThis API invalidates API keys created by the create API key or grant API key APIs.\nInvalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted.\n\nTo use this API, you must have at least the `manage_security`, `manage_api_key`, or `manage_own_api_key` cluster privileges.\nThe `manage_security` privilege allows deleting any API key, including both REST and cross cluster API keys.\nThe `manage_api_key` privilege allows deleting any REST API key, but not cross cluster API keys.\nThe `manage_own_api_key` only allows deleting REST API keys that are owned by the user.\nIn addition, with the `manage_own_api_key` privilege, an invalidation request must be issued in one of the three formats:\n\n- Set the parameter `owner=true`.\n- Or, set both `username` and `realm_name` to match the user's identity.\n- Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the `ids` field.", "examples": { "SecurityInvalidateApiKeyRequestExample1": { "description": "Run `DELETE /_security/api_key` to invalidate the API keys identified by ID.", "summary": "API keys by ID", "value": "{\n \"ids\" : [ \"VuaCfGcBCdbkQm-e5aOx\" ]\n}" }, "SecurityInvalidateApiKeyRequestExample2": { "description": "Run `DELETE /_security/api_key` to invalidate the API keys identified by name.", "summary": "API keys by name", "value": "{\n \"name\" : \"my-api-key\"\n}" }, "SecurityInvalidateApiKeyRequestExample3": { "description": "Run `DELETE /_security/api_key` to invalidate all API keys for the `native1` realm.", "summary": "API keys by realm", "value": "{\n \"realm_name\" : \"native1\"\n}" }, "SecurityInvalidateApiKeyRequestExample4": { "description": "Run `DELETE /_security/api_key` to invalidate all API keys for the user `myuser` in all realms.", "summary": "API keys by user", "value": "{\n \"username\" : \"myuser\"\n}" }, "SecurityInvalidateApiKeyRequestExample5": { "description": "Run `DELETE /_security/api_key` to invalidate the API keys identified by ID if they are owned by the currently authenticated user.", "summary": "API keys by ID and owner", "value": "{\n \"ids\" : [\"VuaCfGcBCdbkQm-e5aOx\"],\n \"owner\" : \"true\"\n}" }, "SecurityInvalidateApiKeyRequestExample6": { "description": "Run `DELETE /_security/api_key` to invalidate all API keys for the user `myuser` in the `native1` realm .", "summary": "API keys by user and realm", "value": "{\n \"username\" : \"myuser\",\n \"realm_name\" : \"native1\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.invalidate_api_key" }, "path": [], "query": [], "specLocation": "security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of errors that were encountered when invalidating the API keys.", "name": "error_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Details about the errors.\nThis field is not present in the response when `error_count` is `0`.", "name": "error_details", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } }, { "description": "The IDs of the API keys that were invalidated as part of this request.", "name": "invalidated_api_keys", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The IDs of the API keys that were already invalidated.", "name": "previously_invalidated_api_keys", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "examples": { "SecurityInvalidateApiKeyResponseExample1": { "description": "A successful response from `DELETE /_security/api_key`.\n", "value": "{\n \"invalidated_api_keys\": [ \n \"api-key-id-1\"\n ],\n \"previously_invalidated_api_keys\": [ \n \"api-key-id-2\",\n \"api-key-id-3\"\n ],\n \"error_count\": 2, \n \"error_details\": [ \n {\n \"type\": \"exception\",\n \"reason\": \"error occurred while invalidating api keys\",\n \"caused_by\": {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"invalid api key id\"\n }\n },\n {\n \"type\": \"exception\",\n \"reason\": \"error occurred while invalidating api keys\",\n \"caused_by\": {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"invalid api key id\"\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.invalidate_api_key" }, "specLocation": "security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L46" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "An access token.\nThis parameter cannot be used if any of `refresh_token`, `realm_name`, or `username` are used.", "name": "token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A refresh token.\nThis parameter cannot be used if any of `refresh_token`, `realm_name`, or `username` are used.", "name": "refresh_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of an authentication realm.\nThis parameter cannot be used with either `refresh_token` or `token`.", "name": "realm_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The username of a user.\nThis parameter cannot be used with either `refresh_token` or `token`.", "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ] }, "description": "Invalidate a token.\n\nThe access tokens returned by the get token API have a finite period of time for which they are valid.\nAfter that time period, they can no longer be used.\nThe time period is defined by the `xpack.security.authc.token.timeout` setting.\n\nThe refresh tokens returned by the get token API are only valid for 24 hours.\nThey can also be used exactly once.\nIf you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API.\n\nNOTE: While all parameters are optional, at least one of them is required.\nMore specifically, either one of `token` or `refresh_token` parameters is required.\nIf none of these two are specified, then `realm_name` and/or `username` need to be specified.", "examples": { "SecurityInvalidateTokenRequestExample1": { "description": "Run `DELETE /_security/oauth2/token` to invalidate an access token.\n", "summary": "Invalidate an access token", "value": "{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\"\n}" }, "SecurityInvalidateTokenRequestExample2": { "description": "Run `DELETE /_security/oauth2/token` to invalidate a refresh token.\n", "summary": "Invalidate a refresh token", "value": "{\n \"refresh_token\" : \"vLBPvmAB6KvwvJZr27cS\"\n}" }, "SecurityInvalidateTokenRequestExample3": { "description": "Run `DELETE /_security/oauth2/token` to invalidate all access tokens and refresh tokens for the `saml1` realm.", "summary": "Invalidate tokens by realm", "value": "{\n \"realm_name\" : \"saml1\"\n}" }, "SecurityInvalidateTokenRequestExample4": { "description": "Run `DELETE /_security/oauth2/token` to invalidate all access tokens and refresh tokens for the user `myuser` in all realms.", "summary": "Invalidate tokens by user", "value": "{\n \"username\" : \"myuser\"\n}" }, "SecurityInvalidateTokenRequestExample5": { "description": "Run `DELETE /_security/oauth2/token` to invalidate all access tokens and refresh tokens for the user `myuser` in the `saml1` realm.", "summary": "Invalidate tokens by user and realm", "value": "{\n \"username\" : \"myuser\",\n \"realm_name\" : \"saml1\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.invalidate_token" }, "path": [], "query": [], "specLocation": "security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of errors that were encountered when invalidating the tokens.", "name": "error_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Details about the errors.\nThis field is not present in the response when `error_count` is `0`.", "name": "error_details", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } }, { "description": "The number of the tokens that were invalidated as part of this request.", "name": "invalidated_tokens", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of tokens that were already invalidated.", "name": "previously_invalidated_tokens", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ] }, "examples": { "SecurityInvalidateTokenResponseExample1": { "description": "A partially successful response from `DELETE /_security/oauth2/token`. The response includes the number of the tokens that were invalidated, the number of errors that were encountered when invalidating the tokens, and details about these errors.\n", "value": "{\n \"invalidated_tokens\":9, \n \"previously_invalidated_tokens\":15, \n \"error_count\":2, \n \"error_details\":[ \n {\n \"type\":\"exception\",\n \"reason\":\"Elasticsearch exception [type=exception, reason=foo]\",\n \"caused_by\":{\n \"type\":\"exception\",\n \"reason\":\"Elasticsearch exception [type=illegal_argument_exception, reason=bar]\"\n }\n },\n {\n \"type\":\"exception\",\n \"reason\":\"Elasticsearch exception [type=exception, reason=boo]\",\n \"caused_by\":{\n \"type\":\"exception\",\n \"reason\":\"Elasticsearch exception [type=illegal_argument_exception, reason=far]\"\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.invalidate_token" }, "specLocation": "security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L46" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "nonce", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the OpenID Connect realm.\nThis property is useful in cases where multiple realms are defined.", "name": "realm", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "redirect_uri", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Authenticate OpenID Connect.\n\nExchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication.\n\nElasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs.\nThese APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.", "examples": { "OidcAuthenticateRequestExample1": { "description": "Run `POST /_security/oidc/authenticate` to exchange the response that was returned from the OpenID Connect Provider after a successful authentication for an Elasticsearch access token and refresh token. This example is from an authentication that uses the authorization code grant flow.\n", "value": "{\n \"redirect_uri\" : \"https://oidc-kibana.elastic.co:5603/api/security/oidc/callback?code=jtI3Ntt8v3_XvcLzCFGq&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"state\" : \"4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"nonce\" : \"WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM\",\n \"realm\" : \"oidc1\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.oidc_authenticate" }, "path": [], "query": [], "specLocation": "security/oidc_authenticate/Request.ts#L22-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The Elasticsearch access token.", "name": "access_token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The duration (in seconds) of the tokens.", "name": "expires_in", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The Elasticsearch refresh token.", "name": "refresh_token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The type of token.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "OidcAuthenticateResponseExample1": { "description": "A successful response from `POST /_security/oidc/authenticate`. It contains the access and refresh tokens that were generated, the token duration (in seconds), and the type.\n", "value": "{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\"\n}" } }, "name": { "name": "Response", "namespace": "security.oidc_authenticate" }, "specLocation": "security/oidc_authenticate/Response.ts#L22-L41" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The access token to be invalidated.", "name": "token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The refresh token to be invalidated.", "name": "refresh_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Logout of OpenID Connect.\n\nInvalidate an access token and a refresh token that were generated as a response to the `/_security/oidc/authenticate` API.\n\nIf the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout.\n\nElasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs.\nThese APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.", "examples": { "OidcLogoutRequestExample1": { "description": "Run `POST /_security/oidc/logout` to perform the logout.", "value": "{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.oidc_logout" }, "path": [], "query": [], "specLocation": "security/oidc_logout/Request.ts#L22-L52" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A URI that points to the end session endpoint of the OpenID Connect Provider with all the parameters of the logout request as HTTP GET parameters.", "name": "redirect", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "OidcLogoutResponseExample1": { "description": "A successful response from `POST /_security/oidc/logout`, which contains the URI pointing to the End Session Endpoint of the OpenID Connect Provider with all the parameters of the Logout Request as HTTP GET parameters.", "value": "{\n \"redirect\" : \"https://op-provider.org/logout?id_token_hint=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c&post_logout_redirect_uri=http%3A%2F%2Foidc-kibana.elastic.co%2Floggedout&state=lGYK0EcSLjqH6pkT5EVZjC6eIW5YCGgywj2sxROO\"\n}" } }, "name": { "name": "Response", "namespace": "security.oidc_logout" }, "specLocation": "security/oidc_logout/Response.ts#L20-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "iss", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "login_hint", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "nonce", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "realm", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Prepare OpenID connect authentication.\n\nCreate an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch.\n\nThe response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process.\n\nElasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs.\nThese APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients.", "examples": { "OidcPrepareAuthenticationRequestExample1": { "description": "Run `POST /_security/oidc/prepare` to generate an authentication request for the OpenID Connect Realm `oidc1`.\n", "summary": "Prepare with realm", "value": "{\n \"realm\" : \"oidc1\"\n}" }, "OidcPrepareAuthenticationRequestExample2": { "description": "Run `POST /_security/oidc/prepare` to generate an authentication request for the OpenID Connect Realm `oidc1`, where the values for the `state` and the `nonce` have been generated by the client.\n", "summary": "Prepare with realm, state, and nonce", "value": "{\n \"realm\" : \"oidc1\",\n \"state\" : \"lGYK0EcSLjqH6pkT5EVZjC6eIW5YCGgywj2sxROO\",\n \"nonce\" : \"zOBXLJGUooRrbLbQk5YCcyC8AXw3iloynvluYhZ5\"\n}" }, "OidcPrepareAuthenticationRequestExample3": { "description": "Run `POST /_security/oidc/prepare` to generate an authentication request for a third party initiated single sign on. Specify the issuer that should be used for matching the appropriate OpenID Connect Authentication realm.\n", "summary": "Prepare by realm", "value": "{\n \"iss\" : \"http://127.0.0.1:8080\",\n \"login_hint\": \"this_is_an_opaque_string\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.oidc_prepare_authentication" }, "path": [], "query": [], "specLocation": "security/oidc_prepare_authentication/Request.ts#L22-L71" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "nonce", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A URI that points to the authorization endpoint of the OpenID Connect Provider with all the parameters of the authentication request as HTTP GET parameters.", "name": "redirect", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "OidcPrepareAuthenticationResponseExample1": { "description": "A successful response from `POST /_security/oidc/prepare`. It contains the URI pointing to the Authorization Endpoint of the OpenID Connect Provider with all the parameters of the Authentication Request as HTTP GET parameters.\n", "value": "{\n \"redirect\" : \"http://127.0.0.1:8080/c2id-login?scope=openid&response_type=id_token&redirect_uri=https%3A%2F%2Fmy.fantastic.rp%2Fcb&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I&nonce=WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM&client_id=elasticsearch-rp\",\n \"state\" : \"4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"nonce\" : \"WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM\",\n \"realm\" : \"oidc1\"\n}" } }, "name": { "name": "Response", "namespace": "security.oidc_prepare_authentication" }, "specLocation": "security/oidc_prepare_authentication/Response.ts#L20-L30" }, { "kind": "interface", "name": { "name": "Actions", "namespace": "security.put_privileges" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "application", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "security/put_privileges/types.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "privileges", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Actions", "namespace": "security.put_privileges" } } } } }, "description": "Create or update application privileges.\n\nTo use this API, you must have one of the following privileges:\n\n* The `manage_security` cluster privilege (or a greater privilege such as `all`).\n* The \"Manage Application Privileges\" global privilege for the application being referenced in the request.\n\nApplication names are formed from a prefix, with an optional suffix that conform to the following rules:\n\n* The prefix must begin with a lowercase ASCII letter.\n* The prefix must contain only ASCII letters or digits.\n* The prefix must be at least 3 characters long.\n* If the suffix exists, it must begin with either a dash `-` or `_`.\n* The suffix cannot contain any of the following characters: `\\`, `/`, `*`, `?`, `\"`, `<`, `>`, `|`, `,`, `*`.\n* No part of the name can contain whitespace.\n\nPrivilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters `_`, `-`, and `.`.\n\nAction names can contain any number of printable ASCII characters and must contain at least one of the following characters: `/`, `*`, `:`.", "examples": { "SecurityPutPrivilegesRequestExample1": { "description": "Run `PUT /_security/privilege` to add a single application privilege. The wildcard (`*`) means that this privilege grants access to all actions that start with `data:read/`. Elasticsearch does not assign any meaning to these actions. However, if the request includes an application privilege such as `data:read/users` or `data:read/settings`, the has privileges API respects the use of a wildcard and returns `true`.\n", "summary": "Add a privilege", "value": "{\n \"myapp\": {\n \"read\": {\n \"actions\": [ \n \"data:read/*\" , \n \"action:login\" ],\n \"metadata\": { \n \"description\": \"Read access to myapp\"\n }\n }\n }\n}" }, "SecurityPutPrivilegesRequestExample2": { "description": "Run `PUT /_security/privilege` to add multiple application privileges.\n", "summary": "Add multiple privileges", "value": "{\n \"app01\": {\n \"read\": {\n \"actions\": [ \"action:login\", \"data:read/*\" ]\n },\n \"write\": {\n \"actions\": [ \"action:login\", \"data:write/*\" ]\n }\n },\n \"app02\": {\n \"all\": {\n \"actions\": [ \"*\" ]\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.put_privileges" }, "path": [], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CreatedStatus", "namespace": "security._types" } } } } }, "examples": { "SecurityPutPrivilegesResponseExample1": { "description": "A successful response from `PUT /_security/privilege`.", "value": "{\n \"myapp\": {\n \"read\": {\n \"created\": true \n }\n }\n}" }, "SecurityPutPrivilegesResponseExample2": { "description": "A successful response from `PUT /_security/privilege`. The `created` property indicates whether the privileges have been created or updated.\n", "value": "{\n \"app02\": {\n \"all\": {\n \"created\": true\n }\n },\n \"app01\": {\n \"read\": {\n \"created\": true\n },\n \"write\": {\n \"created\": true\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "security.put_privileges" }, "specLocation": "security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A list of application privilege entries.", "name": "applications", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApplicationPrivileges", "namespace": "security._types" } } } }, { "description": "A list of cluster privileges. These privileges define the cluster-level actions for users with this role.", "name": "cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ClusterPrivilege", "namespace": "security._types" } } } }, { "availability": { "stack": {} }, "description": "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.", "name": "global", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "A list of indices permissions entries.", "name": "indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.14.0" } }, "description": "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.", "name": "remote_indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteIndicesPrivileges", "namespace": "security._types" } } } }, { "availability": { "stack": { "since": "8.15.0" } }, "description": "A list of remote cluster permissions entries.", "name": "remote_cluster", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RemoteClusterPrivileges", "namespace": "security._types" } } } }, { "description": "Optional metadata. Within the metadata object, keys that begin with an underscore (`_`) are reserved for system use.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "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.", "extDocId": "run-as-privilege", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/submitting-requests-on-behalf-of-other-users", "name": "run_as", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Optional description of the role descriptor", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "transient_metadata", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Create or update roles.\n\nThe role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management.\nThe create or update roles API cannot update roles that are defined in roles files.\nFile-based role management is not available in Elastic Serverless.", "examples": { "SecurityPutRoleRequestExample1": { "description": "Run `POST /_security/role/my_admin_role` to create a role.", "summary": "Role example 1", "value": "{\n \"description\": \"Grants full access to all management features within the cluster.\",\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [ \"index1\", \"index2\" ],\n \"privileges\": [\"all\"],\n \"field_security\" : { // optional\n \"grant\" : [ \"title\", \"body\" ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\" // optional\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [ \"admin\", \"read\" ],\n \"resources\": [ \"*\" ]\n }\n ],\n \"run_as\": [ \"other_user\" ], // optional\n \"metadata\" : { // optional\n \"version\" : 1\n }\n}" }, "SecurityPutRoleRequestExample2": { "description": "Run `POST /_security/role/cli_or_drivers_minimal` to configure a role that can run SQL in JDBC.", "summary": "Role example 2", "value": "{\n \"cluster\": [\"cluster:monitor/main\"],\n \"indices\": [\n {\n \"names\": [\"test\"],\n \"privileges\": [\"read\", \"indices:admin/get\"]\n }\n ]\n}" }, "SecurityPutRoleRequestExample3": { "description": "Run `POST /_security/role/only_remote_access_role` to configure a role with remote indices and remote cluster privileges for a remote cluster.", "summary": "Role example 3", "value": "{\n \"remote_indices\": [\n {\n \"clusters\": [\"my_remote\"], \n \"names\": [\"logs*\"], \n \"privileges\": [\"read\", \"read_cross_cluster\", \"view_index_metadata\"] \n }\n ],\n \"remote_cluster\": [\n {\n \"clusters\": [\"my_remote\"], \n \"privileges\": [\"monitor_stats\"] \n }\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.put_role" }, "path": [ { "description": "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.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/put_role/SecurityPutRoleRequest.ts#L32-L111" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "When an existing role is updated, `created` is set to `false`.", "name": "role", "required": true, "type": { "kind": "instance_of", "type": { "name": "CreatedStatus", "namespace": "security._types" } } } ] }, "examples": { "SecurityPutRoleResponseExample1": { "description": "A successful response from `POST /_security/role/my_admin_role`.", "value": "{\n \"role\": {\n \"created\": true \n }\n}" } }, "name": { "name": "Response", "namespace": "security.put_role" }, "specLocation": "security/put_role/SecurityPutRoleResponse.ts#L22-L29" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Mappings that have `enabled` set to `false` are ignored when role mapping is performed.", "name": "enabled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Additional metadata that helps define which roles are assigned to each user.\nWithin the metadata object, keys beginning with `_` are reserved for system usage.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "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.", "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "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.", "name": "role_templates", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RoleTemplate", "namespace": "security._types" } } } }, { "description": "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.", "name": "rules", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoleMappingRule", "namespace": "security._types" } } }, { "name": "run_as", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Create or update role mappings.\n\nRole mappings define which roles are assigned to each user.\nEach mapping has rules that identify users and a list of roles that are granted to those users.\nThe role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files.\n\nNOTE: This API does not create roles. Rather, it maps users to existing roles.\nRoles can be created by using the create or update roles API or roles files.\n\n**Role templates**\n\nThe most common use for role mappings is to create a mapping from a known value on the user to a fixed role name.\nFor example, all users in the `cn=admin,dc=example,dc=com` LDAP group should be given the superuser role in Elasticsearch.\nThe `roles` field is used for this purpose.\n\nFor more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user.\nThe `role_templates` field is used for this purpose.\n\nNOTE: To use role templates successfully, the relevant scripting feature must be enabled.\nOtherwise, all attempts to create a role mapping with role templates fail.\n\nAll of the user fields that are available in the role mapping rules are also available in the role templates.\nThus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated.\n\nBy default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user.\nIf the format of the template is set to \"json\" then the template is expected to produce a JSON string or an array of JSON strings for the role names.", "examples": { "SecurityPutRoleMappingRequestExample1": { "description": "Run `POST /_security/role_mapping/mapping1` to assign the `user` role to all users.\n", "summary": "Roles for all users", "value": "{\n \"roles\": [ \"user\"],\n \"enabled\": true, \n \"rules\": {\n \"field\" : { \"username\" : \"*\" }\n },\n \"metadata\" : { \n \"version\" : 1\n }\n}" }, "SecurityPutRoleMappingRequestExample2": { "description": "Run `POST /_security/role_mapping/mapping2` to assign the \"user\" and \"admin\" roles to specific users.\n", "summary": "Roles for specific users", "value": "{\n \"roles\": [ \"user\", \"admin\" ],\n \"enabled\": true,\n \"rules\": {\n \"field\" : { \"username\" : [ \"esadmin01\", \"esadmin02\" ] }\n }\n}" }, "SecurityPutRoleMappingRequestExample3": { "description": "Run `POST /_security/role_mapping/mapping3` to match users who authenticated against a specific realm.\n", "summary": "Roles for specific realms", "value": "{\n \"roles\": [ \"ldap-user\" ],\n \"enabled\": true,\n \"rules\": {\n \"field\" : { \"realm.name\" : \"ldap1\" }\n }\n}" }, "SecurityPutRoleMappingRequestExample4": { "description": "Run `POST /_security/role_mapping/mapping4` to match any user where either the username is `esadmin` or the user is in the `cn=admin,dc=example,dc=com group`. This example is useful when the group names in your identity management system (such as Active Directory, or a SAML Identity Provider) do not have a one-to-one correspondence with the names of roles in Elasticsearch. The role mapping is the means by which you link a group name with a role name.\n", "summary": "Roles for specific groups", "value": "{\n \"roles\": [ \"superuser\" ],\n \"enabled\": true,\n \"rules\": {\n \"any\": [\n {\n \"field\": {\n \"username\": \"esadmin\"\n }\n },\n {\n \"field\": {\n \"groups\": \"cn=admins,dc=example,dc=com\"\n }\n }\n ]\n }\n}" }, "SecurityPutRoleMappingRequestExample5": { "description": "Run `POST /_security/role_mapping/mapping5` to use an array syntax for the groups field when there are multiple groups. This pattern matches any of the groups (rather than all of the groups).\n", "summary": "Roles for multiple groups", "value": "{\n \"role_templates\": [\n {\n \"template\": { \"source\": \"{{#tojson}}groups{{/tojson}}\" }, \n \"format\" : \"json\" \n }\n ],\n \"rules\": {\n \"field\" : { \"realm.name\" : \"saml1\" }\n },\n \"enabled\": true\n}" }, "SecurityPutRoleMappingRequestExample6": { "description": "Run `POST /_security/role_mapping/mapping6` for rare cases when the names of your groups may be an exact match for the names of your Elasticsearch roles. This can be the case when your SAML Identity Provider includes its own \"group mapping\" feature and can be configured to release Elasticsearch role names in the user's SAML attributes. In these cases it is possible to use a template that treats the group names as role names.\nNOTE: This should only be done if you intend to define roles for all of the provided groups. Mapping a user to a large number of unnecessary or undefined roles is inefficient and can have a negative effect on system performance. If you only need to map a subset of the groups, you should do it by using explicit mappings.\nThe `tojson` mustache function is used to convert the list of group names into a valid JSON array. Because the template produces a JSON array, the `format` must be set to `json`.\n", "summary": "Templated roles for groups", "value": "{\n \"role_templates\": [\n {\n \"template\": { \"source\": \"{{#tojson}}groups{{/tojson}}\" }, \n \"format\" : \"json\" \n }\n ],\n \"rules\": {\n \"field\" : { \"realm.name\" : \"saml1\" }\n },\n \"enabled\": true\n}" }, "SecurityPutRoleMappingRequestExample7": { "description": "Run `POST /_security/role_mapping/mapping7` to match users within a particular LDAP sub-tree in a specific realm.\n", "summary": "Users in a LDAP sub-tree and realm", "value": "{\n \"roles\": [ \"ldap-example-user\" ],\n \"enabled\": true,\n \"rules\": {\n \"all\": [\n { \"field\" : { \"dn\" : \"*,ou=subtree,dc=example,dc=com\" } },\n { \"field\" : { \"realm.name\" : \"ldap1\" } }\n ]\n }\n}" }, "SecurityPutRoleMappingRequestExample8": { "description": "Run `POST /_security/role_mapping/mapping8` to assign rules that are complex and include wildcard matching. For example, this mapping matches any user where all of these conditions are met: the Distinguished Name matches the pattern `*,ou=admin,dc=example,dc=com`, or the `username` is `es-admin`, or the `username` is `es-system`; the user is in the `cn=people,dc=example,dc=com` group; the user does not have a `terminated_date`.\n", "summary": "Complex roles", "value": "{\n \"roles\": [ \"superuser\" ],\n \"enabled\": true,\n \"rules\": {\n \"all\": [\n {\n \"any\": [\n {\n \"field\": {\n \"dn\": \"*,ou=admin,dc=example,dc=com\"\n }\n },\n {\n \"field\": {\n \"username\": [ \"es-admin\", \"es-system\" ]\n }\n }\n ]\n },\n {\n \"field\": {\n \"groups\": \"cn=people,dc=example,dc=com\"\n }\n },\n {\n \"except\": {\n \"field\": {\n \"metadata.terminated_date\": null\n }\n }\n }\n ]\n }\n}" }, "SecurityPutRoleMappingRequestExample9": { "description": "Run `POST /_security/role_mapping/mapping9` to use templated roles to automatically map every user to their own custom role. In this example every user who authenticates using the `cloud-saml` realm will be automatically mapped to two roles: the `saml_user` role and a role that is their username prefixed with `_user_`. For example, the user `nwong` would be assigned the `saml_user` and `_user_nwong` roles.\n", "summary": "Templated roles", "value": "{\n \"rules\": { \"field\": { \"realm.name\": \"cloud-saml\" } },\n \"role_templates\": [\n { \"template\": { \"source\" : \"saml_user\" } }, \n { \"template\": { \"source\" : \"_user_{{username}}\" } }\n ],\n \"enabled\": true\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.put_role_mapping" }, "path": [ { "description": "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.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "created", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "role_mapping", "required": true, "type": { "kind": "instance_of", "type": { "name": "CreatedStatus", "namespace": "security._types" } } } ] }, "examples": { "SecurityPutRoleMappingResponseExample1": { "description": "A successful response from `POST /_security/role_mapping/mapping1`.", "value": "{\n \"role_mapping\" : {\n \"created\" : true \n }\n}" } }, "name": { "name": "Response", "namespace": "security.put_role_mapping" }, "specLocation": "security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "username", "required": false, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "description": "The email of the user.", "name": "email", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The full name of the user.", "name": "full_name", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "Arbitrary metadata that you want to associate with the user.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "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", "name": "password", "required": false, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } }, { "description": "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.", "extDocId": "security-settings-hashing", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/configuration-reference/security-settings#hashing-settings", "name": "password_hash", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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 (`[]`).", "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Specifies whether the user is enabled.", "name": "enabled", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Create or update users.\n\nAdd and update users in the native realm.\nA password is required for adding a new user but is optional when updating an existing user.\nTo change a user's password without updating any other fields, use the change password API.", "examples": { "SecurityPutUserRequestExample1": { "description": "Run `POST /_security/user/jacknich` to activate a user profile.", "value": "{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"admin\", \"other_role1\" ],\n \"full_name\" : \"Jack Nicholson\",\n \"email\" : \"jacknich@example.com\",\n \"metadata\" : {\n \"intelligence\" : 7\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.put_user" }, "path": [ { "description": "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.", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "refresh", "required": false, "serverDefault": "true", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/put_user/SecurityPutUserRequest.ts#L23-L101" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A successful call returns a JSON structure that shows whether the user has been created or updated.\nWhen an existing user is updated, `created` is set to `false`.", "name": "created", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "SecurityPutUserResponseExample1": { "description": "A successful response from `POST /_security/user/jacknich`. When an existing user is updated, `created` is set to `false`.\n", "value": "{\n \"created\": true \n}" } }, "name": { "name": "Response", "namespace": "security.put_user" }, "specLocation": "security/put_user/SecurityPutUserResponse.ts#L20-L28" }, { "kind": "type_alias", "name": { "name": "ApiKeyAggregate", "namespace": "security.query_api_keys" }, "specLocation": "security/query_api_keys/types.ts#L122-L139", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "CardinalityAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "ValueCountAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "StringTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "LongTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "DoubleTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "UnmappedTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MultiTermsAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "MissingAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "FilterAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "FiltersAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "RangeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "DateRangeAggregate", "namespace": "_types.aggregations" } }, { "kind": "instance_of", "type": { "name": "CompositeAggregate", "namespace": "_types.aggregations" } } ] }, "variants": { "kind": "external_tag", "nonExhaustive": true } }, { "kind": "interface", "name": { "name": "ApiKeyAggregationContainer", "namespace": "security.query_api_keys" }, "properties": [ { "aliases": [ "aggs" ], "containerProperty": true, "description": "Sub-aggregations for this aggregation.\nOnly applies to bucket aggregations.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ApiKeyAggregationContainer", "namespace": "security.query_api_keys" } } } }, { "containerProperty": true, "name": "meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "A single-value metrics aggregation that calculates an approximate count of distinct values.", "docId": "search-aggregations-metrics-cardinality-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-cardinality-aggregation", "name": "cardinality", "required": false, "type": { "kind": "instance_of", "type": { "name": "CardinalityAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket aggregation that creates composite buckets from different sources.\nUnlike the other multi-bucket aggregations, you can use the `composite` aggregation to paginate *all* buckets from a multi-level aggregation efficiently.", "name": "composite", "required": false, "type": { "kind": "instance_of", "type": { "name": "CompositeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation that enables the user to define a set of date ranges - each representing a bucket.", "docId": "search-aggregations-bucket-daterange-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-daterange-aggregation", "name": "date_range", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateRangeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single bucket aggregation that narrows the set of documents to those that match a query.", "docId": "search-aggregations-bucket-filter-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-filter-aggregation", "name": "filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "ApiKeyQueryContainer", "namespace": "security.query_api_keys" } } }, { "description": "A multi-bucket aggregation where each bucket contains the documents that match a query.", "docId": "search-aggregations-bucket-filters-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-filters-aggregation", "name": "filters", "required": false, "type": { "kind": "instance_of", "type": { "name": "ApiKeyFiltersAggregation", "namespace": "security.query_api_keys" } } }, { "name": "missing", "required": false, "type": { "kind": "instance_of", "type": { "name": "MissingAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation that enables the user to define a set of ranges - each representing a bucket.", "docId": "search-aggregations-bucket-range-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-range-aggregation", "name": "range", "required": false, "type": { "kind": "instance_of", "type": { "name": "RangeAggregation", "namespace": "_types.aggregations" } } }, { "description": "A multi-bucket value source based aggregation where buckets are dynamically built - one per unique value.", "docId": "search-aggregations-bucket-terms-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-terms-aggregation", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregation", "namespace": "_types.aggregations" } } }, { "description": "A single-value metrics aggregation that counts the number of values that are extracted from the aggregated documents.", "docId": "search-aggregations-metrics-valuecount-aggregation", "docUrl": "https://www.elastic.co/docs/reference/aggregations/search-aggregations-metrics-valuecount-aggregation", "name": "value_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "ValueCountAggregation", "namespace": "_types.aggregations" } } } ], "specLocation": "security/query_api_keys/types.ts#L63-L120", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "inherits": { "type": { "name": "BucketAggregationBase", "namespace": "_types.aggregations" } }, "name": { "name": "ApiKeyFiltersAggregation", "namespace": "security.query_api_keys" }, "properties": [ { "description": "Collection of queries from which to build buckets.", "name": "filters", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "ApiKeyQueryContainer", "namespace": "security.query_api_keys" } } ], "type": { "name": "Buckets", "namespace": "_types.aggregations" } } }, { "description": "Set to `true` to add a bucket to the response which will contain all documents that do not match any of the given filters.", "name": "other_bucket", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The key with which the other bucket is returned.", "name": "other_bucket_key", "required": false, "serverDefault": "_other_", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "By default, the named filters aggregation returns the buckets as an object.\nSet to `false` to return the buckets as an array of objects.", "name": "keyed", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/query_api_keys/types.ts#L207-L227" }, { "kind": "interface", "name": { "name": "ApiKeyQueryContainer", "namespace": "security.query_api_keys" }, "properties": [ { "description": "Matches documents matching boolean combinations of other queries.", "docId": "query-dsl-bool-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-bool-query", "name": "bool", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoolQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain an indexed value for a field.", "docId": "query-dsl-exists-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-exists-query", "name": "exists", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExistsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents based on their IDs.\nThis query uses document IDs stored in the `_id` field.", "docId": "query-dsl-ids-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-ids-query", "name": "ids", "required": false, "type": { "kind": "instance_of", "type": { "name": "IdsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that match a provided text, number, date or boolean value.\nThe provided text is analyzed before matching.", "docId": "query-dsl-match-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query", "name": "match", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Matches all documents, giving them all a `_score` of 1.0.", "docId": "query-dsl-match-all-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query", "name": "match_all", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatchAllQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain a specific prefix in a provided field.", "docId": "query-dsl-prefix-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-prefix-query", "name": "prefix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "PrefixQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents that contain terms within a provided range.", "docId": "query-dsl-range-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query", "name": "range", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "RangeQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents based on a provided query string, using a parser with a limited but fault-tolerant syntax.", "docId": "query-dsl-simple-query-string-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query", "name": "simple_query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "SimpleQueryStringQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain an exact term in a provided field.\nTo return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.", "docId": "query-dsl-term-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-term-query", "name": "term", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "TermQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns documents that contain one or more exact terms in a provided field.\nTo return a document, one or more terms must exactly match a field value, including whitespace and capitalization.", "docId": "query-dsl-terms-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-query", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns documents that contain terms matching a wildcard pattern.", "docId": "query-dsl-wildcard-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wildcard-query", "name": "wildcard", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "WildcardQuery", "namespace": "_types.query_dsl" } } } } ], "specLocation": "security/query_api_keys/types.ts#L141-L205", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "aliases": [ "aggs" ], "description": "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.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ApiKeyAggregationContainer", "namespace": "security.query_api_keys" } } } }, { "description": "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.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "ApiKeyQueryContainer", "namespace": "security.query_api_keys" } } }, { "description": "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.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "extDocId": "sort-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "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.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The search after definition.", "extDocId": "search-after", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#search-after", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ] }, "description": "Find API keys with a query.\n\nGet a paginated list of API keys and their information.\nYou can optionally filter the results with a query.\n\nTo use this API, you must have at least the `manage_own_api_key` or the `read_security` cluster privileges.\nIf you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own.\nIf you have the `read_security`, `manage_api_key`, or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership.", "examples": { "QueryApiKeysRequestExample1": { "description": "Run `GET /_security/_query/api_key?with_limited_by=true` to retrieve an API key by ID.", "summary": "Query API keys by ID", "value": "{\n \"query\": {\n \"ids\": {\n \"values\": [\n \"VuaCfGcBCdbkQm-e5aOx\"\n ]\n }\n }\n}" }, "QueryApiKeysRequestExample2": { "description": "Run `GET /_security/_query/api_key`. Use a `bool` query to issue complex logical conditions and use `from`, `size`, and `sort` to help paginate the result. For example, the API key name must begin with `app1-key-` and must not be `app1-key-01`. It must be owned by a username with the wildcard pattern `org-*-user` and the `environment` metadata field must have a `production` value. The offset to begin the search result is the twentieth (zero-based index) API key. The page size of the response is 10 API keys. The result is first sorted by creation date in descending order, then by name in ascending order.\n", "summary": "Query API keys with pagination", "value": "{\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"prefix\": {\n \"name\": \"app1-key-\" \n }\n },\n {\n \"term\": {\n \"invalidated\": \"false\" \n }\n }\n ],\n \"must_not\": [\n {\n \"term\": {\n \"name\": \"app1-key-01\" \n }\n }\n ],\n \"filter\": [\n {\n \"wildcard\": {\n \"username\": \"org-*-user\" \n }\n },\n {\n \"term\": {\n \"metadata.environment\": \"production\" \n }\n }\n ]\n }\n },\n \"from\": 20, \n \"size\": 10, \n \"sort\": [ \n { \"creation\": { \"order\": \"desc\", \"format\": \"date_time\" } },\n \"name\"\n ]\n}" }, "QueryApiKeysRequestExample3": { "description": "Run `GET /_security/_query/api_key` to retrieve the API key by name.", "summary": "Query API keys by name", "value": "{\n \"query\": {\n \"term\": {\n \"name\": {\n \"value\": \"application-key-1\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.query_api_keys" }, "path": [], "query": [ { "availability": { "serverless": {}, "stack": { "since": "8.5.0" } }, "description": "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.", "name": "with_limited_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.14.0" } }, "description": "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.", "name": "with_profile_uid", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.14.0" } }, "description": "Determines whether aggregation names are prefixed by their respective types in the response.", "name": "typed_keys", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/query_api_keys/QueryApiKeysRequest.ts#L26-L124" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of API keys found.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of API keys returned in the response.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A list of API key information.", "name": "api_keys", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ApiKey", "namespace": "security._types" } } } }, { "description": "The aggregations result, if requested.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "AggregateName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ApiKeyAggregate", "namespace": "security.query_api_keys" } } } } ] }, "examples": { "QueryApiKeysResponseExample1": { "description": "A successful response from `GET /_security/_query/api_key?with_limited_by=true`. The `limited_by` details are the owner user's permissions associated with the API key. It is a point-in-time snapshot captured at creation and subsequent updates. An API key's effective permissions are an intersection of its assigned privileges and the owner user's permissions.\n", "summary": "Query API keys by ID", "value": "{\n \"api_keys\": [\n {\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\",\n \"name\": \"application-key-1\",\n \"creation\": 1548550550158,\n \"expiration\": 1548551550158,\n \"invalidated\": false,\n \"username\": \"myuser\",\n \"realm\": \"native1\",\n \"realm_type\": \"native\",\n \"metadata\": {\n \"application\": \"my-application\"\n },\n \"role_descriptors\": { },\n \"limited_by\": [ \n {\n \"role-power-user\": {\n \"cluster\": [\n \"monitor\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"*\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"allow_restricted_indices\": false\n }\n ],\n \"applications\": [ ],\n \"run_as\": [ ],\n \"metadata\": { },\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n }\n ]\n }\n ]\n}" }, "QueryApiKeysResponseExample2": { "description": "An abbreviated response from `GET /_security/_query/api_key` that contains a list of matched API keys along with their sort values. The first sort value is creation time, which is displayed in `date_time` format. The second sort value is the API key name.\n", "summary": "Query API keys with pagination", "value": "{\n \"total\": 100,\n \"count\": 10,\n \"api_keys\": [\n {\n \"id\": \"CLXgVnsBOGkf8IyjcXU7\",\n \"name\": \"app1-key-79\",\n \"creation\": 1629250154811,\n \"invalidated\": false,\n \"username\": \"org-admin-user\",\n \"realm\": \"native1\",\n \"metadata\": {\n \"environment\": \"production\"\n },\n \"role_descriptors\": { },\n \"_sort\": [\n \"2021-08-18T01:29:14.811Z\", \n \"app1-key-79\" \n ]\n },\n {\n \"id\": \"BrXgVnsBOGkf8IyjbXVB\",\n \"name\": \"app1-key-78\",\n \"creation\": 1629250153794,\n \"invalidated\": false,\n \"username\": \"org-admin-user\",\n \"realm\": \"native1\",\n \"metadata\": {\n \"environment\": \"production\"\n },\n \"role_descriptors\": { },\n \"_sort\": [\n \"2021-08-18T01:29:13.794Z\",\n \"app1-key-78\"\n ]\n }\n ]\n}" }, "QueryApiKeysResponseExample3": { "description": "A successful response from `GET /_security/_query/api_key`. It includes the role descriptors that are assigned to each API key when it was created or last updated. Note that an API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of the owner user's permissions. An empty role descriptors object means the API key inherits the owner user's permissions.\n", "summary": "Query all API keys", "value": "{\n \"total\": 3,\n \"count\": 3,\n \"api_keys\": [ \n {\n \"id\": \"nkvrGXsB8w290t56q3Rg\",\n \"name\": \"my-api-key-1\",\n \"creation\": 1628227480421,\n \"expiration\": 1629091480421,\n \"invalidated\": false,\n \"username\": \"elastic\",\n \"realm\": \"reserved\",\n \"realm_type\": \"reserved\",\n \"metadata\": {\n \"letter\": \"a\"\n },\n \"role_descriptors\": { \n \"role-a\": {\n \"cluster\": [\n \"monitor\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index-a\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"allow_restricted_indices\": false\n }\n ],\n \"applications\": [ ],\n \"run_as\": [ ],\n \"metadata\": { },\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n }\n },\n {\n \"id\": \"oEvrGXsB8w290t5683TI\",\n \"name\": \"my-api-key-2\",\n \"creation\": 1628227498953,\n \"expiration\": 1628313898953,\n \"invalidated\": false,\n \"username\": \"elastic\",\n \"realm\": \"reserved\",\n \"metadata\": {\n \"letter\": \"b\"\n },\n \"role_descriptors\": { } \n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.query_api_keys" }, "specLocation": "security/query_api_keys/QueryApiKeysResponse.ts#L26-L45" }, { "kind": "interface", "inherits": { "type": { "name": "RoleDescriptor", "namespace": "security._types" } }, "name": { "name": "QueryRole", "namespace": "security.query_role" }, "properties": [ { "name": "_sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } }, { "description": "Name of the role.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "security/query_role/types.ts#L103-L109" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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`.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "RoleQueryContainer", "namespace": "security.query_role" } } }, { "description": "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.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The sort definition.\nYou can sort on `username`, `roles`, or `enabled`.\nIn addition, sort can also be applied to the `_doc` field to sort by index order.", "docId": "sort-search-results", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "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.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The search after definition.", "extDocId": "search-after", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#search-after", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ] }, "description": "Find roles with a query.\n\nGet roles in a paginated manner.\nThe role management APIs are generally the preferred way to manage roles, rather than using file-based role management.\nThe query roles API does not retrieve roles that are defined in roles files, nor built-in ones.\nYou can optionally filter the results with a query.\nAlso, the results can be paginated and sorted.", "examples": { "QueryRolesRequestExample1": { "description": "Run `POST /_security/_query/role` to lists all roles, sorted by the role name.", "summary": "Query roles by name", "value": "{\n \"sort\": [\"name\"]\n}" }, "QueryRolesRequestExample2": { "description": "Run `POST /_security/_query/role` to query only the user access role, given its description. It returns only the best matching role because `size` is set to `1`.\n", "summary": "Query roles by description", "value": "{\n \"query\": {\n \"match\": {\n \"description\": {\n \"query\": \"user access\"\n }\n }\n },\n \"size\": 1 \n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.query_role" }, "path": [], "query": [], "specLocation": "security/query_role/QueryRolesRequest.ts#L25-L85" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of roles found.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of roles returned in the response.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A list of roles that match the query.\nThe returned role format is an extension of the role definition format.\nIt adds the `transient_metadata.enabled` and the `_sort` fields.\n`transient_metadata.enabled` is set to `false` in case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license.\n`_sort` is present when the search query sorts on some field.\nIt contains the array of values that have been used for sorting.", "name": "roles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryRole", "namespace": "security.query_role" } } } } ] }, "examples": { "QueryRolesResponseExample1": { "description": "A successful response from `POST /_security/_query/role`. It returns a JSON structure that contains the information retrieved for one or more roles.\n", "summary": "Query roles by name", "value": "{\n \"total\": 2,\n \"count\": 2,\n \"roles\": [ \n {\n \"name\" : \"my_admin_role\",\n \"cluster\" : [\n \"all\"\n ],\n \"indices\" : [\n {\n \"names\" : [\n \"index1\",\n \"index2\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"field_security\" : {\n \"grant\" : [\n \"title\",\n \"body\"\n ]\n },\n \"allow_restricted_indices\" : false\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [\n \"other_user\"\n ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\" : {\n \"enabled\" : true\n },\n \"description\" : \"Grants full access to all management features within the cluster.\",\n \"_sort\" : [\n \"my_admin_role\"\n ]\n },\n {\n \"name\" : \"my_user_role\",\n \"cluster\" : [ ],\n \"indices\" : [\n {\n \"names\" : [\n \"index1\",\n \"index2\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"field_security\" : {\n \"grant\" : [\n \"title\",\n \"body\"\n ]\n },\n \"allow_restricted_indices\" : false\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [ ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\" : {\n \"enabled\" : true\n },\n \"description\" : \"Grants user access to some indicies.\",\n \"_sort\" : [\n \"my_user_role\"\n ]\n }\n ]\n}" }, "QueryRolesResponseExample2": { "description": "A successful response from `POST /_security/_query/role`.\n", "summary": "Query roles by description", "value": "{\n \"total\": 2,\n \"count\": 1,\n \"roles\": [\n {\n \"name\" : \"my_user_role\",\n \"cluster\" : [ ],\n \"indices\" : [\n {\n \"names\" : [\n \"index1\",\n \"index2\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"field_security\" : {\n \"grant\" : [\n \"title\",\n \"body\"\n ]\n },\n \"allow_restricted_indices\" : false\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [ ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\" : {\n \"enabled\" : true\n },\n \"description\" : \"Grants user access to some indicies.\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.query_role" }, "specLocation": "security/query_role/QueryRolesResponse.ts#L23-L43" }, { "kind": "interface", "name": { "name": "RoleQueryContainer", "namespace": "security.query_role" }, "properties": [ { "description": "matches roles matching boolean combinations of other queries.", "docId": "query-dsl-bool-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-bool-query", "name": "bool", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoolQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns roles that contain an indexed value for a field.", "docId": "query-dsl-exists-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-exists-query", "name": "exists", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExistsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns roles based on their IDs.\nThis query uses role document IDs stored in the `_id` field.", "docId": "query-dsl-ids-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-ids-query", "name": "ids", "required": false, "type": { "kind": "instance_of", "type": { "name": "IdsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns roles that match a provided text, number, date or boolean value.\nThe provided text is analyzed before matching.", "docId": "query-dsl-match-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query", "name": "match", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Matches all roles, giving them all a `_score` of 1.0.", "docId": "query-dsl-match-all-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query", "name": "match_all", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatchAllQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns roles that contain a specific prefix in a provided field.", "docId": "query-dsl-prefix-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-prefix-query", "name": "prefix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "PrefixQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns roles that contain terms within a provided range.", "docId": "query-dsl-range-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query", "name": "range", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "RangeQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns roles based on a provided query string, using a parser with a limited but fault-tolerant syntax.", "docId": "query-dsl-simple-query-string-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query", "name": "simple_query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "SimpleQueryStringQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns roles that contain an exact term in a provided field.\nTo return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.", "docId": "query-dsl-term-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-term-query", "name": "term", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "TermQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns roles that contain one or more exact terms in a provided field.\nTo return a document, one or more terms must exactly match a field value, including whitespace and capitalization.", "docId": "query-dsl-terms-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-query", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns roles that contain terms matching a wildcard pattern.", "docId": "query-dsl-wildcard-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wildcard-query", "name": "wildcard", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "WildcardQuery", "namespace": "_types.query_dsl" } } } } ], "specLocation": "security/query_role/types.ts#L37-L101", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "interface", "inherits": { "type": { "name": "User", "namespace": "security._types" } }, "name": { "name": "QueryUser", "namespace": "security.query_user" }, "properties": [ { "name": "_sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ], "specLocation": "security/query_user/types.ts#L103-L105" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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`.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "UserQueryContainer", "namespace": "security.query_user" } } }, { "description": "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.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "extDocId": "sort-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "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.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The search after definition", "extDocId": "search-after", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#search-after", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ] }, "description": "Find users with a query.\n\nGet information for users in a paginated manner.\nYou can optionally filter the results with a query.\n\nNOTE: As opposed to the get user API, built-in users are excluded from the result.\nThis API is only for native users.", "examples": { "SecurityQueryUserRequestExample1": { "description": "Run `POST /_security/_query/user?with_profile_uid=true` to get users that have roles that are prefixed with `other`. It will also include the user `profile_uid` in the response.\n", "summary": "Query users by role prefix", "value": "{\n \"query\": {\n \"prefix\": {\n \"roles\": \"other\"\n }\n }\n}" }, "SecurityQueryUserRequestExample2": { "description": "Run `POST /_security/_query/user`. Use a `bool` query to issue complex logical conditions: The `email` must end with `example.com`. The user must be enabled. The result will be filtered to only contain users with at least one role that contains the substring `other`. The offset to begin the search result is the second (zero-based index) user. The page size of the response is two users. The result is sorted by `username` in descending order.\n", "summary": "Query users with multiple conditions", "value": "{\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"wildcard\": {\n \"email\": \"*example.com\" \n }\n },\n {\n \"term\": {\n \"enabled\": true \n }\n }\n ],\n \"filter\": [\n {\n \"wildcard\": {\n \"roles\": \"*other*\" \n }\n }\n ]\n }\n },\n \"from\": 1, \n \"size\": 2, \n \"sort\": [\n { \"username\": { \"order\": \"desc\"} } \n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.query_user" }, "path": [], "query": [ { "description": "Determines whether to retrieve the user profile UID, if it exists, for the users.", "name": "with_profile_uid", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "security/query_user/SecurityQueryUserRequest.ts#L25-L91" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of users found.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of users returned in the response.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A list of users that match the query.", "name": "users", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryUser", "namespace": "security.query_user" } } } } ] }, "examples": { "SecurityQueryUserResponseExample1": { "description": "A successful response from `POST /_security/_query/user?with_profile_uid=true` that contains users that have roles that are prefixed with `other`. It also includes the user `profile_uid` in the response.\n", "summary": "Query users by role prefix", "value": "{\n \"total\": 1,\n \"count\": 1,\n \"users\": [\n {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true,\n \"profile_uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n }\n ]\n}" }, "SecurityQueryUserResponseExample2": { "description": "A successful response from `POST /_security/_query/user` that uses a `bool` query to issue complex logical conditions and uses `from`, `size`, and `sort` to help paginate the result. The sort value is `username`.\n", "summary": "Query users with multiple conditions", "value": "{\n \"total\": 5,\n \"count\": 2,\n \"users\": [\n {\n \"username\": \"ray\",\n \"roles\": [\n \"other_role3\"\n ],\n \"full_name\": \"Ray Nicholson\",\n \"email\": \"rayn@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true,\n \"_sort\": [\n \"ray\" \n ]\n },\n {\n \"username\": \"lorraine\",\n \"roles\": [\n \"other_role3\"\n ],\n \"full_name\": \"Lorraine Nicholson\",\n \"email\": \"lorraine@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true,\n \"_sort\": [\n \"lorraine\"\n ]\n }\n ]\n}" }, "SecurityQueryUserResponseExample3": { "description": "A successful response from `GET /_security/_query/user`, which lists all users. It returns a JSON structure that contains the information retrieved from one or more users.\n", "summary": "Query all users", "value": "{\n \"total\": 2,\n \"count\": 2,\n \"users\": [ \n {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true\n },\n {\n \"username\": \"sandrakn\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Sandra Knight\",\n \"email\": \"sandrakn@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "security.query_user" }, "specLocation": "security/query_user/SecurityQueryUserResponse.ts#L23-L38" }, { "kind": "interface", "name": { "name": "UserQueryContainer", "namespace": "security.query_user" }, "properties": [ { "description": "Returns users based on their IDs.\nThis query uses the user document IDs stored in the `_id` field.", "docId": "query-dsl-ids-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-ids-query", "name": "ids", "required": false, "type": { "kind": "instance_of", "type": { "name": "IdsQuery", "namespace": "_types.query_dsl" } } }, { "description": "matches users matching boolean combinations of other queries.", "docId": "query-dsl-bool-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-bool-query", "name": "bool", "required": false, "type": { "kind": "instance_of", "type": { "name": "BoolQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns users that contain an indexed value for a field.", "docId": "query-dsl-exists-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-exists-query", "name": "exists", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExistsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns users that match a provided text, number, date or boolean value.\nThe provided text is analyzed before matching.", "docId": "query-dsl-match-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-query", "name": "match", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "MatchQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Matches all users, giving them all a `_score` of 1.0.", "docId": "query-dsl-match-all-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-match-all-query", "name": "match_all", "required": false, "type": { "kind": "instance_of", "type": { "name": "MatchAllQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns users that contain a specific prefix in a provided field.", "docId": "query-dsl-prefix-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-prefix-query", "name": "prefix", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "PrefixQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns users that contain terms within a provided range.", "docId": "query-dsl-range-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query", "name": "range", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "RangeQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns users based on a provided query string, using a parser with a limited but fault-tolerant syntax.", "docId": "query-dsl-simple-query-string-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-simple-query-string-query", "name": "simple_query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "SimpleQueryStringQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns users that contain an exact term in a provided field.\nTo return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.", "docId": "query-dsl-term-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-term-query", "name": "term", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "TermQuery", "namespace": "_types.query_dsl" } } } }, { "description": "Returns users that contain one or more exact terms in a provided field.\nTo return a document, one or more terms must exactly match a field value, including whitespace and capitalization.", "docId": "query-dsl-terms-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-terms-query", "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsQuery", "namespace": "_types.query_dsl" } } }, { "description": "Returns users that contain terms matching a wildcard pattern.", "docId": "query-dsl-wildcard-query", "docUrl": "https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-wildcard-query", "name": "wildcard", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "WildcardQuery", "namespace": "_types.query_dsl" } } } } ], "specLocation": "security/query_user/types.ts#L37-L101", "variants": { "kind": "container", "nonExhaustive": true } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document.", "name": "content", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.", "name": "ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } }, { "description": "The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined.", "name": "realm", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Authenticate SAML.\n\nSubmit a SAML response message to Elasticsearch for consumption.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThe SAML message that is submitted can be:\n\n* A response to a SAML authentication request that was previously created using the SAML prepare authentication API.\n* An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow.\n\nIn either case, the SAML message needs to be a base64 encoded XML document with a root element of ``.\n\nAfter successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication.\nThis API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch.", "examples": { "SamlAuthenticateRequestExample1": { "description": "Run `POST /_security/saml/authenticate` to exchange a SAML Response indicating a successful authentication at the SAML IdP for an Elasticsearch access token and refresh token to be used in subsequent requests.\n", "value": "{\n \"content\" : \"PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMD.....\",\n \"ids\" : [\"4fee3b046395c4e751011e97f8900b5273d56685\"]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.saml_authenticate" }, "path": [], "query": [], "specLocation": "security/saml_authenticate/Request.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The access token that was generated by Elasticsearch.", "name": "access_token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The authenticated user's name.", "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The amount of time (in seconds) left until the token expires.", "name": "expires_in", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The refresh token that was generated by Elasticsearch.", "name": "refresh_token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the realm where the user was authenticated.", "name": "realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "SamlAuthenticateResponseExample1": { "description": "A successful response from `POST /_security/saml/authenticate`.", "value": "{\n \"access_token\" : \"46ToAxZVaXVVZTVKOVF5YU04ZFJVUDVSZlV3\",\n \"username\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"refresh_token\": \"mJdXLtmvTUSpoLwMvdBt_w\",\n \"realm\": \"saml1\"\n}" } }, "name": { "name": "Response", "namespace": "security.saml_authenticate" }, "specLocation": "security/saml_authenticate/Response.ts#L22-L45" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response.", "name": "realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user.", "name": "ids", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ids", "namespace": "_types" } } }, { "description": "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.", "name": "query_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "content", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Logout of SAML completely.\n\nVerifies the logout response sent from the SAML IdP.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThe SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout.\nThis API verifies the response by ensuring the content is relevant and validating its signature.\nAn empty response is returned if the verification process is successful.\nThe response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding.\nThe caller of this API must prepare the request accordingly so that this API can handle either of them.", "examples": { "SamlCompleteLogoutRequestExample1": { "description": "Run `POST /_security/saml/complete_logout` to verify the logout response sent by the SAML IdP using the HTTP-Redirect binding.\n", "summary": "HTTP-Redirect binding", "value": "{\n \"realm\": \"saml1\",\n \"ids\": [ \"_1c368075e0b3...\" ],\n \"query_string\": \"SAMLResponse=fZHLasMwEEVbfb1bf...&SigAlg=http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=CuCmFn%2BLqnaZGZJqK...\"\n}" }, "SamlCompleteLogoutRequestExample2": { "description": "Run `POST /_security/saml/complete_logout` to verify the logout response sent by the SAML IdP using the HTTP-Post binding.\n", "summary": "HTTP-Post binding", "value": "{\n \"realm\": \"saml1\",\n \"ids\": [ \"_1c368075e0b3...\" ],\n \"content\": \"PHNhbWxwOkxvZ291dFJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46...\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.saml_complete_logout" }, "path": [], "query": [], "specLocation": "security/saml_complete_logout/Request.ts#L23-L61" }, { "kind": "response", "body": { "kind": "no_body" }, "name": { "name": "Response", "namespace": "security.saml_complete_logout" }, "specLocation": "security/saml_complete_logout/Response.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "acs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "query_string", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the `acs` parameter.", "name": "realm", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Invalidate SAML.\n\nSubmit a SAML LogoutRequest message to Elasticsearch for consumption.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThe logout request comes from the SAML IdP during an IdP initiated Single Logout.\nThe custom web application can use this API to have Elasticsearch process the `LogoutRequest`.\nAfter successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message.\nThus the user can be redirected back to their IdP.", "examples": { "SamlInvalidateRequestExample1": { "description": "Run `POST /_security/saml/invalidate` to invalidate all the tokens for realm `saml1` pertaining to the user that is identified in the SAML Logout Request.\n", "value": "{\n \"query_string\" : \"SAMLRequest=nZFda4MwFIb%2FiuS%2BmviRpqFaClKQdbvo2g12M2KMraCJ9cRR9utnW4Wyi13sMie873MeznJ1aWrnS3VQGR0j4mLkKC1NUeljjA77zYyhVbIE0dR%2By7fmaHq7U%2BdegXWGpAZ%2B%2F4pR32luBFTAtWgUcCv56%2Fp5y30X87Yz1khTIycdgpUW9kY7WdsC9zxoXTvMvWuVV98YyMnSGH2SYE5pwALBIr9QKiwDGpW0oGVUznGeMyJZKFkQ4jBf5HnhUymjIhzCAL3KNFihbYx8TBYzzGaY7EnIyZwHzCWMfiDnbRIftkSjJr%2BFu0e9v%2B0EgOquRiiZjKpiVFp6j50T4WXoyNJ%2FEWC9fdqc1t%2F1%2B2F3aUpjzhPiXpqMz1%2FHSn4A&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha256&Signature=MsAYz2NFdovMG2mXf6TSpu5vlQQyEJAg%2B4KCwBqJTmrb3yGXKUtIgvjqf88eCAK32v3eN8vupjPC8LglYmke1ZnjK0%2FKxzkvSjTVA7mMQe2AQdKbkyC038zzRq%2FYHcjFDE%2Bz0qISwSHZY2NyLePmwU7SexEXnIz37jKC6NMEhus%3D\",\n \"realm\" : \"saml1\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.saml_invalidate" }, "path": [], "query": [], "specLocation": "security/saml_invalidate/Request.ts#L22-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of tokens that were invalidated as part of this logout.", "name": "invalidated", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The realm name of the SAML realm in Elasticsearch that authenticated the user.", "name": "realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A SAML logout response as a parameter so that the user can be redirected back to the SAML IdP.", "name": "redirect", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "SamlInvalidateResponseExample1": { "description": "A successful response from `POST /_security/saml/invalidate`.", "value": "{\n \"redirect\" : \"https://my-idp.org/logout/SAMLResponse=....\",\n \"invalidated\" : 2,\n \"realm\" : \"saml1\"\n}" } }, "name": { "name": "Response", "namespace": "security.saml_invalidate" }, "specLocation": "security/saml_invalidate/Response.ts#L22-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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`.", "name": "token", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "refresh_token", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Logout of SAML.\n\nSubmits a request to invalidate an access token and refresh token.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThis API invalidates the tokens that were generated for a user by the SAML authenticate API.\nIf the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout).", "examples": { "SamlLogoutRequestExample1": { "description": "Run `POST /_security/saml/logout` to invalidate the pair of tokens that were generated by calling the SAML authenticate API with a successful SAML response.\n", "value": "{\n \"token\" : \"46ToAxZVaXVVZTVKOVF5YU04ZFJVUDVSZlV3\",\n \"refresh_token\" : \"mJdXLtmvTUSpoLwMvdBt_w\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.saml_logout" }, "path": [], "query": [], "specLocation": "security/saml_logout/Request.ts#L22-L57" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A URL that contains a SAML logout request as a parameter.\nYou can use this URL to be redirected back to the SAML IdP and to initiate Single Logout.", "name": "redirect", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "SamlLogoutResponseExample1": { "description": "A successful response from `POST /_security/saml/logout`.", "value": "{\n \"redirect\" : \"https://my-idp.org/logout/SAMLRequest=....\"\n}" } }, "name": { "name": "Response", "namespace": "security.saml_logout" }, "specLocation": "security/saml_logout/Response.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "acs", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "realm", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "relay_state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Prepare SAML authentication.\n\nCreate a SAML authentication request (``) as a URL string based on the configuration of the respective SAML realm in Elasticsearch.\n\nNOTE: This API is intended for use by custom web applications other than Kibana.\nIf you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack.\n\nThis API returns a URL pointing to the SAML Identity Provider.\nYou can use the URL to redirect the browser of the user in order to continue the authentication process.\nThe URL includes a single parameter named `SAMLRequest`, which contains a SAML Authentication request that is deflated and Base64 encoded.\nIf the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named `SigAlg` and `Signature`.\nThese parameters contain the algorithm used for the signature and the signature value itself.\nIt also returns a random string that uniquely identifies this SAML Authentication request.\nThe caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process.", "examples": { "SamlPrepareAuthenticationRequestExample1": { "description": "Run `POST /_security/saml/prepare` to generate a SAML authentication request for the SAML realm named `saml1`.\n", "summary": "Prepare with a realm", "value": "{\n \"realm\" : \"saml1\"\n}" }, "SamlPrepareAuthenticationRequestExample2": { "description": "Run `POST /_security/saml/prepare` to generate a SAML authentication request for the SAML realm with an Assertion Consuming Service (ACS) URL.\n", "summary": "Prepare with an ACS", "value": "{\n \"acs\" : \"https://kibana.org/api/security/saml/callback\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.saml_prepare_authentication" }, "path": [], "query": [], "specLocation": "security/saml_prepare_authentication/Request.ts#L22-L67" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "A unique identifier for the SAML Request to be stored by the caller of the API.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The name of the Elasticsearch realm that was used to construct the authentication request.", "name": "realm", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The URL to redirect the user to.", "name": "redirect", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "SAmlPrepareAuthenticationResponseExample1": { "description": "A successful response from `POST /_security/saml/prepare`.", "value": "{\n \"redirect\": \"https://my-idp.org/login?SAMLRequest=fVJdc6IwFP0rmbwDgUKLGbFDtc462%2B06FX3Yl50rBJsKCZsbrPbXL6J22hdfk%2FNx7zl3eL%2BvK7ITBqVWCfVdRolQuS6k2iR0mU2dmN6Phgh1FTQ8be2rehH%2FWoGWdESF%2FPST0NYorgElcgW1QG5zvkh%2FPfHAZbwx2upcV5SkiMLYzmqsFba1MAthdjIXy5enhL5a23DPOyo6W7kGBa7cwhZ2gO7G8OiW%2BR400kORt0bag7fzezAlk24eqcD2OxxlsNN5O3MdsW9c6CZnbq7rntF4d3s0D7BaHTZhIWN52P%2BcjiuGRbDU6cdj%2BEjJbJLQv4N4ADdhxBiEZbQuWclY4Q8iABbCXczCdSiKMAC%2FgyO2YqbQgrIJDZg%2FcFjsMD%2Fzb3gUcBa5sR%2F9oWR%2BzuJBqlPG14Jbn0DIf2TZ3Jn%2FXmSUrC5ddQB6bob37uZrJdeF4dIDHV3iuhb70Ptq83kOz53ubDLXlcwPJK0q%2FT42AqxIaAkVCkqm2tRgr49yfJGFU%2FZQ3hy3QyuUpd7obPv97kb%2FAQ%3D%3D\"}\",\n \"realm\": \"saml1\",\n \"id\": \"_989a34500a4f5bf0f00d195aa04a7804b4ed42a1\"\n}" } }, "name": { "name": "Response", "namespace": "security.saml_prepare_authentication" }, "specLocation": "security/saml_prepare_authentication/Response.ts#L22-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Create SAML service provider metadata.\n\nGenerate SAML metadata for a SAML 2.0 Service Provider.\n\nThe SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file.\nThis API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.saml_service_provider_metadata" }, "path": [ { "description": "The name of the SAML realm in Elasticsearch.", "name": "realm_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "security/saml_service_provider_metadata/Request.ts#L23-L46" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "An XML string that contains a SAML Service Provider's metadata for the realm.", "name": "metadata", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "SamlServiceProviderMetadataResponseExample1": { "description": "A successful response from `POST /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0/_data`, which indicates that the request is acknowledged.\n", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "security.saml_service_provider_metadata" }, "specLocation": "security/saml_service_provider_metadata/Response.ts#L20-L27" }, { "kind": "interface", "name": { "name": "Hint", "namespace": "security.suggest_user_profiles" }, "properties": [ { "description": "A list of profile UIDs to match against.", "name": "uids", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } }, { "description": "A single key-value pair to match against the labels section\nof a profile. A profile is considered matching if it matches\nat least one of the strings.", "name": "labels", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } } ], "specLocation": "security/suggest_user_profiles/types.ts#L23-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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`.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of profiles to return.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "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.", "name": "data", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "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.", "name": "hint", "required": false, "type": { "kind": "instance_of", "type": { "name": "Hint", "namespace": "security.suggest_user_profiles" } } } ] }, "description": "Suggest a user profile.\n\nGet suggestions for user profiles that match specified search criteria.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.", "examples": { "SuggestUserProfilesRequestExample1": { "description": "Run `POST /_security/profile/_suggest` to get suggestions for profile documents with name-related fields matching `jack`. It specifies both `uids` and `labels` hints for better relevance. The `labels` hint ranks profiles higher if their `direction` label matches either `north` or `east`.\n", "value": "{\n \"name\": \"jack\", \n \"hint\": {\n \"uids\": [ \n \"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0\",\n \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n ],\n \"labels\": {\n \"direction\": [\"north\", \"east\"] \n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.suggest_user_profiles" }, "path": [], "query": [ { "description": "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.", "name": "data", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } } ], "specLocation": "security/suggest_user_profiles/Request.ts#L24-L81" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Metadata about the number of matching profiles.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "TotalUserProfiles", "namespace": "security.suggest_user_profiles" } } }, { "description": "The number of milliseconds it took Elasticsearch to run the request.", "name": "took", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A list of profile documents, ordered by relevance, that match the search criteria.", "name": "profiles", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "UserProfile", "namespace": "security._types" } } } } ] }, "examples": { "SuggestUserProfilesResponseExample1": { "description": "A successful response from `GET /_security/saml/metadata/saml1`. It contains the SAML metadata that was generated for the SAML realm as an XML string.\n", "value": "{\n \"metadata\" : \"\"\n}" } }, "name": { "name": "Response", "namespace": "security.suggest_user_profiles" }, "specLocation": "security/suggest_user_profiles/Response.ts#L29-L44" }, { "kind": "interface", "name": { "name": "TotalUserProfiles", "namespace": "security.suggest_user_profiles" }, "properties": [ { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "relation", "required": true, "type": { "kind": "instance_of", "type": { "name": "RelationName", "namespace": "_types" } } } ], "specLocation": "security/suggest_user_profiles/Response.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "role_descriptors", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleDescriptor", "namespace": "security._types" } } } }, { "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The expiration time for the API key.\nBy default, API keys never expire.\nThis property can be omitted to leave the expiration unchanged.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Update an API key.\n\nUpdate attributes of an existing API key.\nThis API supports updates to an API key's access scope, expiration, and metadata.\n\nTo use this API, you must have at least the `manage_own_api_key` cluster privilege.\nUsers can only update API keys that they created or that were granted to them.\nTo update another user’s API key, use the `run_as` feature to submit a request on behalf of another user.\n\nIMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required.\n\nUse this API to update API keys created by the create API key or grant API Key APIs.\nIf you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead.\nIt's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API.\n\nThe access scope of an API key is derived from the `role_descriptors` you specify in the request and a snapshot of the owner user's permissions at the time of the request.\nThe snapshot of the owner's permissions is updated automatically on every call.\n\nIMPORTANT: If you don't specify `role_descriptors` in the request, a call to this API might still change the API key's access scope.\nThis change can occur if the owner user's permissions have changed since the API key was created or last modified.", "examples": { "UpdateApiKeyRequestExample1": { "description": "Run `PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx` to assign new role descriptors and metadata to an API key.\n", "summary": "Update role and metadata", "value": "{\n \"role_descriptors\": {\n \"role-a\": {\n \"indices\": [\n {\n \"names\": [\"*\"],\n \"privileges\": [\"write\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"environment\": {\n \"level\": 2,\n \"trusted\": true,\n \"tags\": [\"production\"]\n }\n }\n}" }, "UpdateApiKeyRequestExample2": { "description": "Run `PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx` to remove the API key's previously assigned permissions. It will inherit the owner user's full permissions.\n", "summary": "Remove permissions", "value": "{\n \"role_descriptors\": {}\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.update_api_key" }, "path": [ { "description": "The ID of the API key to update.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "security/update_api_key/Request.ts#L26-L91" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If `true`, the API key was updated.\nIf `false`, the API key didn't change because no change was detected.", "name": "updated", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "UpdateApiKeyResponseExample1": { "description": "A successful response from `PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx`. The API key's effective permissions after the update will be the intersection of the supplied role descriptors and the owner user's permissions.\n", "summary": "Update role and metadata", "value": "{\n \"updated\": true\n}" } }, "name": { "name": "Response", "namespace": "security.update_api_key" }, "specLocation": "security/update_api_key/Response.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "access", "required": true, "type": { "kind": "instance_of", "type": { "name": "Access", "namespace": "security._types" } } }, { "description": "The expiration time for the API key.\nBy default, API keys never expire. This property can be omitted to leave the value unchanged.", "name": "expiration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ] }, "description": "Update a cross-cluster API key.\n\nUpdate the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access.\n\nTo use this API, you must have at least the `manage_security` cluster privilege.\nUsers can only update API keys that they created.\nTo update another user's API key, use the `run_as` feature to submit a request on behalf of another user.\n\nIMPORTANT: It's not possible to use an API key as the authentication credential for this API.\nTo update an API key, the owner user's credentials are required.\n\nIt's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API.\n\nThis API supports updates to an API key's access scope, metadata, and expiration.\nThe owner user's information, such as the `username` and `realm`, is also updated automatically on every call.\n\nNOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API.", "examples": { "UpdateCrossClusterApiKeyRequestExample1": { "description": "Run `PUT /_security/cross_cluster/api_key/VuaCfGcBCdbkQm-e5aOx` to update a cross-cluster API key, assigning it new access scope and metadata.\n", "value": "{\n \"access\": {\n \"replication\": [\n {\n \"names\": [\"archive\"]\n }\n ]\n },\n \"metadata\": {\n \"application\": \"replication\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.update_cross_cluster_api_key" }, "path": [ { "description": "The ID of the cross-cluster API key to update.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "If `true`, the API key was updated.\nIf `false`, the API key didn’t change because no change was detected.", "name": "updated", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "examples": { "UpdateCrossClusterApiKeyResponseExample1": { "description": "A successful response from `PUT /_security/cross_cluster/api_key/VuaCfGcBCdbkQm-e5aOx` that indicates that the API key was updated.\n", "value": "{\n \"updated\": true\n}" } }, "name": { "name": "Response", "namespace": "security.update_cross_cluster_api_key" }, "specLocation": "security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Settings for the index used for most security configuration, including native realm users and roles configured with the API.", "name": "security", "required": false, "type": { "kind": "instance_of", "type": { "name": "SecuritySettings", "namespace": "security._types" } } }, { "description": "Settings for the index used to store profile information.", "name": "security-profile", "required": false, "type": { "kind": "instance_of", "type": { "name": "SecuritySettings", "namespace": "security._types" } } }, { "description": "Settings for the index used to store tokens.", "name": "security-tokens", "required": false, "type": { "kind": "instance_of", "type": { "name": "SecuritySettings", "namespace": "security._types" } } } ] }, "description": "Update security index settings.\n\nUpdate the user-configurable settings for the security internal index (`.security` and associated indices). Only a subset of settings are allowed to be modified. This includes `index.auto_expand_replicas` and `index.number_of_replicas`.\n\nNOTE: If `index.auto_expand_replicas` is set, `index.number_of_replicas` will be ignored during updates.\n\nIf a specific index is not in use on the system and settings are provided for it, the request will be rejected.\nThis API does not yet support configuring the settings for indices before they are in use.", "examples": { "SecurityUpdateSettingsRequestExample1": { "description": "Run `PUT /_security/settings` to modify the security settings.", "value": "{\n \"security\": {\n \"index.auto_expand_replicas\": \"0-all\"\n },\n \"security-tokens\": {\n \"index.auto_expand_replicas\": \"0-all\"\n },\n \"security-profile\": {\n \"index.auto_expand_replicas\": \"0-all\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.update_settings" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L71" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "security.update_settings" }, "specLocation": "security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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 (`.`).", "name": "labels", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "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.", "name": "data", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ] }, "description": "Update user profile data.\n\nUpdate specific data for the user profile that is associated with a unique ID.\n\nNOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions.\nIndividual users and external applications should not call this API directly.\nElastic reserves the right to change or remove this feature in future releases without prior notice.\n\nTo use this API, you must have one of the following privileges:\n\n* The `manage_user_profile` cluster privilege.\n* The `update_profile_data` global privilege for the namespaces that are referenced in the request.\n\nThis API updates the `labels` and `data` fields of an existing user profile document with JSON objects.\nNew keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request.\n\nFor both labels and data, content is namespaced by the top-level fields.\nThe `update_profile_data` global privilege grants privileges for updating only the allowed namespaces.", "examples": { "UpdateUserProfileDataRequestExample1": { "description": "Run `POST /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0/_data` to update a profile document for the `u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0` user profile.\n", "value": "{\n \"labels\": {\n \"direction\": \"east\"\n },\n \"data\": {\n \"app1\": {\n \"theme\": \"default\"\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "security.update_user_profile_data" }, "path": [ { "description": "A unique identifier for the user profile.", "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "UserProfileId", "namespace": "security._types" } } } ], "query": [ { "description": "Only perform the operation if the document has this sequence number.", "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "Only perform the operation if the document has this primary term.", "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "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.", "name": "refresh", "required": false, "serverDefault": "false", "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } } ], "specLocation": "security/update_user_profile_data/Request.ts#L27-L98" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "UpdateUserProfileDataResponseExample1": { "description": "A successful response from `POST /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0/_data`, which indicates that the request is acknowledged.\n", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "security.update_user_profile_data" }, "specLocation": "security/update_user_profile_data/Response.ts#L22-L25" }, { "kind": "enum", "members": [ { "name": "restart" }, { "name": "remove" }, { "name": "replace" } ], "name": { "name": "Type", "namespace": "shutdown._types" }, "specLocation": "shutdown/_types/types.ts#L20-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Cancel node shutdown preparations.\nRemove a node from the shutdown list so it can resume normal operations.\nYou must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster.\nShutdown requests are never removed automatically by Elasticsearch.\n\nNOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.\nDirect use is not supported.\n\nIf the operator privileges feature is enabled, you must be an operator to use this API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "shutdown.delete_node" }, "path": [ { "description": "The node id of node to be removed from the shutdown state", "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "shutdown/delete_node/ShutdownDeleteNodeRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ShutdownDeleteNodeResponseExample1": { "description": "A successful response from `DELETE /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "shutdown.delete_node" }, "specLocation": "shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "NodeShutdownStatus", "namespace": "shutdown.get_node" }, "properties": [ { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShutdownType", "namespace": "shutdown.get_node" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "shutdown_startedmillis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShutdownStatus", "namespace": "shutdown.get_node" } } }, { "name": "shard_migration", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardMigrationStatus", "namespace": "shutdown.get_node" } } }, { "name": "persistent_tasks", "required": true, "type": { "kind": "instance_of", "type": { "name": "PersistentTaskStatus", "namespace": "shutdown.get_node" } } }, { "name": "plugins", "required": true, "type": { "kind": "instance_of", "type": { "name": "PluginsStatus", "namespace": "shutdown.get_node" } } } ], "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38" }, { "kind": "interface", "name": { "name": "PersistentTaskStatus", "namespace": "shutdown.get_node" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShutdownStatus", "namespace": "shutdown.get_node" } } } ], "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58" }, { "kind": "interface", "name": { "name": "PluginsStatus", "namespace": "shutdown.get_node" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShutdownStatus", "namespace": "shutdown.get_node" } } } ], "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the shutdown status.\n\nGet information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled.\nThe API returns status information for each part of the shut down process.\n\nNOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.\n\nIf the operator privileges feature is enabled, you must be an operator to use this API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "shutdown.get_node" }, "path": [ { "description": "Which node for which to retrieve the shutdown status", "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "nodes", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "NodeShutdownStatus", "namespace": "shutdown.get_node" } } } } ] }, "examples": { "ShutdownGetNodeResponseExample1": { "description": "Get the status of shutdown preparations with `GET /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`. The response shows information about the shutdown preparations, including the status of shard migration, task migration, and plugin cleanup\n", "value": "{\n \"nodes\": [\n {\n \"node_id\": \"USpTGYaBSIKbgSUJR2Z9lg\",\n \"type\": \"RESTART\",\n \"reason\": \"Demonstrating how the node shutdown API works\",\n \"shutdown_startedmillis\": 1624406108685,\n \"allocation_delay\": \"10m\",\n \"status\": \"COMPLETE\",\n \"shard_migration\": {\n \"status\": \"COMPLETE\",\n \"shard_migrations_remaining\": 0,\n \"explanation\": \"no shard relocation is necessary for a node restart\"\n },\n \"persistent_tasks\": {\n \"status\": \"COMPLETE\"\n },\n \"plugins\": {\n \"status\": \"COMPLETE\"\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "shutdown.get_node" }, "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27" }, { "kind": "interface", "name": { "name": "ShardMigrationStatus", "namespace": "shutdown.get_node" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShutdownStatus", "namespace": "shutdown.get_node" } } } ], "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54" }, { "kind": "enum", "members": [ { "name": "not_started" }, { "name": "in_progress" }, { "name": "stalled" }, { "name": "complete" } ], "name": { "name": "ShutdownStatus", "namespace": "shutdown.get_node" }, "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50" }, { "kind": "enum", "members": [ { "name": "remove" }, { "name": "restart" } ], "name": { "name": "ShutdownType", "namespace": "shutdown.get_node" }, "specLocation": "shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Valid values are restart, remove, or replace.\nUse restart when you need to temporarily shut down a node to perform an upgrade, make configuration changes, or perform other maintenance.\nBecause the node is expected to rejoin the cluster, data is not migrated off of the node.\nUse remove when you need to permanently remove a node from the cluster.\nThe node is not marked ready for shutdown until data is migrated off of the node Use replace to do a 1:1 replacement of a node with another node.\nCertain allocation decisions will be ignored (such as disk watermarks) in the interest of true replacement of the source node with the target node.\nDuring a replace-type shutdown, rollover and index creation may result in unassigned shards, and shrink may fail until the replacement is complete.", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "Type", "namespace": "shutdown._types" } } }, { "description": "A human-readable reason that the node is being shut down.\nThis field provides information for other cluster operators; it does not affect the shut down process.", "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Only valid if type is restart.\nControls how long Elasticsearch will wait for the node to restart and join the cluster before reassigning its shards to other nodes.\nThis works the same as delaying allocation with the index.unassigned.node_left.delayed_timeout setting.\nIf you specify both a restart allocation delay and an index-level allocation delay, the longer of the two is used.", "name": "allocation_delay", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Only valid if type is replace.\nSpecifies the name of the node that is replacing the node being shut down.\nShards from the shut down node are only allowed to be allocated to the target node, and no other data will be allocated to the target node.\nDuring relocation of data certain allocation rules are ignored, such as disk watermarks or user attribute filtering rules.", "name": "target_node_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Prepare a node to be shut down.\n\nNOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.\n\nIf you specify a node that is offline, it will be prepared for shut down when it rejoins the cluster.\n\nIf the operator privileges feature is enabled, you must be an operator to use this API.\n\nThe API migrates ongoing tasks and index shards to other nodes as needed to prepare a node to be restarted or shut down and removed from the cluster.\nThis ensures that Elasticsearch can be stopped safely with minimal disruption to the cluster.\n\nYou must specify the type of shutdown: `restart`, `remove`, or `replace`.\nIf a node is already being prepared for shutdown, you can use this API to change the shutdown type.\n\nIMPORTANT: This API does NOT terminate the Elasticsearch process.\nMonitor the node shutdown status to determine when it is safe to stop Elasticsearch.", "examples": { "ShutdownPutNodeRequestExample1": { "description": "Register a node for shutdown with `PUT /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown`. The `restart` type prepares the node to be restarted.\n", "value": "{\n \"type\": \"restart\",\n \"reason\": \"Demonstrating how the node shutdown API works\",\n \"allocation_delay\": \"20m\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "shutdown.put_node" }, "path": [ { "description": "The node identifier.\nThis parameter is not validated against the cluster's active nodes.\nThis enables you to register a node for shut down while it is offline.\nNo error is thrown if you specify an invalid node ID.", "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "TimeUnit", "namespace": "_types" } } } ], "specLocation": "shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "shutdown.put_node" }, "specLocation": "shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L25" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperties" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } ], "meta": { "description": "Additional metadata", "fieldname": "metadata" }, "type": { "name": "AdditionalProperties", "namespace": "_spec_utils" } } ], "description": "The results of ingest simulation on a single document. The _source of the document contains\nthe results after running all pipelines listed in executed_pipelines on the document. The\nlist of executed pipelines is derived from the pipelines that would be executed if this\ndocument had been ingested into _index.", "name": { "name": "IngestDocumentSimulation", "namespace": "simulate.ingest" }, "properties": [ { "description": "Identifier for the document.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Name of the index that the document would be indexed into if this were not a simulation.", "name": "_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "JSON body for the document.", "name": "_source", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "", "name": "_version", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } ], "type": { "name": "Stringified", "namespace": "_spec_utils" } } }, { "description": "A list of the names of the pipelines executed on this document.", "name": "executed_pipelines", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A list of the fields that would be ignored at the indexing step. For example, a field whose\nvalue is larger than the allowed limit would make it through all of the pipelines, but\nwould not be indexed into Elasticsearch.", "name": "ignored_fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } }, { "description": "Any error resulting from simulatng ingest on this doc. This can be an error generated by\nexecuting a processor, or a mapping validation error when simulating indexing the resulting\ndoc.", "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "simulate/ingest/SimulateIngestResponse.ts#L35-L78" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Sample documents to test in the pipeline.", "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Document", "namespace": "ingest._types" } } } }, { "description": "A map of component template names to substitute component template definition objects.", "name": "component_template_substitutions", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ComponentTemplateNode", "namespace": "cluster._types" } } } }, { "description": "A map of index template names to substitute index template definition objects.", "name": "index_template_substitutions", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexTemplate", "namespace": "indices._types" } } } }, { "name": "mapping_addition", "required": false, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "description": "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.", "name": "pipeline_substitutions", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Pipeline", "namespace": "ingest._types" } } } } ] }, "description": "Simulate data ingestion.\nRun ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index.\n\nThis API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch.\n\nThe API runs the default and final pipeline for that index against a set of documents provided in the body of the request.\nIf a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would.\nNo data is indexed into Elasticsearch.\nInstead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation.\nThe transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result.\n\nThis API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline.\nThe simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index.\n\nBy default, the pipeline definitions that are currently in the system are used.\nHowever, you can supply substitute pipeline definitions in the body of the request.\nThese will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request.", "examples": { "SimulateIngestRequestExample1": { "description": "In this example the index `my-index` has a default pipeline called `my-pipeline` and a final pipeline called `my-final-pipeline`. Since both documents are being ingested into `my-index`, both pipelines are run using the pipeline definitions that are already in the system.", "summary": "Existing pipeline definitions", "value": "{\n \"docs\": [\n {\n \"_id\": 123,\n \"_index\": \"my-index\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_id\": 456,\n \"_index\": \"my-index\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}" }, "SimulateIngestRequestExample2": { "description": "In this example the index `my-index` has a default pipeline called `my-pipeline` and a final pipeline called `my-final-pipeline`. But a substitute definition of `my-pipeline` is provided in `pipeline_substitutions`. The substitute `my-pipeline` will be used in place of the `my-pipeline` that is in the system, and then the `my-final-pipeline` that is already defined in the system will run.", "summary": "Pipeline substitions", "value": "{\n \"docs\": [\n {\n \"_index\": \"my-index\",\n \"_id\": 123,\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"my-index\",\n \"_id\": 456,\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ],\n \"pipeline_substitutions\": {\n \"my-pipeline\": {\n \"processors\": [\n {\n \"uppercase\": {\n \"field\": \"foo\"\n }\n }\n ]\n }\n }\n}" }, "SimulateIngestRequestExample3": { "description": "In this example, imagine that the index `my-index` has a strict mapping with only the `foo` keyword field defined. Say that field mapping came from a component template named `my-mappings-template`. You want to test adding a new field, `bar`. So a substitute definition of `my-mappings-template` is provided in `component_template_substitutions`. The substitute `my-mappings-template` will be used in place of the existing mapping for `my-index` and in place of the `my-mappings-template` that is in the system.\n", "summary": "Component template substitutions", "value": "{\n \"docs\": [\n {\n \"_index\": \"my-index\",\n \"_id\": \"123\",\n \"_source\": {\n \"foo\": \"foo\"\n }\n },\n {\n \"_index\": \"my-index\",\n \"_id\": \"456\",\n \"_source\": {\n \"bar\": \"rab\"\n }\n }\n ],\n \"component_template_substitutions\": {\n \"my-mappings_template\": {\n \"template\": {\n \"mappings\": {\n \"dynamic\": \"strict\",\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\"\n },\n \"bar\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n }\n }\n}" }, "SimulateIngestRequestExample4": { "description": "The pipeline, component template, and index template substitutions replace the existing pipeline details for the duration of this request.", "summary": "Multiple substitutions", "value": "{\n \"docs\": [\n {\n \"_id\": \"id\",\n \"_index\": \"my-index\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_id\": \"id\",\n \"_index\": \"my-index\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ],\n \"pipeline_substitutions\": {\n \"my-pipeline\": {\n \"processors\": [\n {\n \"set\": {\n \"field\": \"field3\",\n \"value\": \"value3\"\n }\n }\n ]\n }\n },\n \"component_template_substitutions\": {\n \"my-component-template\": {\n \"template\": {\n \"mappings\": {\n \"dynamic\": true,\n \"properties\": {\n \"field3\": {\n \"type\": \"keyword\"\n }\n }\n },\n \"settings\": {\n \"index\": {\n \"default_pipeline\": \"my-pipeline\"\n }\n }\n }\n }\n },\n \"index_template_substitutions\": {\n \"my-index-template\": {\n \"index_patterns\": [\n \"my-index-*\"\n ],\n \"composed_of\": [\n \"component_template_1\",\n \"component_template_2\"\n ]\n }\n },\n \"mapping_addition\": {\n \"dynamic\": \"strict\",\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "simulate.ingest" }, "path": [ { "description": "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.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } ], "query": [ { "description": "The pipeline to use as the default pipeline.\nThis value can be used to override the default pipeline of the index.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "PipelineName", "namespace": "_types" } } } ], "specLocation": "simulate/ingest/SimulateIngestRequest.ts#L29-L100" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "docs", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SimulateIngestDocumentResult", "namespace": "simulate.ingest" } } } } ] }, "examples": { "SimulateIngestResponseExample1": { "description": "A successful response when the simulation uses pipeline definitions that are already in the system.", "summary": "Use an existing pipeline definition", "value": "{\n \"docs\": [\n {\n \"doc\": null,\n \"_id\": 123,\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field1\": \"value1\",\n \"field2\": \"value2\",\n \"foo\": \"bar\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n },\n {\n \"doc\": null,\n \"_id\": 456,\n \"_index\": \"my-index\",\n \"_version\": \"-3,\",\n \"_source\": {\n \"field1\": \"value1\",\n \"field2\": \"value2\",\n \"foo\": \"rab\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n }\n ]\n}" }, "SimulateIngestResponseExample2": { "description": "A successful response when the simulation uses pipeline substitutions.", "summary": "Use pipeline substitutions", "value": "{\n \"docs\": [\n {\n \"doc\": null,\n \"_id\": 123,\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field2\": \"value2\",\n \"foo\": \"BAR\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n },\n {\n \"doc\": null,\n \"_id\": 456,\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field2\": \"value2\",\n \"foo\": \"RAB\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n }\n ]\n}" }, "SimulateIngestResponseExample3": { "description": "A successful response when the simulation uses pipeline substitutions.", "summary": "Use pipeline substitutions", "value": "{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"123\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"foo\": \"foo\"\n },\n \"executed_pipelines\": []\n }\n },\n {\n \"doc\": {\n \"_id\": \"456\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"bar\": \"rab\"\n },\n \"executed_pipelines\": []\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "simulate.ingest" }, "specLocation": "simulate/ingest/SimulateIngestResponse.ts#L27-L29" }, { "kind": "interface", "name": { "name": "SimulateIngestDocumentResult", "namespace": "simulate.ingest" }, "properties": [ { "name": "doc", "required": false, "type": { "kind": "instance_of", "type": { "name": "IngestDocumentSimulation", "namespace": "simulate.ingest" } } } ], "specLocation": "simulate/ingest/SimulateIngestResponse.ts#L31-L33" }, { "kind": "interface", "name": { "name": "Configuration", "namespace": "slm._types" }, "properties": [ { "description": "If false, the snapshot fails if any data stream or index in indices is missing or closed. If true, the snapshot ignores missing or closed data streams and indices.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported.\nBy default, a snapshot includes all data streams and indices in the cluster. If this argument is provided, the snapshot only includes the specified data streams and clusters.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "If true, the current global state is included in the snapshot.", "name": "include_global_state", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A list of feature states to be included in this snapshot. A list of features available for inclusion in the snapshot and their descriptions be can be retrieved using the get features API.\nEach feature state includes one or more system indices containing data necessary for the function of that feature. Providing an empty array will include no feature states in the snapshot, regardless of the value of include_global_state. By default, all available feature states will be included in the snapshot if include_global_state is true, or no feature states if include_global_state is false.", "name": "feature_states", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Attaches arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. Metadata must be less than 1024 bytes.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "If false, the entire snapshot will fail if one or more indices included in the snapshot do not have all primary shards available.", "name": "partial", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L109-L139" }, { "kind": "interface", "name": { "name": "InProgress", "namespace": "slm._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "start_time_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L141-L146" }, { "kind": "interface", "name": { "name": "Invocation", "namespace": "slm._types" }, "properties": [ { "name": "snapshot_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L148-L151" }, { "kind": "interface", "name": { "name": "Policy", "namespace": "slm._types" }, "properties": [ { "name": "config", "required": false, "type": { "kind": "instance_of", "type": { "name": "Configuration", "namespace": "slm._types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "retention", "required": false, "type": { "kind": "instance_of", "type": { "name": "Retention", "namespace": "slm._types" } } }, { "name": "schedule", "required": true, "type": { "kind": "instance_of", "type": { "name": "CronExpression", "namespace": "watcher._types" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L86-L92" }, { "kind": "interface", "name": { "name": "Retention", "namespace": "slm._types" }, "properties": [ { "description": "Time period after which a snapshot is considered expired and eligible for deletion. SLM deletes expired snapshots based on the slm.retention_schedule.", "name": "expire_after", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Maximum number of snapshots to retain, even if the snapshots have not yet expired. If the number of snapshots in the repository exceeds this limit, the policy retains the most recent snapshots and deletes older snapshots.", "name": "max_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Minimum number of snapshots to retain, even if the snapshots have expired.", "name": "min_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L94-L107" }, { "kind": "interface", "name": { "name": "SnapshotLifecycle", "namespace": "slm._types" }, "properties": [ { "name": "in_progress", "required": false, "type": { "kind": "instance_of", "type": { "name": "InProgress", "namespace": "slm._types" } } }, { "name": "last_failure", "required": false, "type": { "kind": "instance_of", "type": { "name": "Invocation", "namespace": "slm._types" } } }, { "name": "last_success", "required": false, "type": { "kind": "instance_of", "type": { "name": "Invocation", "namespace": "slm._types" } } }, { "description": "The last time the policy was modified.", "name": "modified_date", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "modified_date_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The next time the policy will run.", "name": "next_execution", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "next_execution_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "policy", "required": true, "type": { "kind": "instance_of", "type": { "name": "Policy", "namespace": "slm._types" } } }, { "description": "The version of the snapshot policy.\nOnly the latest version is stored and incremented when the policy is updated.", "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "Statistics", "namespace": "slm._types" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L38-L59" }, { "kind": "interface", "name": { "name": "Statistics", "namespace": "slm._types" }, "properties": [ { "name": "retention_deletion_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "retention_deletion_time_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "retention_failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "retention_runs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "retention_timed_out", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "aliases": [ "snapshots_deleted" ], "name": "total_snapshots_deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "aliases": [ "snapshot_deletion_failures" ], "name": "total_snapshot_deletion_failures", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "aliases": [ "snapshots_failed" ], "name": "total_snapshots_failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "aliases": [ "snapshots_taken" ], "name": "total_snapshots_taken", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "slm/_types/SnapshotLifecycle.ts#L61-L84" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a policy.\nDelete a snapshot lifecycle policy definition.\nThis operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.delete_lifecycle" }, "path": [ { "description": "The id of the snapshot lifecycle policy to remove", "name": "policy_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/delete_lifecycle/DeleteSnapshotLifecycleRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "slm.delete_lifecycle" }, "specLocation": "slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Run a policy.\nImmediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time.\nThe snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.execute_lifecycle" }, "path": [ { "description": "The id of the snapshot lifecycle policy to be executed", "name": "policy_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/execute_lifecycle/ExecuteSnapshotLifecycleRequest.ts#L24-L58" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "snapshot_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ] }, "examples": { "ExecuteSnapshotLifecycleResponseExample1": { "description": "Run `POST /_slm/policy/daily-snapshots/_execute` to take an immediate snapshot according to the `daily-snapshots` policy.\n", "value": "{\n \"snapshot_name\": \"daily-snap-2019.04.24-gwrqoo2xtea3q57vvg0uea\"\n}" } }, "name": { "name": "Response", "namespace": "slm.execute_lifecycle" }, "specLocation": "slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Run a retention policy.\nManually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules.\nThe retention policy is normally applied according to its schedule.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.execute_retention" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/execute_retention/ExecuteRetentionRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "slm.execute_retention" }, "specLocation": "slm/execute_retention/ExecuteRetentionResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get policy information.\nGet snapshot lifecycle policy definitions and information about the latest snapshot attempts.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.get_lifecycle" }, "path": [ { "description": "Comma-separated list of snapshot lifecycle policies to retrieve", "name": "policy_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/get_lifecycle/GetSnapshotLifecycleRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "lifecycles", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "SnapshotLifecycle", "namespace": "slm._types" } } } }, "examples": { "GetSnapshotLifecycleResponseExample1": { "description": "A successful response from `GET _slm/policy/daily-snapshots?human`.", "summary": null, "value": "{\n \"daily-snapshots\": {\n \"version\": 1,\n \"modified_date\": \"2099-05-06T01:30:00.000Z\",\n \"modified_date_millis\": 4081757400000,\n \"policy\" : {\n \"schedule\": \"0 30 1 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"],\n \"ignore_unavailable\": false,\n \"include_global_state\": false\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n },\n \"stats\": {\n \"policy\": \"daily-snapshots\",\n \"snapshots_taken\": 0,\n \"snapshots_failed\": 0,\n \"snapshots_deleted\": 0,\n \"snapshot_deletion_failures\": 0\n },\n \"next_execution\": \"2099-05-07T01:30:00.000Z\",\n \"next_execution_millis\": 4081843800000\n }\n}" } }, "name": { "name": "Response", "namespace": "slm.get_lifecycle" }, "specLocation": "slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get snapshot lifecycle management statistics.\nGet global and policy-level statistics about actions taken by snapshot lifecycle management.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.get_stats" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "retention_deletion_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "retention_deletion_time_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "retention_failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "retention_runs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "retention_timed_out", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_snapshots_deleted", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_snapshot_deletion_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_snapshots_failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_snapshots_taken", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "policy_stats", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "examples": { "GetSnapshotLifecycleManagementStatsResponseExample1": { "description": "A successful response from `GET /_slm/stats`.", "value": "{\n \"retention_runs\": 13,\n \"retention_failed\": 0,\n \"retention_timed_out\": 0,\n \"retention_deletion_time\": \"1.4s\",\n \"retention_deletion_time_millis\": 1404,\n \"policy_stats\": [ ],\n \"total_snapshots_taken\": 1,\n \"total_snapshots_failed\": 1,\n \"total_snapshots_deleted\": 0,\n \"total_snapshot_deletion_failures\": 0\n}" } }, "name": { "name": "Response", "namespace": "slm.get_stats" }, "specLocation": "slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the snapshot lifecycle management status.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.get_status" }, "path": [], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/get_status/GetSnapshotLifecycleManagementStatusRequest.ts#L23-L54" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "operation_mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "LifecycleOperationMode", "namespace": "_types" } } } ] }, "examples": { "GetSnapshotLifecycleManagementStatusResponseExample1": { "description": "A successful response from `GET _slm/status`.", "value": "{\n \"operation_mode\": \"RUNNING\"\n}" } }, "name": { "name": "Response", "namespace": "slm.get_status" }, "specLocation": "slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Configuration for each snapshot created by the policy.", "name": "config", "required": false, "type": { "kind": "instance_of", "type": { "name": "Configuration", "namespace": "slm._types" } } }, { "description": "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.", "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "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.", "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Retention rules used to retain and delete snapshots created by the policy.", "name": "retention", "required": false, "type": { "kind": "instance_of", "type": { "name": "Retention", "namespace": "slm._types" } } }, { "description": "Periodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately.", "name": "schedule", "required": false, "type": { "kind": "instance_of", "type": { "name": "CronExpression", "namespace": "watcher._types" } } } ] }, "description": "Create or update a policy.\nCreate or update a snapshot lifecycle policy.\nIf the policy already exists, this request increments the policy version.\nOnly the latest version of a policy is stored.", "examples": { "PutSnapshotLifecycleRequestExample1 copy": { "description": "Run `PUT /_slm/policy/daily-snapshots` to create a lifecycle policy. The `schedule` is when the snapshot should be taken, in this case, 1:30am daily. The `retention` details specify to: keep snapshots for 30 days; always keep at least 5 successful snapshots, even if they're more than 30 days old; keep no more than 50 successful snapshots, even if they're less than 30 days old.\n", "summary": "Create a policy", "value": "{\n \"schedule\": \"0 30 1 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"],\n \"ignore_unavailable\": false,\n \"include_global_state\": false\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n}" }, "PutSnapshotLifecycleRequestExample2": { "description": "Run `PUT /_slm/policy/hourly-snapshots` to create a lifecycle policy that uses interval scheduling. It creates a snapshot once every hour. The first snapshot will be created one hour after the policy is modified, with subsequent snapshots every hour afterward.\n", "summary": "Create a policy with intevals", "value": "{\n \"schedule\": \"1h\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"]\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.put_lifecycle" }, "path": [ { "description": "The identifier for the snapshot lifecycle policy you want to create or update.", "name": "policy_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "slm.put_lifecycle" }, "specLocation": "slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start snapshot lifecycle management.\nSnapshot lifecycle management (SLM) starts automatically when a cluster is formed.\nManually starting SLM is necessary only if it has been stopped using the stop SLM API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.start" }, "path": [], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/start/StartSnapshotLifecycleManagementRequest.ts#L23-L56" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "StartSnapshotLifecycleManagementResponseExample1": { "description": "A successful response from `POST _slm/start`.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "slm.start" }, "specLocation": "slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop snapshot lifecycle management.\nStop all snapshot lifecycle management (SLM) operations and the SLM plugin.\nThis API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices.\nStopping SLM does not stop any snapshots that are in progress.\nYou can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped.\n\nThe API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped.\nUse the get snapshot lifecycle management status API to see if SLM is running.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "slm.stop" }, "path": [], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "slm/stop/StopSnapshotLifecycleManagementRequest.ts#L23-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "slm.stop" }, "specLocation": "slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L25" }, { "kind": "interface", "inherits": { "type": { "name": "RepositoryBase", "namespace": "snapshot._types" } }, "name": { "name": "AzureRepository", "namespace": "snapshot._types" }, "properties": [ { "description": "The Azure repository type.", "extDocId": "repository-azure", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/azure-repository", "name": "type", "required": true, "type": { "kind": "literal_value", "value": "azure" } }, { "description": "The repository settings.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "AzureRepositorySettings", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L40-L50" }, { "kind": "interface", "inherits": { "type": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" } }, "name": { "name": "AzureRepositorySettings", "namespace": "snapshot._types" }, "properties": [ { "description": "The path to the repository data within the container.\nIt defaults to the root directory.\n\nNOTE: Don't set `base_path` when configuring a snapshot repository for Elastic Cloud Enterprise.\nElastic Cloud Enterprise automatically generates the `base_path` for each deployment so that multiple deployments can share the same bucket.", "name": "base_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the Azure repository client to use.", "name": "client", "required": false, "serverDefault": "default", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The Azure container.", "name": "container", "required": false, "serverDefault": "elasticsearch-snapshots", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maxmimum batch size, between 1 and 256, used for `BlobBatch` requests.\nDefaults to 256 which is the maximum number supported by the Azure blob batch API.", "name": "delete_objects_max_size", "required": false, "serverDefault": 256, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Either `primary_only` or `secondary_only`.\nNote that if you set it to `secondary_only`, it will force `readonly` to `true`.", "name": "location_mode", "required": false, "serverDefault": "primary_only", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of concurrent batch delete requests that will be submitted for any individual bulk delete with `BlobBatch`.\nNote that the effective number of concurrent deletes is further limited by the Azure client connection and event loop thread limits.\nDefaults to 10, minimum is 1, maximum is 100.", "name": "max_concurrent_batch_deletes", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, the repository is read-only.\nThe cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.\n\nOnly a cluster with write access can create snapshots in the repository.\nAll other clusters connected to the repository should have the `readonly` parameter set to `true`.\nIf `false`, the cluster can write to the repository and create snapshots in it.\n\nIMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository.\nHaving multiple clusters write to the repository at the same time risks corrupting the contents of the repository.", "name": "readonly", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L145-L196" }, { "kind": "interface", "name": { "name": "FileCountSnapshotStats", "namespace": "snapshot._types" }, "properties": [ { "name": "file_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/FileCountSnapshotStats.ts#L22-L25" }, { "kind": "interface", "inherits": { "type": { "name": "RepositoryBase", "namespace": "snapshot._types" } }, "name": { "name": "GcsRepository", "namespace": "snapshot._types" }, "properties": [ { "description": "The Google Cloud Storage repository type.", "extDocId": "repository-gcs", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/google-cloud-storage-repository", "name": "type", "required": true, "type": { "kind": "literal_value", "value": "gcs" } }, { "description": "The repository settings.", "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "GcsRepositorySettings", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L52-L62" }, { "kind": "interface", "inherits": { "type": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" } }, "name": { "name": "GcsRepositorySettings", "namespace": "snapshot._types" }, "properties": [ { "description": "The name of the bucket to be used for snapshots.", "name": "bucket", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "deprecation": { "description": "", "version": "6.3.0" }, "description": "The name used by the client when it uses the Google Cloud Storage service.", "name": "application_name", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The path to the repository data within the bucket.\nIt defaults to the root of the bucket.\n\nNOTE: Don't set `base_path` when configuring a snapshot repository for Elastic Cloud Enterprise.\nElastic Cloud Enterprise automatically generates the `base_path` for each deployment so that multiple deployments can share the same bucket.", "name": "base_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the client to use to connect to Google Cloud Storage.", "name": "client", "required": false, "serverDefault": "default", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the repository is read-only.\nThe cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.\n\nOnly a cluster with write access can create snapshots in the repository.\nAll other clusters connected to the repository should have the `readonly` parameter set to `true`.\n\nIf `false`, the cluster can write to the repository and create snapshots in it.\n\nIMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository.\nHaving multiple clusters write to the repository at the same time risks corrupting the contents of the repository.", "name": "readonly", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L198-L235" }, { "kind": "interface", "name": { "name": "IndexDetails", "namespace": "snapshot._types" }, "properties": [ { "name": "shard_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "max_segments_per_shard", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotIndexDetails.ts#L23-L28" }, { "kind": "interface", "name": { "name": "InfoFeatureState", "namespace": "snapshot._types" }, "properties": [ { "name": "feature_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25" }, { "kind": "interface", "inherits": { "type": { "name": "RepositoryBase", "namespace": "snapshot._types" } }, "name": { "name": "ReadOnlyUrlRepository", "namespace": "snapshot._types" }, "properties": [ { "description": "The read-only URL repository type.", "extDocId": "repository-read-only", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/read-only-url-repository", "name": "type", "required": true, "type": { "kind": "literal_value", "value": "url" } }, { "description": "The repository settings.", "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "ReadOnlyUrlRepositorySettings", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L92-L102" }, { "kind": "interface", "inherits": { "type": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" } }, "name": { "name": "ReadOnlyUrlRepositorySettings", "namespace": "snapshot._types" }, "properties": [ { "description": "The maximum number of retries for HTTP and HTTPS URLs.", "name": "http_max_retries", "required": false, "serverDefault": 5, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum wait time for data transfers over a connection.", "name": "http_socket_timeout", "required": false, "serverDefault": "50s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum number of snapshots the repository can contain.\nThe default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`.", "name": "max_number_of_snapshots", "required": false, "serverDefault": 2147483647, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The URL location of the root of the shared filesystem repository.\nThe following protocols are supported:\n\n* `file`\n* `ftp`\n* `http`\n* `https`\n* `jar`\n\nURLs using the HTTP, HTTPS, or FTP protocols must be explicitly allowed with the `repositories.url.allowed_urls` cluster setting.\nThis setting supports wildcards in the place of a host, path, query, or fragment in the URL.\n\nURLs using the file protocol must point to the location of a shared filesystem accessible to all master and data nodes in the cluster.\nThis location must be registered in the `path.repo` setting.\nYou don't need to register URLs using the FTP, HTTP, HTTPS, or JAR protocols in the `path.repo` setting.", "name": "url", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L377-L412" }, { "kind": "type_alias", "name": { "name": "Repository", "namespace": "snapshot._types" }, "specLocation": "snapshot/_types/SnapshotRepository.ts#L24-L34", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "AzureRepository", "namespace": "snapshot._types" } }, { "kind": "instance_of", "type": { "name": "GcsRepository", "namespace": "snapshot._types" } }, { "kind": "instance_of", "type": { "name": "S3Repository", "namespace": "snapshot._types" } }, { "kind": "instance_of", "type": { "name": "SharedFileSystemRepository", "namespace": "snapshot._types" } }, { "kind": "instance_of", "type": { "name": "ReadOnlyUrlRepository", "namespace": "snapshot._types" } }, { "kind": "instance_of", "type": { "name": "SourceOnlyRepository", "namespace": "snapshot._types" } } ] }, "variants": { "kind": "internal_tag", "nonExhaustive": true, "tag": "type" } }, { "kind": "interface", "name": { "name": "RepositoryBase", "namespace": "snapshot._types" }, "properties": [ { "name": "uuid", "required": false, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L36-L38" }, { "kind": "interface", "name": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" }, "properties": [ { "description": "Big files can be broken down into multiple smaller blobs in the blob store during snapshotting.\nIt is not recommended to change this value from its default unless there is an explicit reason for limiting the size of blobs in the repository.\nSetting a value lower than the default can result in an increased number of API calls to the blob store during snapshot create and restore operations compared to using the default value and thus make both operations slower and more costly.\nSpecify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B.\nThe default varies by repository type.", "name": "chunk_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "When set to `true`, metadata files are stored in compressed format.\nThis setting doesn't affect index files that are already compressed by default.", "name": "compress", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The maximum snapshot restore rate per node.\nIt defaults to unlimited.\nNote that restores are also throttled through recovery settings.", "name": "max_restore_bytes_per_sec", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The maximum snapshot creation rate per node.\nIt defaults to 40mb per second.\nNote that if the recovery settings for managed services are set, then it defaults to unlimited, and the rate is additionally throttled through recovery settings.", "name": "max_snapshot_bytes_per_sec", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L116-L143" }, { "kind": "interface", "inherits": { "type": { "name": "RepositoryBase", "namespace": "snapshot._types" } }, "name": { "name": "S3Repository", "namespace": "snapshot._types" }, "properties": [ { "description": "The S3 repository type.", "extDocId": "repository-s3", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/s3-repository", "name": "type", "required": true, "type": { "kind": "literal_value", "value": "s3" } }, { "description": "The repository settings.\n\nNOTE: In addition to the specified settings, you can also use all non-secure client settings in the repository settings.\nIn this case, the client settings found in the repository settings will be merged with those of the named client used by the repository.\nConflicts between client and repository settings are resolved by the repository settings taking precedence over client settings.", "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "S3RepositorySettings", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L64-L78" }, { "kind": "interface", "inherits": { "type": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" } }, "name": { "name": "S3RepositorySettings", "namespace": "snapshot._types" }, "properties": [ { "description": "The name of the S3 bucket to use for snapshots.\nThe bucket name must adhere to Amazon's S3 bucket naming rules.", "extDocId": "repository-s3-naming", "extDocUrl": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/BucketRestrictions.html#bucketnamingrules", "name": "bucket", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The path to the repository data within its bucket.\nIt defaults to an empty string, meaning that the repository is at the root of the bucket.\nThe value of this setting should not start or end with a forward slash (`/`).\n\nNOTE: Don't set base_path when configuring a snapshot repository for Elastic Cloud Enterprise.\nElastic Cloud Enterprise automatically generates the `base_path` for each deployment so that multiple deployments may share the same bucket.", "name": "base_path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The minimum threshold below which the chunk is uploaded using a single request.\nBeyond this threshold, the S3 repository will use the AWS Multipart Upload API to split the chunk into several parts, each of `buffer_size` length, and to upload each part in its own request.\nNote that setting a buffer size lower than 5mb is not allowed since it will prevent the use of the Multipart API and may result in upload errors.\nIt is also not possible to set a buffer size greater than 5gb as it is the maximum upload size allowed by S3.\nDefaults to `100mb` or 5% of JVM heap, whichever is smaller.", "name": "buffer_size", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The S3 repository supports all S3 canned ACLs: `private`, `public-read`, `public-read-write`, `authenticated-read`, `log-delivery-write`, `bucket-owner-read`, `bucket-owner-full-control`.\nYou could specify a canned ACL using the `canned_acl` setting.\nWhen the S3 repository creates buckets and objects, it adds the canned ACL into the buckets and objects.", "extDocId": "repository-s3-canned-acl", "extDocUrl": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl", "name": "canned_acl", "required": false, "serverDefault": "private", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The name of the S3 client to use to connect to S3.", "name": "client", "required": false, "serverDefault": "default", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maxmimum batch size, between 1 and 1000, used for `DeleteObjects` requests.\nDefaults to 1000 which is the maximum number supported by the AWS DeleteObjects API.", "extDocId": "repository-s3-delete-objects", "extDocUrl": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html", "name": "delete_objects_max_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The time to wait before trying again if an attempt to read a linearizable register fails.", "name": "get_register_retry_delay", "required": false, "serverDefault": "5s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum number of parts that Elasticsearch will write during a multipart upload of a single object.\nFiles which are larger than `buffer_size × max_multipart_parts` will be chunked into several smaller objects.\nElasticsearch may also split a file across multiple objects to satisfy other constraints such as the `chunk_size` limit.\nDefaults to `10000` which is the maximum number of parts in a multipart upload in AWS S3.", "name": "max_multipart_parts", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of possibly-dangling multipart uploads to clean up in each batch of snapshot deletions.\nDefaults to 1000 which is the maximum number supported by the AWS ListMultipartUploads API.\nIf set to `0`, Elasticsearch will not attempt to clean up dangling multipart uploads.", "extDocId": "repository-s3-list-multipart", "extDocUrl": "https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html", "name": "max_multipart_upload_cleanup_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If true, the repository is read-only.\nThe cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.\n\nOnly a cluster with write access can create snapshots in the repository.\nAll other clusters connected to the repository should have the `readonly` parameter set to `true`.\n\nIf `false`, the cluster can write to the repository and create snapshots in it.\n\nIMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository.\nHaving multiple clusters write to the repository at the same time risks corrupting the contents of the repository.", "name": "readonly", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "When set to `true`, files are encrypted on server side using an AES256 algorithm.", "name": "server_side_encryption", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The S3 storage class for objects written to the repository.\nValues may be `standard`, `reduced_redundancy`, `standard_ia`, `onezone_ia`, and `intelligent_tiering`.", "extDocId": "repository-s3-storage-classes", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/s3-repository#repository-s3-storage-classes", "name": "storage_class", "required": false, "serverDefault": "standard", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The delay before the first retry and the amount the delay is incremented by on each subsequent retry.\nThe default is 50ms and the minimum is 0ms.", "name": "throttled_delete_retry.delay_increment", "required": false, "serverDefault": "50ms", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The upper bound on how long the delays between retries will grow to.\nThe default is 5s and the minimum is 0ms.", "name": "throttled_delete_retry.maximum_delay", "required": false, "serverDefault": "5s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The number times to retry a throttled snapshot deletion.\nThe default is 10 and the minimum value is 0 which will disable retries altogether.\nNote that if retries are enabled in the Azure client, each of these retries comprises that many client-level retries.", "name": "throttled_delete_retry.maximum_number_of_retries", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L237-L346" }, { "kind": "interface", "name": { "name": "ShardsStats", "namespace": "snapshot._types" }, "properties": [ { "description": "The number of shards that initialized, started, and finalized successfully.", "name": "done", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of shards that failed to be included in the snapshot.", "name": "failed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of shards that are finalizing but are not done.", "name": "finalizing", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of shards that are still initializing.", "name": "initializing", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of shards that have started but are not finalized.", "name": "started", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total number of shards included in the snapshot.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotShardsStats.ts#L22-L47" }, { "kind": "enum", "members": [ { "description": "The number of shards in the snapshot that were successfully stored in the repository.", "name": "DONE" }, { "description": "The number of shards in the snapshot that were not successfully stored in the repository.", "name": "FAILURE" }, { "description": "The number of shards in the snapshot that are in the finalizing stage of being stored in the repository.", "name": "FINALIZE" }, { "description": "The number of shards in the snapshot that are in the initializing stage of being stored in the repository.", "name": "INIT" }, { "description": "The number of shards in the snapshot that are in the started stage of being stored in the repository.", "name": "STARTED" } ], "name": { "name": "ShardsStatsStage", "namespace": "snapshot._types" }, "specLocation": "snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31" }, { "kind": "interface", "name": { "name": "ShardsStatsSummary", "namespace": "snapshot._types" }, "properties": [ { "name": "incremental", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStatsSummaryItem", "namespace": "snapshot._types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStatsSummaryItem", "namespace": "snapshot._types" } } }, { "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotShardsStatus.ts#L29-L35" }, { "kind": "interface", "name": { "name": "ShardsStatsSummaryItem", "namespace": "snapshot._types" }, "properties": [ { "name": "file_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "size_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotShardsStatus.ts#L37-L40" }, { "kind": "interface", "inherits": { "type": { "name": "RepositoryBase", "namespace": "snapshot._types" } }, "name": { "name": "SharedFileSystemRepository", "namespace": "snapshot._types" }, "properties": [ { "description": "The shared file system repository type.", "extDocId": "repository-shared-fs", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/shared-file-system-repository", "name": "type", "required": true, "type": { "kind": "literal_value", "value": "fs" } }, { "description": "The repository settings.", "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "SharedFileSystemRepositorySettings", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L80-L90" }, { "kind": "interface", "inherits": { "type": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" } }, "name": { "name": "SharedFileSystemRepositorySettings", "namespace": "snapshot._types" }, "properties": [ { "description": "The location of the shared filesystem used to store and retrieve snapshots.\nThis location must be registered in the `path.repo` setting on all master and data nodes in the cluster.\nUnlike `path.repo`, this setting supports only a single file path.", "name": "location", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of snapshots the repository can contain.\nThe default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`.", "name": "max_number_of_snapshots", "required": false, "serverDefault": 2147483647, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `true`, the repository is read-only.\nThe cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.\n\nOnly a cluster with write access can create snapshots in the repository.\nAll other clusters connected to the repository should have the `readonly` parameter set to `true`.\n\nIf `false`, the cluster can write to the repository and create snapshots in it.\n\nIMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository.\nHaving multiple clusters write to the repository at the same time risks corrupting the contents of the repository.", "name": "readonly", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L348-L375" }, { "kind": "interface", "name": { "name": "SnapshotIndexStats", "namespace": "snapshot._types" }, "properties": [ { "name": "shards", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "SnapshotShardsStatus", "namespace": "snapshot._types" } } } }, { "name": "shards_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStats", "namespace": "snapshot._types" } } }, { "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnapshotStats", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotIndexStats.ts#L25-L29" }, { "kind": "interface", "name": { "name": "SnapshotInfo", "namespace": "snapshot._types" }, "properties": [ { "name": "data_streams", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "duration", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "duration_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "end_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "end_time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SnapshotShardFailure", "namespace": "snapshot._types" } } } }, { "name": "include_global_state", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "name": "index_details", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "IndexDetails", "namespace": "snapshot._types" } } } }, { "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "shards", "required": false, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } }, { "name": "start_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "start_time_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } }, { "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "version_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "feature_states", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "InfoFeatureState", "namespace": "snapshot._types" } } } } ], "specLocation": "snapshot/_types/SnapshotInfo.ts#L41-L71" }, { "kind": "interface", "name": { "name": "SnapshotShardFailure", "namespace": "snapshot._types" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "node_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "shard_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index_uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "snapshot/_types/SnapshotShardFailure.ts#L22-L29" }, { "kind": "interface", "name": { "name": "SnapshotShardsStatus", "namespace": "snapshot._types" }, "properties": [ { "name": "stage", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStatsStage", "namespace": "snapshot._types" } } }, { "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStatsSummary", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotShardsStatus.ts#L24-L27" }, { "kind": "enum", "members": [ { "name": "start_time" }, { "name": "duration" }, { "name": "name" }, { "name": "index_count" }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "repository" }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "shard_count" }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "name": "failed_shard_count" } ], "name": { "name": "SnapshotSort", "namespace": "snapshot._types" }, "specLocation": "snapshot/_types/SnapshotInfo.ts#L73-L93" }, { "kind": "interface", "name": { "name": "SnapshotStats", "namespace": "snapshot._types" }, "properties": [ { "description": "The number and size of files that still need to be copied as part of the incremental snapshot.\nFor completed snapshots, this property indicates the number and size of files that were not already in the repository and were copied as part of the incremental snapshot.", "name": "incremental", "required": true, "type": { "kind": "instance_of", "type": { "name": "FileCountSnapshotStats", "namespace": "snapshot._types" } } }, { "description": "The time, in milliseconds, when the snapshot creation process started.", "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time, in milliseconds, that it took for the snapshot process to complete.", "name": "time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The total number and size of files that are referenced by the snapshot.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "FileCountSnapshotStats", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotStats.ts#L23-L42" }, { "kind": "interface", "inherits": { "type": { "name": "RepositoryBase", "namespace": "snapshot._types" } }, "name": { "name": "SourceOnlyRepository", "namespace": "snapshot._types" }, "properties": [ { "description": "The source-only repository type.", "extDocId": "repository-source-only", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore/source-only-repository", "name": "type", "required": true, "type": { "kind": "literal_value", "value": "source" } }, { "description": "The repository settings.", "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "SourceOnlyRepositorySettings", "namespace": "snapshot._types" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L104-L114" }, { "kind": "interface", "inherits": { "type": { "name": "RepositorySettingsBase", "namespace": "snapshot._types" } }, "name": { "name": "SourceOnlyRepositorySettings", "namespace": "snapshot._types" }, "properties": [ { "description": "The delegated repository type. For valid values, refer to the `type` parameter.\nSource repositories can use `settings` properties for its delegated repository type.", "name": "delegate_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of snapshots the repository can contain.\nThe default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`.", "name": "max_number_of_snapshots", "required": false, "serverDefault": 2147483647, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "aliases": [ "readonly" ], "description": "If `true`, the repository is read-only.\nThe cluster can retrieve and restore snapshots from the repository but not write to the repository or create snapshots in it.\n\nOnly a cluster with write access can create snapshots in the repository.\nAll other clusters connected to the repository should have the `readonly` parameter set to `true`.\n\nIf `false`, the cluster can write to the repository and create snapshots in it.\n\nIMPORTANT: If you register the same snapshot repository with multiple clusters, only one cluster should have write access to the repository.\nHaving multiple clusters write to the repository at the same time risks corrupting the contents of the repository.", "name": "read_only", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/_types/SnapshotRepository.ts#L414-L441" }, { "kind": "interface", "name": { "name": "Status", "namespace": "snapshot._types" }, "properties": [ { "description": "Indicates whether the current cluster state is included in the snapshot.", "name": "include_global_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "indices", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "SnapshotIndexStats", "namespace": "snapshot._types" } } } }, { "description": "The name of the repository that includes the snapshot.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Statistics for the shards in the snapshot.", "name": "shards_stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardsStats", "namespace": "snapshot._types" } } }, { "description": "The name of the snapshot.", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The current snapshot state:\n\n* `FAILED`: The snapshot finished with an error and failed to store any data.\n* `STARTED`: The snapshot is currently running.\n* `SUCCESS`: The snapshot completed.", "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Details about the number (`file_count`) and size (`size_in_bytes`) of files included in the snapshot.", "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnapshotStats", "namespace": "snapshot._types" } } }, { "description": "The universally unique identifier (UUID) for the snapshot.", "name": "uuid", "required": true, "type": { "kind": "instance_of", "type": { "name": "Uuid", "namespace": "_types" } } } ], "specLocation": "snapshot/_types/SnapshotStatus.ts#L26-L60" }, { "kind": "interface", "name": { "name": "CleanupRepositoryResults", "namespace": "snapshot.cleanup_repository" }, "properties": [ { "description": "The number of binary large objects (blobs) removed from the snapshot repository during cleanup operations.\nA non-zero value indicates that unreferenced blobs were found and subsequently cleaned up.", "name": "deleted_blobs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of bytes freed by cleanup operations.", "name": "deleted_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Clean up the snapshot repository.\nTrigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.cleanup_repository" }, "path": [ { "codegenName": "name", "description": "The name of the snapshot repository to clean up.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Statistics for cleanup operations.", "name": "results", "required": true, "type": { "kind": "instance_of", "type": { "name": "CleanupRepositoryResults", "namespace": "snapshot.cleanup_repository" } } } ] }, "examples": { "SnapshotCleanupRepositoryResponseExample1": { "description": "A successful response from `POST /_snapshot/my_repository/_cleanup`.", "value": "{\n \"results\": {\n \"deleted_bytes\": 20,\n \"deleted_blobs\": 5\n }\n}" } }, "name": { "name": "Response", "namespace": "snapshot.cleanup_repository" }, "specLocation": "snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "A comma-separated list of indices to include in the snapshot.\nMulti-target syntax is supported.", "name": "indices", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Clone a snapshot.\nClone part of all of a snapshot into another snapshot in the same repository.", "examples": { "SnapshotCloneRequestExample1": { "description": "Run `PUT /_snapshot/my_repository/source_snapshot/_clone/target_snapshot` to clone the `source_snapshot` into a new `target_snapshot`.", "value": "{\n \"indices\": \"index_a,index_b\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.clone" }, "path": [ { "description": "The name of the snapshot repository that both source and target snapshot belong to.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The source snapshot name.", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The target snapshot name.", "name": "target_snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L70" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "snapshot.clone" }, "specLocation": "snapshot/clone/SnapshotCloneResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Determines how wildcard patterns in the `indices` parameter match data streams and indices.\nIt supports comma-separated values such as `open,hidden`.", "name": "expand_wildcards", "required": false, "serverDefault": "all", "type": { "kind": "instance_of", "type": { "name": "ExpandWildcards", "namespace": "_types" } } }, { "description": "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\"]`).", "extDocId": "snapshot-restore-feature-state", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore#feature-state", "name": "feature_states", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "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.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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`).", "name": "include_global_state", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "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.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "If `true`, it enables you to restore 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.\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.", "name": "partial", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "description": "Create a snapshot.\nTake a snapshot of a cluster or of data streams and indices.", "examples": { "SnapshotCreateRequestExample1": { "description": "Run `PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true` to take a snapshot of `index_1` and `index_2`.", "value": "{\n \"indices\": \"index_1,index_2\",\n \"ignore_unavailable\": true,\n \"include_global_state\": false,\n \"metadata\": {\n \"taken_by\": \"user123\",\n \"taken_because\": \"backup before upgrading\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.create" }, "path": [ { "description": "The name of the repository for the snapshot.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the snapshot.\nIt supportes date math.\nIt must be unique in the repository.", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, the request returns a response when the snapshot is complete.\nIf `false`, the request returns a response when the snapshot initializes.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/create/SnapshotCreateRequest.ts#L24-L126" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "description": "Equals `true` if the snapshot was accepted. Present when the request had `wait_for_completion` set to `false`", "name": "accepted", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Snapshot information. Present when the request had `wait_for_completion` set to `true`", "name": "snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "SnapshotInfo", "namespace": "snapshot._types" } } } ] }, "examples": { "SnapshotCreateResponseExample1": { "description": "A successful response from `PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true`.", "value": "{\n \"snapshot\": {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": false,\n \"metadata\": {\n \"taken_by\": \"user123\",\n \"taken_because\": \"backup before upgrading\"\n },\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-06-25T14:00:28.850Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-06-25T14:00:28.850Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "snapshot.create" }, "specLocation": "snapshot/create/SnapshotCreateResponse.ts#L22-L35" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "value", "codegenName": "repository", "value": { "kind": "instance_of", "type": { "name": "Repository", "namespace": "snapshot._types" } } }, "description": "Create or update a snapshot repository.\nIMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters.\nTo register a snapshot repository, the cluster's global metadata must be writeable.\nEnsure there are no cluster blocks (for example, `cluster.blocks.read_only` and `clsuter.blocks.read_only_allow_delete` settings) that prevent write access.\n\nSeveral options for this API can be specified using a query parameter or a request body parameter.\nIf both parameters are specified, only the query parameter is used.", "examples": { "SnapshotCreateRepositoryRequestExample1": { "description": "Run `PUT /_snapshot/my_repository` to create or update a shared file system snapshot repository.", "summary": "A shared file system repository", "value": "{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_backup_location\"\n }\n}" }, "SnapshotCreateRepositoryRequestExample2": { "description": "Run `PUT /_snapshot/my_repository` to create or update an Azure snapshot repository.", "summary": "An Azure repository", "value": "{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\"\n }\n}" }, "SnapshotCreateRepositoryRequestExample3": { "description": "Run `PUT /_snapshot/my_gcs_repository` to create or update a Google Cloud Storage snapshot repository.", "summary": "A Google Cloud Storage repository", "value": "{\n \"type\": \"gcs\",\n \"settings\": {\n \"bucket\": \"my_other_bucket\",\n \"base_path\": \"dev\"\n }\n}" }, "SnapshotCreateRepositoryRequestExample4": { "description": "Run `PUT /_snapshot/my_s3_repository` to create or update an AWS S3 snapshot repository.", "summary": "An S3 repository", "value": "{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"my-bucket\"\n }\n}" }, "SnapshotCreateRepositoryRequestExample5": { "description": "Run `PUT _snapshot/my_src_only_repository` to create or update a source-only snapshot repository.", "summary": "A source-only repository", "value": "{\n \"type\": \"source\",\n \"settings\": {\n \"delegate_type\": \"fs\",\n \"location\": \"my_backup_repository\"\n }\n}" }, "SnapshotCreateRepositoryRequestExample6": { "description": "Run `PUT _snapshot/my_read_only_url_repository` to create or update a read-only URL snapshot repository.", "summary": "A read-only URL repository", "value": "{\n \"type\": \"url\",\n \"settings\": {\n \"url\": \"file:/mount/backups/my_fs_backup_location\"\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.create_repository" }, "path": [ { "codegenName": "name", "description": "The name of the snapshot repository to register or update.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "verify", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "snapshot.create_repository" }, "specLocation": "snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete snapshots.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.delete" }, "path": [ { "description": "The name of the repository to delete a snapshot from.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "A comma-separated list of snapshot names to delete.\nIt also accepts wildcards (`*`).", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/delete/SnapshotDeleteRequest.ts#L24-L59" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "SnapshotDeleteResponseExample1": { "description": "A successful response from `DELETE /_snapshot/my_repository/snapshot_2,snapshot_3`. The request deletes `snapshot_2` and `snapshot_3` from the repository named `my_repository`.\n", "value": "{\n \"acknowledged\" : true\n}" } }, "name": { "name": "Response", "namespace": "snapshot.delete" }, "specLocation": "snapshot/delete/SnapshotDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete snapshot repositories.\nWhen a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots.\nThe snapshots themselves are left untouched and in place.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.delete_repository" }, "path": [ { "codegenName": "name", "description": "The ame of the snapshot repositories to unregister.\nWildcard (`*`) patterns are supported.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/delete_repository/SnapshotDeleteRepositoryRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "snapshot.delete_repository" }, "specLocation": "snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get snapshot information.\n\nNOTE: The `after` parameter and `next` field enable you to iterate through snapshots with some consistency guarantees regarding concurrent creation or deletion of snapshots.\nIt is guaranteed that any snapshot that exists at the beginning of the iteration and is not concurrently deleted will be seen during the iteration.\nSnapshots concurrently created may be seen during an iteration.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.get" }, "path": [ { "description": "A comma-separated list of snapshot repository names used to limit the request.\nWildcard (`*`) expressions are supported.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "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`.", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "description": "An offset identifier to start pagination from as returned by the next field in the response body.", "name": "after", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "description": "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.", "name": "from_sort_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `false`, the request returns an error for any snapshots that are unavailable.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "description": "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.", "name": "index_details", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.3.0" } }, "description": "If `true`, the response includes the name of each index in each snapshot.", "name": "index_names", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response includes the repository name in each snapshot.", "name": "include_repository", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "description": "The sort order.\nValid values are `asc` for ascending and `desc` for descending order.\nThe default behavior is ascending order.", "name": "order", "required": false, "serverDefault": "asc", "type": { "kind": "instance_of", "type": { "name": "SortOrder", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "description": "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.", "name": "offset", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "description": "The maximum number of snapshots to return.\nThe default is 0, which means to return all that match the request without limit.", "name": "size", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.16.0" } }, "description": "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.", "name": "slm_policy_filter", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "description": "The sort order for the result.\nThe default behavior is sorting by snapshot start time stamp.", "name": "sort", "required": false, "serverDefault": "start_time", "type": { "kind": "instance_of", "type": { "name": "SnapshotSort", "namespace": "snapshot._types" } } }, { "description": "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.", "name": "verbose", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/get/SnapshotGetRequest.ts#L27-L158" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "description": "The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the `next` field value.", "name": "remaining", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.15.0" } }, "description": "The total number of snapshots that match the request when ignoring the size limit or `after` query parameter.", "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If the request contained a size limit and there might be more results, a `next` field will be added to the response.\nIt can be used as the `after` query parameter to fetch additional results.", "name": "next", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "responses", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SnapshotResponseItem", "namespace": "snapshot.get" } } } }, { "name": "snapshots", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SnapshotInfo", "namespace": "snapshot._types" } } } } ] }, "examples": { "SnapshotGetResponseExample1": { "description": "A successful response from `GET /_snapshot/my_repository/snapshot_*?sort=start_time&from_sort_value=1577833200000`. The response contains information for all snapshots with names starting with `snapshot_` and that started on or after timestamp `1577833200000` (Jan 1st 2020) when sorted by snapshot start time in the default ascending order.\n", "value": "{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_1\",\n \"uuid\": \"dKb54xw67gvdRctLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.128Z\",\n \"start_time_in_millis\": 1593093628849,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593093628850,\n \"duration_in_millis\": 1,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.130Z\",\n \"start_time_in_millis\": 1593093628851,\n \"end_time\": \"2020-07-06T21:55:18.130Z\",\n \"end_time_in_millis\": 1593093628851,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_3\",\n \"uuid\": \"dRctdKb54xw67gvLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.131Z\",\n \"start_time_in_millis\": 1593093628852,\n \"end_time\": \"2020-07-06T21:55:18.135Z\",\n \"end_time_in_millis\": 1593093628856,\n \"duration_in_millis\": 4,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 3,\n \"remaining\": 0\n}" } }, "name": { "name": "Response", "namespace": "snapshot.get" }, "specLocation": "snapshot/get/SnapshotGetResponse.ts#L25-L47" }, { "kind": "interface", "name": { "name": "SnapshotResponseItem", "namespace": "snapshot.get" }, "properties": [ { "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "snapshots", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SnapshotInfo", "namespace": "snapshot._types" } } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "snapshot/get/SnapshotGetResponse.ts#L49-L53" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get snapshot repository information.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.get_repository" }, "path": [ { "codegenName": "name", "description": "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`.", "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "If `true`, the request gets information from the local node only.\nIf `false`, the request gets information from the master node.", "name": "local", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "to 30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/get_repository/SnapshotGetRepositoryRequest.ts#L24-L68" }, { "kind": "response", "body": { "kind": "value", "codegenName": "repositories", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Repository", "namespace": "snapshot._types" } } } }, "examples": { "SnapshotGetRepositoryResponseExample1": { "description": "A successful response from `GET /_snapshot/my_repository`.", "value": "{\n \"my_repository\" : {\n \"type\" : \"fs\",\n \"uuid\" : \"0JLknrXbSUiVPuLakHjBrQ\",\n \"settings\" : {\n \"location\" : \"my_backup_location\"\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "snapshot.get_repository" }, "specLocation": "snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L26" }, { "kind": "interface", "name": { "name": "BlobDetails", "namespace": "snapshot.repository_analyze" }, "properties": [ { "description": "The name of the blob.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates whether the blob was overwritten while the read operations were ongoing.\n /**", "name": "overwritten", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "read_early", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The position, in bytes, at which read operations completed.", "name": "read_end", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The position, in bytes, at which read operations started.", "name": "read_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A description of every read operation performed on the blob.", "name": "reads", "required": true, "type": { "kind": "instance_of", "type": { "name": "ReadBlobDetails", "namespace": "snapshot.repository_analyze" } } }, { "description": "The size of the blob.", "name": "size", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The size of the blob in bytes.", "name": "size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284" }, { "kind": "interface", "name": { "name": "DetailsInfo", "namespace": "snapshot.repository_analyze" }, "properties": [ { "description": "A description of the blob that was written and read.", "name": "blob", "required": true, "type": { "kind": "instance_of", "type": { "name": "BlobDetails", "namespace": "snapshot.repository_analyze" } } }, { "description": "The elapsed time spent overwriting the blob.\nIf the blob was not overwritten, this information is omitted.", "name": "overwrite_elapsed", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The elapsed time spent overwriting the blob, in nanoseconds.\nIf the blob was not overwritten, this information is omitted.", "name": "overwrite_elapsed_nanos", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The elapsed time spent writing the blob.", "name": "write_elapsed", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The elapsed time spent writing the blob, in nanoseconds.", "name": "write_elapsed_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The length of time spent waiting for the `max_snapshot_bytes_per_sec` (or `indices.recovery.max_bytes_per_sec` if the recovery settings for managed services are set) throttle while writing the blob.", "name": "write_throttled", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The length of time spent waiting for the `max_snapshot_bytes_per_sec` (or `indices.recovery.max_bytes_per_sec` if the recovery settings for managed services are set) throttle while writing the blob, in nanoseconds.", "name": "write_throttled_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The node which wrote the blob and coordinated the read operations.", "name": "writer_node", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnapshotNodeInfo", "namespace": "snapshot.repository_analyze" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321" }, { "kind": "interface", "name": { "name": "ReadBlobDetails", "namespace": "snapshot.repository_analyze" }, "properties": [ { "description": "Indicates whether the read operation may have started before the write operation was complete.", "name": "before_write_complete", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The length of time spent reading the blob.\nIf the blob was not found, this detail is omitted.", "name": "elapsed", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The length of time spent reading the blob, in nanoseconds.\nIf the blob was not found, this detail is omitted.", "name": "elapsed_nanos", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The length of time waiting for the first byte of the read operation to be received.\nIf the blob was not found, this detail is omitted.", "name": "first_byte_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The length of time waiting for the first byte of the read operation to be received, in nanoseconds.\nIf the blob was not found, this detail is omitted.", "name": "first_byte_time_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "Indicates whether the blob was found by the read operation.\nIf the read was started before the write completed or the write was ended before completion, it might be false.", "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The node that performed the read operation.", "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnapshotNodeInfo", "namespace": "snapshot.repository_analyze" } } }, { "description": "The length of time spent waiting due to the `max_restore_bytes_per_sec` or `indices.recovery.max_bytes_per_sec` throttles during the read of the blob.\nIf the blob was not found, this detail is omitted.", "name": "throttled", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The length of time spent waiting due to the `max_restore_bytes_per_sec` or `indices.recovery.max_bytes_per_sec` throttles during the read of the blob, in nanoseconds.\nIf the blob was not found, this detail is omitted.", "name": "throttled_nanos", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248" }, { "kind": "interface", "name": { "name": "ReadSummaryInfo", "namespace": "snapshot.repository_analyze" }, "properties": [ { "description": "The number of read operations performed in the test.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum time spent waiting for the first byte of any read request to be received.", "name": "max_wait", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The maximum time spent waiting for the first byte of any read request to be received, in nanoseconds.", "name": "max_wait_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The total elapsed time spent on reading blobs in the test.", "name": "total_elapsed", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total elapsed time spent on reading blobs in the test, in nanoseconds.", "name": "total_elapsed_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The total size of all the blobs or partial blobs read in the test.", "name": "total_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The total size of all the blobs or partial blobs read in the test, in bytes.", "name": "total_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total time spent waiting due to the `max_restore_bytes_per_sec` or `indices.recovery.max_bytes_per_sec` throttles.", "name": "total_throttled", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time spent waiting due to the `max_restore_bytes_per_sec` or `indices.recovery.max_bytes_per_sec` throttles, in nanoseconds.", "name": "total_throttled_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The total time spent waiting for the first byte of each read request to be received.", "name": "total_wait", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time spent waiting for the first byte of each read request to be received, in nanoseconds.", "name": "total_wait_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Analyze a snapshot repository.\nAnalyze the performance characteristics and any incorrect behaviour found in a repository.\n\nThe response exposes implementation details of the analysis which may change from version to version.\nThe response body format is therefore not considered stable and may be different in newer versions.\n\nThere are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch.\nSome storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system.\n\nThe default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations.\nRun your first analysis with the default parameter values to check for simple problems.\nIf successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a `blob_count` of at least `2000`, a `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, and a `register_operation_count` of at least `100`.\nAlways specify a generous timeout, possibly `1h` or longer, to allow time for each analysis to run to completion.\nPerform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once.\n\nIf the analysis fails, Elasticsearch detected that your repository behaved unexpectedly.\nThis usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support.\nIf so, this storage system is not suitable for use as a snapshot repository.\nYou will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects.\n\nIf the analysis is successful, the API returns details of the testing process, optionally including how long each operation took.\nYou can use this information to determine the performance of your storage system.\nIf any operation fails or returns an incorrect result, the API returns an error.\nIf the API returns an error, it may not have removed all the data it wrote to the repository.\nThe error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs.\nYou should verify that this location has been cleaned up correctly.\nIf there is still leftover data at the specified location, you should manually remove it.\n\nIf the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled.\nSome clients are configured to close their connection if no response is received within a certain timeout.\nAn analysis takes a long time to complete so you might need to relax any such client-side timeouts.\nOn cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all.\nThe path to the leftover data is recorded in the Elasticsearch logs.\nYou should verify that this location has been cleaned up correctly.\nIf there is still leftover data at the specified location, you should manually remove it.\n\nIf the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed.\nThe analysis attempts to detect common bugs but it does not offer 100% coverage.\nAdditionally, it does not test the following:\n\n* Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster.\n* Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted.\n* Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results.\n\nIMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again.\nThis consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself.\nYou must ensure this load does not affect other users of these systems.\nAnalyses respect the repository settings `max_snapshot_bytes_per_sec` and `max_restore_bytes_per_sec` if available and the cluster setting `indices.recovery.max_bytes_per_sec` which you can use to limit the bandwidth they consume.\n\nNOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.\n\nNOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones.\nA storage system that passes repository analysis with one version of Elasticsearch may fail with a different version.\nThis indicates it behaves incorrectly in ways that the former version did not detect.\nYou must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch.\n\nNOTE: This API may not work correctly in a mixed-version cluster.\n\n*Implementation details*\n\nNOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions.\n\nThe analysis comprises a number of blob-level tasks, as set by the `blob_count` parameter and a number of compare-and-exchange operations on linearizable registers, as set by the `register_operation_count` parameter.\nThese tasks are distributed over the data and master-eligible nodes in the cluster for execution.\n\nFor most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote.\nThe size of the blob is chosen randomly, according to the `max_blob_size` and `max_total_data_size` parameters.\nIf any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires.\n\nFor some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes.\nThese reads are permitted to fail, but must not return partial data.\nIf any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires.\n\nFor some blob-level tasks, the executing node will overwrite the blob while its peers are reading it.\nIn this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs.\nIf any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites.\n\nThe executing node will use a variety of different methods to write the blob.\nFor instance, where applicable, it will use both single-part and multi-part uploads.\nSimilarly, the reading nodes will use a variety of different methods to read the data back again.\nFor instance they may read the entire blob from start to end or may read only a subset of the data.\n\nFor some blob-level tasks, the executing node will cancel the write before it is complete.\nIn this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob.\n\nLinearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation.\nThis operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time.\nThe detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type.\nRepository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed.\nRepository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results.\nIf an operation fails due to contention, Elasticsearch retries the operation until it succeeds.\nMost of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob.\nSome operations also verify the behavior on small blobs with sizes other than 8 bytes.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.repository_analyze" }, "path": [ { "codegenName": "name", "description": "The name of the repository.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "The total number of blobs to write to the repository during the test.\nFor realistic experiments, you should set it to at least `2000`.", "name": "blob_count", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of operations to run concurrently during the test.", "name": "concurrency", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "detailed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of nodes on which to perform an early read operation while writing each blob.\nEarly read operations are only rarely performed.", "name": "early_read_node_count", "required": false, "serverDefault": 2, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum size of a blob to be written during the test.\nFor realistic experiments, you should set it to at least `2gb`.", "name": "max_blob_size", "required": false, "serverDefault": "10mb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "An upper limit on the total size of all the blobs written during the test.\nFor realistic experiments, you should set it to at least `1tb`.", "name": "max_total_data_size", "required": false, "serverDefault": "1gb", "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob.", "name": "rare_action_probability", "required": false, "serverDefault": 0.02, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "Indicates whether to rarely cancel writes before they complete.", "name": "rarely_abort_writes", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of nodes on which to read a blob after writing.", "name": "read_node_count", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The minimum number of linearizable register operations to perform in total.\nFor realistic experiments, you should set it to at least `100`.", "name": "register_operation_count", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "seed", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryRequest.ts#L25-L202" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of blobs written to the repository during the test.", "name": "blob_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The path in the repository under which all the blobs were written during the test.", "name": "blob_path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of write operations performed concurrently during the test.", "name": "concurrency", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The node that coordinated the analysis and performed the final cleanup.", "name": "coordinating_node", "required": true, "type": { "kind": "instance_of", "type": { "name": "SnapshotNodeInfo", "namespace": "snapshot.repository_analyze" } } }, { "description": "The time it took to delete all the blobs in the container.", "name": "delete_elapsed", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The time it took to delete all the blobs in the container, in nanoseconds.", "name": "delete_elapsed_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "A description of every read and write operation performed during the test.", "name": "details", "required": true, "type": { "kind": "instance_of", "type": { "name": "DetailsInfo", "namespace": "snapshot.repository_analyze" } } }, { "description": "The limit on the number of nodes on which early read operations were performed after writing each blob.", "name": "early_read_node_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A list of correctness issues detected, which is empty if the API succeeded.\nIt is included to emphasize that a successful response does not guarantee correct behaviour in future.", "name": "issues_detected", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The time it took to retrieve a list of all the blobs in the container.", "name": "listing_elapsed", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The time it took to retrieve a list of all the blobs in the container, in nanoseconds.", "name": "listing_elapsed_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The limit on the size of a blob written during the test.", "name": "max_blob_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The limit, in bytes, on the size of a blob written during the test.", "name": "max_blob_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The limit on the total size of all blob written during the test.", "name": "max_total_data_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The limit, in bytes, on the total size of all blob written during the test.", "name": "max_total_data_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The probability of performing rare actions during the test.", "name": "rare_action_probability", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "description": "The limit on the number of nodes on which read operations were performed after writing each blob.", "name": "read_node_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The name of the repository that was the subject of the analysis.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The seed for the pseudo-random number generator used to generate the operations used during the test.", "name": "seed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "A collection of statistics that summarize the results of the test.", "name": "summary", "required": true, "type": { "kind": "instance_of", "type": { "name": "SummaryInfo", "namespace": "snapshot.repository_analyze" } } } ] }, "name": { "name": "Response", "namespace": "snapshot.repository_analyze" }, "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L24-L108" }, { "kind": "interface", "name": { "name": "SnapshotNodeInfo", "namespace": "snapshot.repository_analyze" }, "properties": [ { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113" }, { "kind": "interface", "name": { "name": "SummaryInfo", "namespace": "snapshot.repository_analyze" }, "properties": [ { "description": "A collection of statistics that summarise the results of the read operations in the test.", "name": "read", "required": true, "type": { "kind": "instance_of", "type": { "name": "ReadSummaryInfo", "namespace": "snapshot.repository_analyze" } } }, { "description": "A collection of statistics that summarise the results of the write operations in the test.", "name": "write", "required": true, "type": { "kind": "instance_of", "type": { "name": "WriteSummaryInfo", "namespace": "snapshot.repository_analyze" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202" }, { "kind": "interface", "name": { "name": "WriteSummaryInfo", "namespace": "snapshot.repository_analyze" }, "properties": [ { "description": "The number of write operations performed in the test.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The total elapsed time spent on writing blobs in the test.", "name": "total_elapsed", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total elapsed time spent on writing blobs in the test, in nanoseconds.", "name": "total_elapsed_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The total size of all the blobs written in the test.", "name": "total_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "description": "The total size of all the blobs written in the test, in bytes.", "name": "total_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The total time spent waiting due to the `max_snapshot_bytes_per_sec` throttle.", "name": "total_throttled", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The total time spent waiting due to the `max_snapshot_bytes_per_sec` throttle, in nanoseconds.", "name": "total_throttled_nanos", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Verify the repository integrity.\nVerify the integrity of the contents of a snapshot repository.\n\nThis API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail.\n\nIf you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its `read_only` option to `true`, and use this API to verify its integrity.\nUntil you do so:\n\n* It may not be possible to restore some snapshots from this repository.\n* Searchable snapshots may report errors when searched or may have unassigned shards.\n* Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored.\n* Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk.\n* Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents.\n\nIf the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage.\nThe only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred.\nYou must also identify what caused the damage and take action to prevent it from happening again.\n\nIf you cannot restore a repository backup, register a new repository and use this for all future snapshot operations.\nIn some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository.\n\nAvoid all operations which write to the repository while the verify repository integrity API is running.\nIf something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes.\nIt may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting.\n\nNOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.\n\nNOTE: This API may not work correctly in a mixed-version cluster.\n\nThe default values for the parameters of this API are designed to limit the impact of the integrity verification on other activities in your cluster.\nFor instance, by default it will only use at most half of the `snapshot_meta` threads to verify the integrity of each snapshot, allowing other snapshot operations to use the other half of this thread pool.\nIf you modify these parameters to speed up the verification process, you risk disrupting other snapshot-related operations in your cluster.\nFor large repositories, consider setting up a separate single-node Elasticsearch cluster just for running the integrity verification API.\n\nThe response exposes implementation details of the analysis which may change from version to version.\nThe response body format is therefore not considered stable and may be different in newer versions.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.repository_verify_integrity" }, "path": [ { "codegenName": "name", "description": "The name of the snapshot repository.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "If `verify_blob_contents` is `true`, this parameter specifies how many blobs to verify at once.", "name": "blob_thread_pool_concurrency", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of index snapshots to verify concurrently within each index verification.", "name": "index_snapshot_verification_concurrency", "required": false, "serverDefault": 1, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of indices to verify concurrently.\nThe default behavior is to use the entire `snapshot_meta` thread pool.", "name": "index_verification_concurrency", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `verify_blob_contents` is `true`, this parameter specifies the maximum amount of data that Elasticsearch will read from the repository every second.", "name": "max_bytes_per_sec", "required": false, "serverDefault": "10mb", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "max_failed_shard_snapshots", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "meta_thread_pool_concurrency", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of snapshots to verify concurrently.\nThe default behavior is to use at most half of the `snapshot_meta` thread pool at once.", "name": "snapshot_verification_concurrency", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "verify_blob_contents", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityRequest.ts#L24-L126" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "user_defined_value" } }, "name": { "name": "Response", "namespace": "snapshot.repository_verify_integrity" }, "specLocation": "snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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\"]`).", "extDocId": "snapshot-restore-feature-state", "extDocUrl": "https://www.elastic.co/docs/deploy-manage/tools/snapshot-and-restore#feature-state", "name": "feature_states", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "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.", "name": "ignore_index_settings", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "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.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the request restores aliases for any restored data streams and indices.\nIf `false`, the request doesn’t restore aliases.", "name": "include_aliases", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "include_global_state", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "index_settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } }, { "description": "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.", "name": "indices", "required": false, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "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.", "name": "partial", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "extDocId": "snapshot-restore-amend-replacement", "extDocUrl": "https://docs.oracle.com/javase/8/docs/api/java/util/regex/Matcher.html#appendReplacement-java.lang.StringBuffer-java.lang.String-", "name": "rename_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The rename replacement string that is used with the `rename_pattern`.", "name": "rename_replacement", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Restore a snapshot.\nRestore a snapshot of a cluster or data streams and indices.\n\nYou can restore a snapshot only to a running cluster with an elected master node.\nThe snapshot repository must be registered and available to the cluster.\nThe snapshot and cluster versions must be compatible.\n\nTo restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks.\n\nBefore you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API:\n\n```\nGET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream\n```\n\nIf no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices.\n\nIf your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot.", "examples": { "SnapshotRestoreRequestExample1": { "description": "Run `POST /_snapshot/my_repository/snapshot_2/_restore?wait_for_completion=true`. It restores `index_1` and `index_2` from `snapshot_2`. The `rename_pattern` and `rename_replacement` parameters indicate any index matching the regular expression `index_(.+)` will be renamed using the pattern `restored_index_$1`. For example, `index_1` will be renamed to `restored_index_1`.\n", "summary": "Restore with rename pattern", "value": "{\n \"indices\": \"index_1,index_2\",\n \"ignore_unavailable\": true,\n \"include_global_state\": false,\n \"rename_pattern\": \"index_(.+)\",\n \"rename_replacement\": \"restored_index_$1\",\n \"include_aliases\": false\n}" }, "SnapshotRestoreRequestExample2": { "description": "Close `index_1` then run `POST /_snapshot/my_repository/snapshot_2/_restore?wait_for_completion=true` to restore an index in-place. For example, you might want to perform this type of restore operation when no alternative options surface after the cluster allocation explain API reports `no_valid_shard_copy`.\n", "summary": "Restore in-place", "value": "{\n \"indices\": \"index_1\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.restore" }, "path": [ { "description": "The name of the repository to restore a snapshot from.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "The name of the snapshot to restore.", "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "snapshot/restore/SnapshotRestoreRequest.ts#L25-L175" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "accepted", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "SnapshotRestore", "namespace": "snapshot.restore" } } } ] }, "name": { "name": "Response", "namespace": "snapshot.restore" }, "specLocation": "snapshot/restore/SnapshotRestoreResponse.ts#L23-L28" }, { "kind": "interface", "name": { "name": "SnapshotRestore", "namespace": "snapshot.restore" }, "properties": [ { "name": "indices", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "name": "snapshot", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "shards", "required": true, "type": { "kind": "instance_of", "type": { "name": "ShardStatistics", "namespace": "_types" } } } ], "specLocation": "snapshot/restore/SnapshotRestoreResponse.ts#L30-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the snapshot status.\nGet a detailed description of the current state for each shard participating in the snapshot.\n\nNote that this API should be used only to obtain detailed shard-level information for ongoing snapshots.\nIf this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API.\n\nIf you omit the `` request path parameter, the request retrieves information only for currently running snapshots.\nThis usage is preferred.\nIf needed, you can specify `` and `` to retrieve information for specific snapshots, even if they're not currently running.\n\nWARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.\nThe API requires a read from the repository for each shard in each snapshot.\nFor example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).\n\nDepending on the latency of your storage, such requests can take an extremely long time to return results.\nThese requests can also tax machine resources and, when using cloud storage, incur high processing costs.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.status" }, "path": [ { "description": "The snapshot repository name used to limit the request.\nIt supports wildcards (`*`) if `` isn't specified.", "name": "repository", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "A comma-separated list of snapshots to retrieve status for.\nThe default is currently running snapshots.\nWildcards (`*`) are not supported.", "name": "snapshot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "ignore_unavailable", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/status/SnapshotStatusRequest.ts#L24-L90" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "snapshots", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Status", "namespace": "snapshot._types" } } } } ] }, "examples": { "SnapshotStatusResponseExample1": { "description": "A successful response from `GET _snapshot/my_repository/snapshot_2/_status`. The response contains detailed status information for `snapshot_2` in the `my_repository` repository.\n", "value": "{\n \"snapshots\" : [\n {\n \"snapshot\" : \"snapshot_2\",\n \"repository\" : \"my_repository\",\n \"uuid\" : \"lNeQD1SvTQCqqJUMQSwmGg\",\n \"state\" : \"SUCCESS\",\n \"include_global_state\" : false,\n \"shards_stats\" : {\n \"initializing\" : 0,\n \"started\" : 0,\n \"finalizing\" : 0,\n \"done\" : 1,\n \"failed\" : 0,\n \"total\" : 1\n },\n \"stats\" : {\n \"incremental\" : {\n \"file_count\" : 3,\n \"size_in_bytes\" : 5969\n },\n \"total\" : {\n \"file_count\" : 4,\n \"size_in_bytes\" : 6024\n },\n \"start_time_in_millis\" : 1594829326691,\n \"time_in_millis\" : 205\n },\n \"indices\" : {\n \"index_1\" : {\n \"shards_stats\" : {\n \"initializing\" : 0,\n \"started\" : 0,\n \"finalizing\" : 0,\n \"done\" : 1,\n \"failed\" : 0,\n \"total\" : 1\n },\n \"stats\" : {\n \"incremental\" : {\n \"file_count\" : 3,\n \"size_in_bytes\" : 5969\n },\n \"total\" : {\n \"file_count\" : 4,\n \"size_in_bytes\" : 6024\n },\n \"start_time_in_millis\" : 1594829326896,\n \"time_in_millis\" : 0\n },\n \"shards\" : {\n \"0\" : {\n \"stage\" : \"DONE\",\n \"stats\" : {\n \"incremental\" : {\n \"file_count\" : 3,\n \"size_in_bytes\" : 5969\n },\n \"total\" : {\n \"file_count\" : 4,\n \"size_in_bytes\" : 6024\n },\n \"start_time_in_millis\" : 1594829326896,\n \"time_in_millis\" : 0\n }\n }\n }\n }\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "snapshot.status" }, "specLocation": "snapshot/status/SnapshotStatusResponse.ts#L22-L24" }, { "kind": "interface", "name": { "name": "CompactNodeInfo", "namespace": "snapshot.verify_repository" }, "properties": [ { "description": "A human-readable name for the node.\nYou can set this name using the `node.name` property in `elasticsearch.yml`.\nThe default value is the machine's hostname.", "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Verify a snapshot repository.\nCheck for common misconfigurations in a snapshot repository.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "snapshot.verify_repository" }, "path": [ { "codegenName": "name", "description": "The name of the snapshot repository to verify.", "name": "repository", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryRequest.ts#L24-L63" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Information about the nodes connected to the snapshot repository.\nThe key is the ID of the node.", "name": "nodes", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "CompactNodeInfo", "namespace": "snapshot.verify_repository" } } } } ] }, "name": { "name": "Response", "namespace": "snapshot.verify_repository" }, "specLocation": "snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L31" }, { "kind": "interface", "name": { "name": "Column", "namespace": "sql._types" }, "properties": [ { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "sql/_types/types.ts#L23-L26" }, { "kind": "type_alias", "name": { "name": "Row", "namespace": "sql._types" }, "specLocation": "sql/_types/types.ts#L28-L28", "type": { "kind": "array_of", "value": { "kind": "user_defined_value" } } }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Cursor to clear.", "name": "cursor", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "description": "Clear an SQL search cursor.", "examples": { "ClearSqlCursorRequestExample1": { "description": "Run `POST _sql/close` to clear an SQL search cursor.", "value": "{\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWYUpOYklQMHhRUEtld3RsNnFtYU1hQQ==:BAFmBGRhdGUBZgVsaWtlcwFzB21lc3NhZ2UBZgR1c2Vy9f///w8=\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "sql.clear_cursor" }, "path": [], "query": [], "specLocation": "sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "succeeded", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "sql.clear_cursor" }, "specLocation": "sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete an async SQL search.\nDelete an async SQL search or a stored synchronous SQL search.\nIf the search is still running, the API cancels it.\n\nIf the Elasticsearch security features are enabled, only the following users can use this API to delete a search:\n\n* Users with the `cancel_task` cluster privilege.\n* The user who first submitted the search.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "sql.delete_async" }, "path": [ { "description": "The identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "sql/delete_async/SqlDeleteAsyncRequest.ts#L23-L51" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "sql.delete_async" }, "specLocation": "sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get async SQL search results.\nGet the current status and available results for an async SQL search or stored synchronous SQL search.\n\nIf the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "sql.get_async" }, "path": [ { "description": "The identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The separator for CSV results.\nThe API supports this parameter only for CSV responses.", "name": "delimiter", "required": false, "serverDefault": ",", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The retention period for the search and its results.\nIt defaults to the `keep_alive` period for the original SQL search.", "name": "keep_alive", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for complete results.\nIt defaults to no timeout, meaning the request waits for complete search results.", "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "sql/get_async/SqlGetAsyncRequest.ts#L24-L71" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Identifier for the search.\nThis value is returned only for async and saved synchronous searches.\nFor CSV, TSV, and TXT responses, this value is returned in the `Async-ID` HTTP header.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If `true`, the search is still running.\nIf `false`, the search has finished.\nThis value is returned only for async and saved synchronous searches.\nFor CSV, TSV, and TXT responses, this value is returned in the `Async-partial` HTTP header.", "name": "is_running", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response does not contain complete search results.\nIf `is_partial` is `true` and `is_running` is `true`, the search is still running.\nIf `is_partial` is `true` but `is_running` is `false`, the results are partial due to a failure or timeout.\nThis value is returned only for async and saved synchronous searches.\nFor CSV, TSV, and TXT responses, this value is returned in the `Async-partial` HTTP header.", "name": "is_partial", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Column headings for the search results. Each object is a column.", "name": "columns", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Column", "namespace": "sql._types" } } } }, { "description": "The cursor for the next set of paginated results.\nFor CSV, TSV, and TXT responses, this value is returned in the `Cursor` HTTP header.", "name": "cursor", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The values for the search results.", "name": "rows", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Row", "namespace": "sql._types" } } } } ] }, "name": { "name": "Response", "namespace": "sql.get_async" }, "specLocation": "sql/get_async/SqlGetAsyncResponse.ts#L23-L60" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get the async SQL search status.\nGet the current status of an async SQL search or a stored synchronous SQL search.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "sql.get_async_status" }, "path": [ { "description": "The identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "sql/get_async_status/SqlGetAsyncStatusRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running.", "name": "expiration_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The identifier for the search.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If `true`, the search is still running.\nIf `false`, the search has finished.", "name": "is_running", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response does not contain complete search results.\nIf `is_partial` is `true` and `is_running` is `true`, the search is still running.\nIf `is_partial` is `true` but `is_running` is `false`, the results are partial due to a failure or timeout.", "name": "is_partial", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The timestamp, in milliseconds since the Unix epoch, when the search started.\nThe API returns this property only for running searches.", "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The HTTP status code for the search.\nThe API returns this property only for completed searches.", "name": "completion_status", "required": false, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "sql.get_async_status" }, "specLocation": "sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "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.", "name": "allow_partial_search_results", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The default catalog (cluster) for queries.\nIf unspecified, the queries execute on the data in the local cluster only.", "name": "catalog", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "extDocId": "sql-rest-columnar", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/sql-rest-columnar", "name": "columnar", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "cursor", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The maximum number of rows (or entries) to return in one response.", "name": "fetch_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "field_multi_value_leniency", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The Elasticsearch query DSL for additional filtering.", "extDocId": "sql-rest-filtering", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/sql-rest-filtering", "name": "filter", "required": false, "serverDefault": "none", "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "If `true`, the search can run on frozen indices.", "name": "index_using_frozen", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The retention period for an async or saved synchronous search.", "name": "keep_alive", "required": false, "serverDefault": "5d", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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`.", "name": "keep_on_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "page_timeout", "required": false, "serverDefault": "45s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The values for parameters in the query.", "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "The SQL query to run.", "extDocId": "sql-spec", "extDocUrl": "https://www.elastic.co/docs/reference/query-languages/sql/sql-spec", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The timeout before the request fails.", "name": "request_timeout", "required": false, "serverDefault": "90s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "One or more runtime fields for the search request.\nThese fields take precedence over mapped fields with the same name.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } }, { "description": "The ISO-8601 time zone ID for the search.", "extDocId": "time-zone-id", "extDocUrl": "https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html", "name": "time_zone", "required": false, "serverDefault": "Z", "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } }, { "description": "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.", "name": "wait_for_completion_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ] }, "description": "Get SQL search results.\nRun an SQL request.", "examples": { "QuerySqlRequestExample1": { "description": "Run `POST _sql?format=txt` to get results for an SQL search.", "value": "{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC LIMIT 5\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "sql.query" }, "path": [], "query": [ { "description": "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.", "extDocId": "sql-rest-format", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/sql-rest-format", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "SqlFormat", "namespace": "sql.query" } } } ], "specLocation": "sql/query/QuerySqlRequest.ts#L28-L152" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "Column headings for the search results. Each object is a column.", "name": "columns", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Column", "namespace": "sql._types" } } } }, { "description": "The cursor for the next set of paginated results.\nFor CSV, TSV, and TXT responses, this value is returned in the `Cursor` HTTP header.", "name": "cursor", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The identifier for the search.\nThis value is returned only for async and saved synchronous searches.\nFor CSV, TSV, and TXT responses, this value is returned in the `Async-ID` HTTP header.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "If `true`, the search is still running.\nIf `false`, the search has finished.\nThis value is returned only for async and saved synchronous searches.\nFor CSV, TSV, and TXT responses, this value is returned in the `Async-partial` HTTP header.", "name": "is_running", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If `true`, the response does not contain complete search results.\nIf `is_partial` is `true` and `is_running` is `true`, the search is still running.\nIf `is_partial` is `true` but `is_running` is `false`, the results are partial due to a failure or timeout.\nThis value is returned only for async and saved synchronous searches.\nFor CSV, TSV, and TXT responses, this value is returned in the `Async-partial` HTTP header.", "name": "is_partial", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The values for the search results.", "name": "rows", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Row", "namespace": "sql._types" } } } } ] }, "name": { "name": "Response", "namespace": "sql.query" }, "specLocation": "sql/query/QuerySqlResponse.ts#L23-L60" }, { "kind": "enum", "members": [ { "name": "csv" }, { "name": "json" }, { "name": "tsv" }, { "name": "txt" }, { "name": "yaml" }, { "name": "cbor" }, { "name": "smile" } ], "name": { "name": "SqlFormat", "namespace": "sql.query" }, "specLocation": "sql/query/QuerySqlRequest.ts#L154-L162" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The maximum number of rows (or entries) to return in one response.", "name": "fetch_size", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The Elasticsearch query DSL for additional filtering.", "extDocId": "sql-rest-filtering", "extDocUrl": "https://www.elastic.co/docs/explore-analyze/query-filter/languages/sql-rest-filtering", "name": "filter", "required": false, "serverDefault": "none", "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "The SQL query to run.", "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The ISO-8601 time zone ID for the search.", "extDocId": "time-zone-id", "extDocUrl": "https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html", "name": "time_zone", "required": false, "serverDefault": "Z", "type": { "kind": "instance_of", "type": { "name": "TimeZone", "namespace": "_types" } } } ] }, "description": "Translate SQL into Elasticsearch queries.\nTranslate an SQL search into a search API request containing Query DSL.\nIt accepts the same request body parameters as the SQL search API, excluding `cursor`.", "examples": { "TranslateSqlRequestExample1": { "description": "", "method_request": "POST _sql/translate", "summary": "sql/apis/sql-translate-api.asciidoc:12", "type": "request", "value": "{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 10\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "sql.translate" }, "path": [], "query": [], "specLocation": "sql/translate/TranslateSqlRequest.ts#L25-L65" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "name": "size", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_source", "required": false, "type": { "kind": "instance_of", "type": { "name": "SourceConfig", "namespace": "_global.search._types" } } }, { "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "FieldAndFormat", "namespace": "_types.query_dsl" } } } }, { "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "sql.translate" }, "specLocation": "sql/translate/TranslateSqlResponse.ts#L27-L37" }, { "kind": "interface", "name": { "name": "CertificateInformation", "namespace": "ssl.certificates" }, "properties": [ { "description": "If the path refers to a container file (a jks keystore, or a PKCS#12 file), it is the alias of the certificate.\nOtherwise, it is null.", "name": "alias", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } }, { "description": "The ISO formatted date of the certificate's expiry (not-after) date.", "name": "expiry", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "The format of the file.\nValid values include `jks`, `PKCS12`, and `PEM`.", "name": "format", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Indicates whether Elasticsearch has access to the private key for this certificate.", "name": "has_private_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The Distinguished Name of the certificate's issuer.", "name": "issuer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The path to the certificate, as configured in the `elasticsearch.yml` file.", "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The hexadecimal representation of the certificate's serial number.", "name": "serial_number", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The Distinguished Name of the certificate's subject.", "name": "subject_dn", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "ssl/certificates/types.ts#L22-L57" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get SSL certificates.\n\nGet information about the X.509 certificates that are used to encrypt communications in the cluster.\nThe API returns a list that includes certificates from all TLS contexts including:\n\n- Settings for transport and HTTP interfaces\n- TLS settings that are used within authentication realms\n- TLS settings for remote monitoring exporters\n\nThe list includes certificates that are used for configuring trust, such as those configured in the `xpack.security.transport.ssl.truststore` and `xpack.security.transport.ssl.certificate_authorities` settings.\nIt also includes certificates that are used for configuring server identity, such as `xpack.security.http.ssl.keystore` and `xpack.security.http.ssl.certificate settings`.\n\nThe list does not include certificates that are sourced from the default SSL context of the Java Runtime Environment (JRE), even if those certificates are in use within Elasticsearch.\n\nNOTE: When a PKCS#11 token is configured as the truststore of the JRE, the API returns all the certificates that are included in the PKCS#11 token irrespective of whether these are used in the Elasticsearch TLS configuration.\n\nIf Elasticsearch is configured to use a keystore or truststore, the API output includes all certificates in that store, even though some of the certificates might not be in active use within the cluster.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "ssl.certificates" }, "path": [], "query": [], "specLocation": "ssl/certificates/GetCertificatesRequest.ts#L22-L55" }, { "kind": "response", "body": { "kind": "value", "codegenName": "certificates", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "CertificateInformation", "namespace": "ssl.certificates" } } } }, "examples": { "GetCertificatesResponseExample1": { "description": "A successful response from `GET /_ssl/certificates`, which provides information about the certificates on a single node of Elasticsearch.\n", "value": "[\n {\n \"path\": \"certs/elastic-certificates.p12\",\n \"format\": \"PKCS12\",\n \"alias\": \"instance\",\n \"subject_dn\": \"CN=Elastic Certificate Tool Autogenerated CA\",\n \"serial_number\": \"a20f0ee901e8f69dc633ff633e5cd5437cdb4137\",\n \"has_private_key\": false,\n \"expiry\": \"2021-01-15T20:42:49.000Z\"\n },\n {\n \"path\": \"certs/elastic-certificates.p12\",\n \"format\": \"PKCS12\",\n \"alias\": \"ca\",\n \"subject_dn\": \"CN=Elastic Certificate Tool Autogenerated CA\",\n \"serial_number\": \"a20f0ee901e8f69dc633ff633e5cd5437cdb4137\",\n \"has_private_key\": false,\n \"expiry\": \"2021-01-15T20:42:49.000Z\"\n },\n {\n \"path\": \"certs/elastic-certificates.p12\",\n \"format\": \"PKCS12\",\n \"alias\": \"instance\",\n \"subject_dn\": \"CN=instance\",\n \"serial_number\": \"fc1905e1494dc5230218d079c47a617088f84ce0\",\n \"has_private_key\": true,\n \"expiry\": \"2021-01-15T20:44:32.000Z\"\n }\n]" } }, "name": { "name": "Response", "namespace": "ssl.certificates" }, "specLocation": "ssl/certificates/GetCertificatesResponse.ts#L22-L25" }, { "kind": "interface", "name": { "name": "SynonymRule", "namespace": "synonyms._types" }, "properties": [ { "description": "The identifier for the synonym rule.\nIf you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The synonyms that conform the synonym rule in Solr format.", "extDocId": "synonym-set-define", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/analysis-synonym-graph-tokenfilter#analysis-synonym-graph-define-synonyms", "name": "synonyms", "required": true, "type": { "kind": "instance_of", "type": { "name": "SynonymString", "namespace": "synonyms._types" } } } ], "specLocation": "synonyms/_types/SynonymRule.ts#L26-L37" }, { "kind": "interface", "attachedBehaviors": [ "OverloadOf" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "SynonymRule", "namespace": "synonyms._types" } } ], "type": { "name": "OverloadOf", "namespace": "_spec_utils" } } ], "name": { "name": "SynonymRuleRead", "namespace": "synonyms._types" }, "properties": [ { "description": "Synonym Rule identifier", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Synonyms, in Solr format, that conform the synonym rule.", "extDocId": "synonym-solr", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/analysis-synonym-graph-tokenfilter#_solr_format_2", "name": "synonyms", "required": true, "type": { "kind": "instance_of", "type": { "name": "SynonymString", "namespace": "synonyms._types" } } } ], "specLocation": "synonyms/_types/SynonymRule.ts#L40-L50" }, { "kind": "type_alias", "name": { "name": "SynonymString", "namespace": "synonyms._types" }, "specLocation": "synonyms/_types/SynonymRule.ts#L23-L23", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "SynonymsUpdateResult", "namespace": "synonyms._types" }, "properties": [ { "description": "The update operation result.", "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } }, { "description": "Updating synonyms in a synonym set reloads the associated analyzers.\nThis information is the analyzers reloading result.", "name": "reload_analyzers_details", "required": true, "type": { "kind": "instance_of", "type": { "name": "ReloadResult", "namespace": "indices.reload_search_analyzers" } } } ], "specLocation": "synonyms/_types/SynonymsUpdateResult.ts#L23-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a synonym set.\n\nYou can only delete a synonyms set that is not in use by any index analyzer.\n\nSynonyms sets can be used in synonym graph token filters and synonym token filters.\nThese synonym filters can be used as part of search analyzers.\n\nAnalyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open).\nEven if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase.\n\nIf any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available.\nTo prevent that, synonyms sets that are used in analyzers can't be deleted.\nA delete request in this case will return a 400 response code.\n\nTo remove a synonyms set, you must first remove all indices that contain analyzers using it.\nYou can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data.\nOnce finished, you can delete the index.\nWhen the synonyms set is not used in analyzers, you will be able to delete it.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.delete_synonym" }, "path": [ { "description": "The synonyms set identifier to delete.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "synonyms/delete_synonym/SynonymsDeleteRequest.ts#L22-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "name": { "name": "Response", "namespace": "synonyms.delete_synonym" }, "specLocation": "synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a synonym rule.\nDelete a synonym rule from a synonym set.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.delete_synonym_rule" }, "path": [ { "description": "The ID of the synonym set to update.", "name": "set_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The ID of the synonym rule to delete.", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "synonyms/delete_synonym_rule/SynonymRuleDeleteRequest.ts#L22-L48" }, { "kind": "response", "body": { "kind": "value", "codegenName": "update_result", "value": { "kind": "instance_of", "type": { "name": "SynonymsUpdateResult", "namespace": "synonyms._types" } } }, "examples": { "SynonymRuleDeleteResponseExample1": { "description": "A successful response from `DELETE _synonyms/my-synonyms-set/test-1`. All analyzers using this synonyms set will be reloaded automatically to reflect the rule being deleted.\n", "value": "{\n \"result\": \"deleted\",\n \"reload_analyzers_details\": {\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"test-index\",\n \"reloaded_analyzers\": [\n \"my_search_analyzer\"\n ],\n \"reloaded_node_ids\": [\n \"1wYFZzq8Sxeu_Jvt9mlbkg\"\n ]\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "synonyms.delete_synonym_rule" }, "specLocation": "synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a synonym set.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.get_synonym" }, "path": [ { "description": "The synonyms set identifier to retrieve.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The starting offset for query rules to retrieve.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The max number of query rules to retrieve.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "synonyms/get_synonym/SynonymsGetRequest.ts#L23-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of synonyms rules that the synonyms set contains.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Synonym rule details.", "name": "synonyms_set", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SynonymRuleRead", "namespace": "synonyms._types" } } } } ] }, "examples": { "SynonymsGetResponseExample1": { "description": "A successful response from `GET _synonyms/my-synonyms-set`.", "value": "{\n \"count\": 3,\n \"synonyms_set\": [\n {\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi\"\n },\n {\n \"id\": \"test-2\",\n \"synonyms\": \"bye, goodbye\"\n },\n {\n \"id\": \"test-3\",\n \"synonyms\": \"test => check\"\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "synonyms.get_synonym" }, "specLocation": "synonyms/get_synonym/SynonymsGetResponse.ts#L23-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a synonym rule.\nGet a synonym rule from a synonym set.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.get_synonym_rule" }, "path": [ { "description": "The ID of the synonym set to retrieve the synonym rule from.", "name": "set_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The ID of the synonym rule to retrieve.", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "synonyms/get_synonym_rule/SynonymRuleGetRequest.ts#L22-L48" }, { "kind": "response", "body": { "kind": "value", "codegenName": "synonym_rule", "value": { "kind": "instance_of", "type": { "name": "SynonymRuleRead", "namespace": "synonyms._types" } } }, "examples": { "SynonymRuleGetResponseExample1": { "description": "A successful response from `GET _synonyms/my-synonyms-set/test-1`.", "value": "{\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi\"\n}" } }, "name": { "name": "Response", "namespace": "synonyms.get_synonym_rule" }, "specLocation": "synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get all synonym sets.\nGet a summary of all defined synonym sets.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.get_synonyms_sets" }, "path": [], "query": [ { "description": "The starting offset for synonyms sets to retrieve.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The maximum number of synonyms sets to retrieve.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetRequest.ts#L22-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of synonyms sets defined.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The identifier and total number of defined synonym rules for each synonyms set.", "name": "results", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SynonymsSetItem", "namespace": "synonyms.get_synonyms_sets" } } } } ] }, "examples": { "SynonymsSetsGetResponseExample1": { "description": "A successful response from `GET _synonyms`.", "value": "{\n \"count\": 3,\n \"results\": [\n {\n \"synonyms_set\": \"ecommerce-synonyms\",\n \"count\": 2\n },\n {\n \"synonyms_set\": \"my-synonyms-set\",\n \"count\": 3\n },\n {\n \"synonyms_set\": \"new-ecommerce-synonyms\",\n \"count\": 1\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "synonyms.get_synonyms_sets" }, "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L34" }, { "kind": "interface", "name": { "name": "SynonymsSetItem", "namespace": "synonyms.get_synonyms_sets" }, "properties": [ { "description": "Synonyms set identifier", "name": "synonyms_set", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "Number of synonym rules that the synonym set contains", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The synonym rules definitions for the synonyms set.", "name": "synonyms_set", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "SynonymRule", "namespace": "synonyms._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SynonymRule", "namespace": "synonyms._types" } } } ] } } ] }, "description": "Create or update a synonym set.\nSynonyms sets are limited to a maximum of 10,000 synonym rules per set.\nIf you need to manage more synonym rules, you can create multiple synonym sets.\n\nWhen an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices.\nThis is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.put_synonym" }, "path": [ { "description": "The ID of the synonyms set to be created or updated.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } }, { "name": "reload_analyzers_details", "required": true, "type": { "kind": "instance_of", "type": { "name": "ReloadResult", "namespace": "indices.reload_search_analyzers" } } } ] }, "name": { "name": "Response", "namespace": "synonyms.put_synonym" }, "specLocation": "synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The synonym rule information definition, which must be in Solr format.", "extDocId": "synonym-set-define", "extDocUrl": "https://www.elastic.co/docs/reference/text-analysis/analysis-synonym-graph-tokenfilter#analysis-synonym-graph-define-synonyms", "name": "synonyms", "required": true, "type": { "kind": "instance_of", "type": { "name": "SynonymString", "namespace": "synonyms._types" } } } ] }, "description": "Create or update a synonym rule.\nCreate or update a synonym rule in a synonym set.\n\nIf any of the synonym rules included is invalid, the API returns an error.\n\nWhen you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule.", "examples": { "SynonymRulePutRequestExample1": { "description": "", "method_request": "PUT _synonyms/my-synonyms-set/test-1", "summary": "synonyms/apis/put-synonym-rule.asciidoc:107", "type": "request", "value": "{\n \"synonyms\": \"hello, hi, howdy\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "synonyms.put_synonym_rule" }, "path": [ { "description": "The ID of the synonym set.", "name": "set_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The ID of the synonym rule to be updated or created.", "name": "rule_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [], "specLocation": "synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L60" }, { "kind": "response", "body": { "kind": "value", "codegenName": "update_result", "value": { "kind": "instance_of", "type": { "name": "SynonymsUpdateResult", "namespace": "synonyms._types" } } }, "examples": { "SynonymRuleResponseExample1": { "description": "A successful response from `PUT _synonyms/my-synonyms-set/test-1`.\n", "value": "{\n \"result\": \"updated\",\n \"reload_analyzers_details\": {\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"test-index\",\n \"reloaded_analyzers\": [\n \"my_search_analyzer\"\n ],\n \"reloaded_node_ids\": [\n \"1wYFZzq8Sxeu_Jvt9mlbkg\"\n ]\n }\n ]\n }\n}" } }, "name": { "name": "Response", "namespace": "synonyms.put_synonym_rule" }, "specLocation": "synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L25" }, { "kind": "enum", "members": [ { "description": "Group tasks by node ID.", "name": "nodes" }, { "description": "Group tasks by parent task ID.", "name": "parents" }, { "description": "Do not group tasks.", "name": "none" } ], "name": { "name": "GroupBy", "namespace": "tasks._types" }, "specLocation": "tasks/_types/GroupBy.ts#L20-L27" }, { "kind": "interface", "name": { "name": "NodeTasks", "namespace": "tasks._types" }, "properties": [ { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "transport_address", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransportAddress", "namespace": "_types" } } }, { "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "ip", "required": false, "type": { "kind": "instance_of", "type": { "name": "Ip", "namespace": "_types" } } }, { "name": "roles", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "attributes", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "tasks", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "TaskInfo", "namespace": "tasks._types" } } } } ], "specLocation": "tasks/_types/TaskListResponseBase.ts#L49-L57" }, { "kind": "interface", "inherits": { "type": { "name": "TaskInfo", "namespace": "tasks._types" } }, "name": { "name": "ParentTaskInfo", "namespace": "tasks._types" }, "properties": [ { "name": "children", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TaskInfo", "namespace": "tasks._types" } } } } ], "specLocation": "tasks/_types/TaskListResponseBase.ts#L45-L47" }, { "kind": "interface", "name": { "name": "TaskInfo", "namespace": "tasks._types" }, "properties": [ { "name": "action", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cancelled", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "cancellable", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Human readable text that identifies the particular request that the task is performing.\nFor example, it might identify the search request being performed by a search task.\nOther kinds of tasks have different descriptions, like `_reindex` which has the source and the destination, or `_bulk` which just has the number of requests and the destination indices.\nMany requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "headers", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeId", "namespace": "_types" } } }, { "name": "running_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "running_time_in_nanos", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitNanos", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "start_time_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "description": "The internal status of the task, which varies from task to task.\nThe format also varies.\nWhile the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes.\nFields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases.", "name": "status", "required": false, "type": { "kind": "user_defined_value" } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "parent_task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } } ], "specLocation": "tasks/_types/TaskInfo.ts#L32-L58" }, { "kind": "type_alias", "codegenNames": [ "flat", "grouped" ], "name": { "name": "TaskInfos", "namespace": "tasks._types" }, "specLocation": "tasks/_types/TaskListResponseBase.ts#L40-L43", "type": { "kind": "union_of", "items": [ { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TaskInfo", "namespace": "tasks._types" } } }, { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ParentTaskInfo", "namespace": "tasks._types" } } } ] } }, { "kind": "interface", "name": { "name": "TaskListResponseBase", "namespace": "tasks._types" }, "properties": [ { "name": "node_failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } }, { "name": "task_failures", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TaskFailure", "namespace": "_types" } } } }, { "description": "Task information grouped by node, if `group_by` was set to `node` (the default).", "name": "nodes", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "NodeTasks", "namespace": "tasks._types" } } } }, { "description": "Either a flat list of tasks if `group_by` was set to `none`, or grouped by parents if\n`group_by` was set to `parents`.", "name": "tasks", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskInfos", "namespace": "tasks._types" } } } ], "specLocation": "tasks/_types/TaskListResponseBase.ts#L26-L38" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Cancel a task.\n\nWARNING: The task management API is new and should still be considered a beta feature.\nThe API may change in ways that are not backwards compatible.\n\nA task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away.\nIt is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation.\nThe get task information API will continue to list these cancelled tasks until they complete.\nThe cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible.\n\nTo troubleshoot why a cancelled task does not complete promptly, use the get task information API with the `?detailed` parameter to identify the other tasks the system is running.\nYou can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "tasks.cancel" }, "path": [ { "description": "The task identifier.", "name": "task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "TaskId", "namespace": "_types" } } } ], "query": [ { "description": "A comma-separated list or wildcard expression of actions that is used to limit the request.", "name": "actions", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "A comma-separated list of node IDs or names that is used to limit the request.", "name": "nodes", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "A parent task ID that is used to limit the tasks.", "name": "parent_task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If true, the request blocks until all found tasks are complete.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "tasks/cancel/CancelTasksRequest.ts#L23-L78" }, { "kind": "response", "body": { "kind": "value", "codegenName": "task_list", "value": { "kind": "instance_of", "type": { "name": "TaskListResponseBase", "namespace": "tasks._types" } } }, "name": { "name": "Response", "namespace": "tasks.cancel" }, "specLocation": "tasks/cancel/CancelTasksResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get task information.\nGet information about a task currently running in the cluster.\n\nWARNING: The task management API is new and should still be considered a beta feature.\nThe API may change in ways that are not backwards compatible.\n\nIf the task identifier is not found, a 404 response code indicates that there are no resources that match the request.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "tasks.get" }, "path": [ { "description": "The task identifier.", "name": "task_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, the request blocks until the task has completed.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "tasks/get/GetTaskRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "completed", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "task", "required": true, "type": { "kind": "instance_of", "type": { "name": "TaskInfo", "namespace": "tasks._types" } } }, { "name": "response", "required": false, "type": { "kind": "user_defined_value" } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ] }, "examples": { "GetTaskResponseExample1": { "description": "A successful response from `GET _tasks?actions=cluster:*`, which retrieves all cluster-related tasks.\n", "summary": "Get cluster actions", "value": "{\n \"nodes\" : {\n \"oTUltX4IQMOUUVeiohTt8A\" : {\n \"name\" : \"H5dfFeA\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"tasks\" : {\n \"oTUltX4IQMOUUVeiohTt8A:124\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 124,\n \"type\" : \"direct\",\n \"action\" : \"cluster:monitor/tasks/lists[n]\",\n \"start_time_in_millis\" : 1458585884904,\n \"running_time_in_nanos\" : 47402,\n \"cancellable\" : false,\n \"parent_task_id\" : \"oTUltX4IQMOUUVeiohTt8A:123\"\n },\n \"oTUltX4IQMOUUVeiohTt8A:123\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 123,\n \"type\" : \"transport\",\n \"action\" : \"cluster:monitor/tasks/lists\",\n \"start_time_in_millis\" : 1458585884904,\n \"running_time_in_nanos\" : 236042,\n \"cancellable\" : false\n }\n }\n }\n }\n}" }, "GetTaskResponseExample2": { "description": "A successful response from `GET _tasks?detailed=true&actions=*/delete/byquery`, which gets the status of a delete by query operation. The `status` object contains the actual status. `total` is the total number of operations that the reindex expects to perform. You can estimate the progress by adding the `updated`, `created`, and `deleted` fields. The request will finish when their sum is equal to the `total` field.\n", "summary": "Get details about a delete by query", "value": "{\n \"nodes\" : {\n \"r1A2WoRbTwKZ516z6NEs5A\" : {\n \"name\" : \"r1A2WoR\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"attributes\" : {\n \"testattr\" : \"test\",\n \"portsfile\" : \"true\"\n },\n \"tasks\" : {\n \"r1A2WoRbTwKZ516z6NEs5A:36619\" : {\n \"node\" : \"r1A2WoRbTwKZ516z6NEs5A\",\n \"id\" : 36619,\n \"type\" : \"transport\",\n \"action\" : \"indices:data/write/delete/byquery\",\n \"status\" : { \n \"total\" : 6154,\n \"updated\" : 0,\n \"created\" : 0,\n \"deleted\" : 3500,\n \"batches\" : 36,\n \"version_conflicts\" : 0,\n \"noops\" : 0,\n \"retries\": 0,\n \"throttled_millis\": 0\n },\n \"description\" : \"\"\n }\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "tasks.get" }, "specLocation": "tasks/get/GetTaskResponse.ts#L24-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get all tasks.\nGet information about the tasks currently running on one or more nodes in the cluster.\n\nWARNING: The task management API is new and should still be considered a beta feature.\nThe API may change in ways that are not backwards compatible.\n\n**Identifying running tasks**\n\nThe `X-Opaque-Id header`, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information.\nThis enables you to track certain calls or associate certain tasks with the client that started them.\nFor example:\n\n```\ncurl -i -H \"X-Opaque-Id: 123456\" \"http://localhost:9200/_tasks?group_by=parents\"\n```\n\nThe API returns the following result:\n\n```\nHTTP/1.1 200 OK\nX-Opaque-Id: 123456\ncontent-type: application/json; charset=UTF-8\ncontent-length: 831\n\n{\n \"tasks\" : {\n \"u5lcZHqcQhu-rUoFaqDphA:45\" : {\n \"node\" : \"u5lcZHqcQhu-rUoFaqDphA\",\n \"id\" : 45,\n \"type\" : \"transport\",\n \"action\" : \"cluster:monitor/tasks/lists\",\n \"start_time_in_millis\" : 1513823752749,\n \"running_time_in_nanos\" : 293139,\n \"cancellable\" : false,\n \"headers\" : {\n \"X-Opaque-Id\" : \"123456\"\n },\n \"children\" : [\n {\n \"node\" : \"u5lcZHqcQhu-rUoFaqDphA\",\n \"id\" : 46,\n \"type\" : \"direct\",\n \"action\" : \"cluster:monitor/tasks/lists[n]\",\n \"start_time_in_millis\" : 1513823752750,\n \"running_time_in_nanos\" : 92133,\n \"cancellable\" : false,\n \"parent_task_id\" : \"u5lcZHqcQhu-rUoFaqDphA:45\",\n \"headers\" : {\n \"X-Opaque-Id\" : \"123456\"\n }\n }\n ]\n }\n }\n }\n```\nIn this example, `X-Opaque-Id: 123456` is the ID as a part of the response header.\nThe `X-Opaque-Id` in the task `headers` is the ID for the task that was initiated by the REST request.\nThe `X-Opaque-Id` in the children `headers` is the child task of the task that was initiated by the REST request.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "tasks.list" }, "path": [], "query": [ { "description": "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.", "name": "actions", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "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.", "name": "detailed", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "A key that is used to group tasks in the response.\nThe task lists can be grouped either by nodes or by parent tasks.", "name": "group_by", "required": false, "type": { "kind": "instance_of", "type": { "name": "GroupBy", "namespace": "tasks._types" } } }, { "description": "A comma-separated list of node IDs or names that is used to limit the returned information.", "name": "nodes", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeIds", "namespace": "_types" } } }, { "description": "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.", "name": "parent_task_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "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.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "If `true`, the request blocks until the operation is complete.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "tasks/list/ListTasksRequest.ts#L25-L138" }, { "kind": "response", "body": { "kind": "value", "codegenName": "task_list", "value": { "kind": "instance_of", "type": { "name": "TaskListResponseBase", "namespace": "tasks._types" } } }, "examples": { "ListTasksResponseExample1": { "description": "A successful response from `GET _tasks?actions=*search&detailed` The `detailed` parameter affects the `description` field, which contains human readable text that identifies the particular request that the task is performing. For example, it helps identify the search request being performed by a search task.\n", "value": "{\n \"nodes\" : {\n \"oTUltX4IQMOUUVeiohTt8A\" : {\n \"name\" : \"H5dfFeA\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"tasks\" : {\n \"oTUltX4IQMOUUVeiohTt8A:464\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 464,\n \"type\" : \"transport\",\n \"action\" : \"indices:data/read/search\",\n \"description\" : \"indices[test], types[test], search_type[QUERY_THEN_FETCH], source[{\\\"query\\\":...}]\",\n \"start_time_in_millis\" : 1483478610008,\n \"running_time_in_nanos\" : 13991383,\n \"cancellable\" : true,\n \"cancelled\" : false\n }\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "tasks.list" }, "specLocation": "tasks/list/ListTasksResponse.ts#L22-L25" }, { "kind": "enum", "members": [ { "name": "disabled" }, { "name": "v1" } ], "name": { "name": "EcsCompatibilityType", "namespace": "text_structure._types" }, "specLocation": "text_structure/_types/Structure.ts#L40-L43" }, { "kind": "interface", "name": { "name": "FieldStat", "namespace": "text_structure._types" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "cardinality", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "top_hits", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TopHit", "namespace": "text_structure._types" } } } }, { "name": "mean_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "median_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "max_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "min_value", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "earliest", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "latest", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "text_structure/_types/Structure.ts#L23-L33" }, { "kind": "enum", "members": [ { "name": "delimited" }, { "name": "ndjson" }, { "name": "semi_structured_text" }, { "name": "xml" } ], "name": { "name": "FormatType", "namespace": "text_structure._types" }, "specLocation": "text_structure/_types/Structure.ts#L45-L50" }, { "kind": "interface", "name": { "name": "TopHit", "namespace": "text_structure._types" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "value", "required": true, "type": { "kind": "user_defined_value" } } ], "specLocation": "text_structure/_types/Structure.ts#L35-L38" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Find the structure of a text field.\nFind the structure of a text field in an Elasticsearch index.\n\nThis API provides a starting point for extracting further information from log messages already ingested into Elasticsearch.\nFor example, if you have ingested data into a very simple index that has just `@timestamp` and message fields, you can use this API to see what common structure exists in the message field.\n\nThe response from the API contains:\n\n* Sample messages.\n* Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.\n* Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.\n* Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.\n\nAll this information can be calculated by the structure finder with no guidance.\nHowever, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.\n\nIf the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response.\nIt helps determine why the returned structure was chosen.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "text_structure.find_field_structure" }, "path": [], "query": [ { "description": "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.", "name": "column_names", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of documents to include in the structural analysis.\nThe minimum value is 2.", "name": "documents_to_sample", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "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.", "name": "ecs_compatibility", "required": false, "serverDefault": "disabled", "type": { "kind": "instance_of", "type": { "name": "EcsCompatibilityType", "namespace": "text_structure._types" } } }, { "description": "If `true`, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The field that should be analyzed.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "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.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "FormatType", "namespace": "text_structure._types" } } }, { "description": "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.", "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "description": "The name of the index that contains the analyzed field.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "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.", "name": "quote", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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`.", "name": "should_trim_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "timeout", "required": false, "serverDefault": "25s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "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.", "name": "timestamp_format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "text_structure/find_field_structure/FindFieldStructureRequest.ts#L26-L184" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "charset", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ecs_compatibility", "required": false, "type": { "kind": "instance_of", "type": { "name": "EcsCompatibilityType", "namespace": "text_structure._types" } } }, { "name": "field_stats", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldStat", "namespace": "text_structure._types" } } } }, { "name": "format", "required": true, "type": { "kind": "instance_of", "type": { "name": "FormatType", "namespace": "text_structure._types" } } }, { "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "name": "java_timestamp_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "joda_timestamp_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "ingest_pipeline", "required": true, "type": { "kind": "instance_of", "type": { "name": "PipelineConfig", "namespace": "ingest._types" } } }, { "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "multiline_start_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "need_client_timezone", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "num_lines_analyzed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "num_messages_analyzed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sample_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ] }, "examples": { "FindFieldStructureResponseExample1": { "description": "A successful response from `GET _text_structure/find_field_structure?index=test-logs&field=message`.", "value": "{\n \"num_lines_analyzed\" : 22,\n \"num_messages_analyzed\" : 22,\n \"sample_start\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\\n[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\\n\",\n \"charset\" : \"UTF-8\",\n \"format\" : \"semi_structured_text\",\n \"multiline_start_pattern\" : \"^\\\\[\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}[T ]\\\\d{2}:\\\\d{2}\",\n \"grok_pattern\" : \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\",\n \"ecs_compatibility\" : \"disabled\",\n \"timestamp_field\" : \"timestamp\",\n \"joda_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"java_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"need_client_timezone\" : true,\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n },\n \"loglevel\" : {\n \"type\" : \"keyword\"\n },\n \"message\" : {\n \"type\" : \"text\"\n }\n }\n },\n \"ingest_pipeline\" : {\n \"description\" : \"Ingest pipeline created by text structure finder\",\n \"processors\" : [\n {\n \"grok\" : {\n \"field\" : \"message\",\n \"patterns\" : [\n \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\"\n ],\n \"ecs_compatibility\" : \"disabled\"\n }\n },\n {\n \"date\" : {\n \"field\" : \"timestamp\",\n \"timezone\" : \"{{ event.timezone }}\",\n \"formats\" : [\n \"ISO8601\"\n ]\n }\n },\n {\n \"remove\" : {\n \"field\" : \"timestamp\"\n }\n }\n ]\n },\n \"field_stats\" : {\n \"loglevel\" : {\n \"count\" : 22,\n \"cardinality\" : 1,\n \"top_hits\" : [\n {\n \"value\" : \"INFO\",\n \"count\" : 22\n }\n ]\n },\n \"message\" : {\n \"count\" : 22,\n \"cardinality\" : 22,\n \"top_hits\" : [\n {\n \"value\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\",\n \"count\" : 1\n }\n ]\n },\n \"timestamp\" : {\n \"count\" : 22,\n \"cardinality\" : 14,\n \"earliest\" : \"2024-03-05T10:52:36,256\",\n \"latest\" : \"2024-03-05T10:52:49,199\",\n \"top_hits\" : [\n {\n \"value\" : \"2024-03-05T10:52:41,044\",\n \"count\" : 6\n },\n {\n \"value\" : \"2024-03-05T10:52:41,043\",\n \"count\" : 3\n },\n {\n \"value\" : \"2024-03-05T10:52:41,059\",\n \"count\" : 2\n },\n {\n \"value\" : \"2024-03-05T10:52:36,256\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,038\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,042\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:43,291\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:46,098\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,227\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,259\",\n \"count\" : 1\n }\n ]\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "text_structure.find_field_structure" }, "specLocation": "text_structure/find_field_structure/FindFieldStructureResponse.ts#L31-L49" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The list of messages you want to analyze.", "name": "messages", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Find the structure of text messages.\nFind the structure of a list of text messages.\nThe messages must contain data that is suitable to be ingested into Elasticsearch.\n\nThis API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality.\nUse this API rather than the find text structure API if your input text has already been split up into separate messages by some other process.\n\nThe response from the API contains:\n\n* Sample messages.\n* Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.\n* Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.\nAppropriate mappings for an Elasticsearch index, which you could use to ingest the text.\n\nAll this information can be calculated by the structure finder with no guidance.\nHowever, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.\n\nIf the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response.\nIt helps determine why the returned structure was chosen.", "examples": { "FindMessageStructureRequestExample1": { "description": "Run `POST _text_structure/find_message_structure` to analyze Elasticsearch log files.\n", "value": "{\n \"messages\": [\n \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\",\n \"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\",\n \"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\",\n \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\",\n \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\",\n \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-monitoring]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-ent-search]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\",\n \"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-expression]\",\n \"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-eql]\",\n \"[2024-03-05T10:52:43,291][INFO ][o.e.e.NodeEnvironment ] [laptop] heap size [16gb], compressed ordinary object pointers [true]\",\n \"[2024-03-05T10:52:46,098][INFO ][o.e.x.s.Security ] [laptop] Security is enabled\",\n \"[2024-03-05T10:52:47,227][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] Profiling is enabled\",\n \"[2024-03-05T10:52:47,259][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] profiling index templates will not be installed or reinstalled\",\n \"[2024-03-05T10:52:47,755][INFO ][o.e.i.r.RecoverySettings ] [laptop] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]\",\n \"[2024-03-05T10:52:47,787][INFO ][o.e.d.DiscoveryModule ] [laptop] using discovery type [multi-node] and seed hosts providers [settings]\",\n \"[2024-03-05T10:52:49,188][INFO ][o.e.n.Node ] [laptop] initialized\",\n \"[2024-03-05T10:52:49,199][INFO ][o.e.n.Node ] [laptop] starting ...\"\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "text_structure.find_message_structure" }, "path": [], "query": [ { "description": "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.", "name": "column_names", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "ecs_compatibility", "required": false, "serverDefault": "disabled", "type": { "kind": "instance_of", "type": { "name": "EcsCompatibilityType", "namespace": "text_structure._types" } } }, { "description": "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.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "FormatType", "namespace": "text_structure._types" } } }, { "description": "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.", "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "description": "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.", "name": "quote", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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`.", "name": "should_trim_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "timeout", "required": false, "serverDefault": "25s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "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.", "name": "timestamp_format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "charset", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ecs_compatibility", "required": false, "type": { "kind": "instance_of", "type": { "name": "EcsCompatibilityType", "namespace": "text_structure._types" } } }, { "name": "field_stats", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldStat", "namespace": "text_structure._types" } } } }, { "name": "format", "required": true, "type": { "kind": "instance_of", "type": { "name": "FormatType", "namespace": "text_structure._types" } } }, { "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "name": "java_timestamp_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "joda_timestamp_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "ingest_pipeline", "required": true, "type": { "kind": "instance_of", "type": { "name": "PipelineConfig", "namespace": "ingest._types" } } }, { "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "multiline_start_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "need_client_timezone", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "num_lines_analyzed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "num_messages_analyzed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sample_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ] }, "examples": { "FindMessageStructureResponseExample1": { "description": "A successful response from `POST _text_structure/find_message_structure`.", "value": "{\n \"num_lines_analyzed\" : 22,\n \"num_messages_analyzed\" : 22,\n \"sample_start\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\\n[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\\n\",\n \"charset\" : \"UTF-8\",\n \"format\" : \"semi_structured_text\",\n \"multiline_start_pattern\" : \"^\\\\[\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}[T ]\\\\d{2}:\\\\d{2}\",\n \"grok_pattern\" : \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\",\n \"ecs_compatibility\" : \"disabled\",\n \"timestamp_field\" : \"timestamp\",\n \"joda_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"java_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"need_client_timezone\" : true,\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n },\n \"loglevel\" : {\n \"type\" : \"keyword\"\n },\n \"message\" : {\n \"type\" : \"text\"\n }\n }\n },\n \"ingest_pipeline\" : {\n \"description\" : \"Ingest pipeline created by text structure finder\",\n \"processors\" : [\n {\n \"grok\" : {\n \"field\" : \"message\",\n \"patterns\" : [\n \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\"\n ],\n \"ecs_compatibility\" : \"disabled\"\n }\n },\n {\n \"date\" : {\n \"field\" : \"timestamp\",\n \"timezone\" : \"{{ event.timezone }}\",\n \"formats\" : [\n \"ISO8601\"\n ]\n }\n },\n {\n \"remove\" : {\n \"field\" : \"timestamp\"\n }\n }\n ]\n },\n \"field_stats\" : {\n \"loglevel\" : {\n \"count\" : 22,\n \"cardinality\" : 1,\n \"top_hits\" : [\n {\n \"value\" : \"INFO\",\n \"count\" : 22\n }\n ]\n },\n \"message\" : {\n \"count\" : 22,\n \"cardinality\" : 22,\n \"top_hits\" : [\n {\n \"value\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\",\n \"count\" : 1\n }\n ]\n },\n \"timestamp\" : {\n \"count\" : 22,\n \"cardinality\" : 14,\n \"earliest\" : \"2024-03-05T10:52:36,256\",\n \"latest\" : \"2024-03-05T10:52:49,199\",\n \"top_hits\" : [\n {\n \"value\" : \"2024-03-05T10:52:41,044\",\n \"count\" : 6\n },\n {\n \"value\" : \"2024-03-05T10:52:41,043\",\n \"count\" : 3\n },\n {\n \"value\" : \"2024-03-05T10:52:41,059\",\n \"count\" : 2\n },\n {\n \"value\" : \"2024-03-05T10:52:36,256\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,038\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,042\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:43,291\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:46,098\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,227\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,259\",\n \"count\" : 1\n }\n ]\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "text_structure.find_message_structure" }, "specLocation": "text_structure/find_message_structure/FindMessageStructureResponse.ts#L31-L49" }, { "kind": "request", "body": { "kind": "value", "codegenName": "text_files", "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TJsonDocument", "namespace": "text_structure.find_structure.Request" } } } }, "description": "Find the structure of a text file.\nThe text file must contain data that is suitable to be ingested into Elasticsearch.\n\nThis API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality.\nUnlike other Elasticsearch endpoints, the data that is posted to this endpoint does not need to be UTF-8 encoded and in JSON format.\nIt must, however, be text; binary text formats are not currently supported.\nThe size is limited to the Elasticsearch HTTP receive buffer size, which defaults to 100 Mb.\n\nThe response from the API contains:\n\n* A couple of messages from the beginning of the text.\n* Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields.\n* Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text.\n* Appropriate mappings for an Elasticsearch index, which you could use to ingest the text.\n\nAll this information can be calculated by the structure finder with no guidance.\nHowever, you can optionally override some of the decisions about the text structure by specifying one or more query parameters.", "examples": { "FindStructureRequestExample1": { "description": "Run `POST _text_structure/find_structure` to analyze newline-delimited JSON text.", "value": "{\"name\": \"Leviathan Wakes\", \"author\": \"James S.A. Corey\", \"release_date\": \"2011-06-02\", \"page_count\": 561}\n{\"name\": \"Hyperion\", \"author\": \"Dan Simmons\", \"release_date\": \"1989-05-26\", \"page_count\": 482}\n{\"name\": \"Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1965-06-01\", \"page_count\": 604}\n{\"name\": \"Dune Messiah\", \"author\": \"Frank Herbert\", \"release_date\": \"1969-10-15\", \"page_count\": 331}\n{\"name\": \"Children of Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1976-04-21\", \"page_count\": 408}\n{\"name\": \"God Emperor of Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1981-05-28\", \"page_count\": 454}\n{\"name\": \"Consider Phlebas\", \"author\": \"Iain M. Banks\", \"release_date\": \"1987-04-23\", \"page_count\": 471}\n{\"name\": \"Pandora's Star\", \"author\": \"Peter F. Hamilton\", \"release_date\": \"2004-03-02\", \"page_count\": 768}\n{\"name\": \"Revelation Space\", \"author\": \"Alastair Reynolds\", \"release_date\": \"2000-03-15\", \"page_count\": 585}\n{\"name\": \"A Fire Upon the Deep\", \"author\": \"Vernor Vinge\", \"release_date\": \"1992-06-01\", \"page_count\": 613}\n{\"name\": \"Ender's Game\", \"author\": \"Orson Scott Card\", \"release_date\": \"1985-06-01\", \"page_count\": 324}\n{\"name\": \"1984\", \"author\": \"George Orwell\", \"release_date\": \"1985-06-01\", \"page_count\": 328}\n{\"name\": \"Fahrenheit 451\", \"author\": \"Ray Bradbury\", \"release_date\": \"1953-10-15\", \"page_count\": 227}\n{\"name\": \"Brave New World\", \"author\": \"Aldous Huxley\", \"release_date\": \"1932-06-01\", \"page_count\": 268}\n{\"name\": \"Foundation\", \"author\": \"Isaac Asimov\", \"release_date\": \"1951-06-01\", \"page_count\": 224}\n{\"name\": \"The Giver\", \"author\": \"Lois Lowry\", \"release_date\": \"1993-04-26\", \"page_count\": 208}\n{\"name\": \"Slaughterhouse-Five\", \"author\": \"Kurt Vonnegut\", \"release_date\": \"1969-06-01\", \"page_count\": 275}\n{\"name\": \"The Hitchhiker's Guide to the Galaxy\", \"author\": \"Douglas Adams\", \"release_date\": \"1979-10-12\", \"page_count\": 180}\n{\"name\": \"Snow Crash\", \"author\": \"Neal Stephenson\", \"release_date\": \"1992-06-01\", \"page_count\": 470}\n{\"name\": \"Neuromancer\", \"author\": \"William Gibson\", \"release_date\": \"1984-07-01\", \"page_count\": 271}\n{\"name\": \"The Handmaid's Tale\", \"author\": \"Margaret Atwood\", \"release_date\": \"1985-06-01\", \"page_count\": 311}\n{\"name\": \"Starship Troopers\", \"author\": \"Robert A. Heinlein\", \"release_date\": \"1959-12-01\", \"page_count\": 335}\n{\"name\": \"The Left Hand of Darkness\", \"author\": \"Ursula K. Le Guin\", \"release_date\": \"1969-06-01\", \"page_count\": 304}\n{\"name\": \"The Moon is a Harsh Mistress\", \"author\": \"Robert A. Heinlein\", \"release_date\": \"1966-04-01\", \"page_count\": 288}" } }, "generics": [ { "name": "TJsonDocument", "namespace": "text_structure.find_structure.Request" } ], "name": { "name": "Request", "namespace": "text_structure.find_structure" }, "path": [], "query": [ { "description": "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.", "name": "charset", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "column_names", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "ecs_compatibility", "required": false, "serverDefault": "disabled", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "description": "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.", "name": "has_header_row", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "line_merge_size_limit", "required": false, "serverDefault": 10000, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "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.", "name": "lines_to_sample", "required": false, "serverDefault": 1000, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "description": "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.", "name": "quote", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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`.", "name": "should_trim_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "timeout", "required": false, "serverDefault": "25s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "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.", "name": "timestamp_format", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "text_structure/find_structure/FindStructureRequest.ts#L24-L207" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The character encoding used to parse the text.", "name": "charset", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "has_header_row", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "For UTF character encodings, it indicates whether the text begins with a byte order marker.", "name": "has_byte_order_marker", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Valid values include `ndjson`, `xml`, `delimited`, and `semi_structured_text`.", "name": "format", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The most common values of each field, plus basic numeric statistics for the numeric `page_count` field.\nThis information may provide clues that the data needs to be cleaned or transformed prior to use by other Elastic Stack functionality.", "name": "field_stats", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "FieldStat", "namespace": "text_structure._types" } } } }, { "description": "The first two messages in the text verbatim.\nThis may help diagnose parse errors or accidental uploads of the wrong text.", "name": "sample_start", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The number of distinct messages the lines contained.\nFor NDJSON, this value is the same as `num_lines_analyzed`.\nFor other text formats, messages can span several lines.", "name": "num_messages_analyzed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Some suitable mappings for an index into which the data could be ingested.", "name": "mappings", "required": true, "type": { "kind": "instance_of", "type": { "name": "TypeMapping", "namespace": "_types.mapping" } } }, { "name": "quote", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "delimiter", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "If a timestamp format is detected that does not include a timezone, `need_client_timezone` is `true`.\nThe server that parses the text must therefore be told the correct timezone by the client.", "name": "need_client_timezone", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "The number of lines of the text that were analyzed.", "name": "num_lines_analyzed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "If `format` is `delimited`, the `column_names` field lists the column names in the order they appear in the sample.", "name": "column_names", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "explanation", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "grok_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "name": "multiline_start_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "exclude_lines_pattern", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The Java time formats recognized in the time fields.\nElasticsearch mappings and ingest pipelines use this format.", "name": "java_timestamp_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "Information that is used to tell Logstash how to parse timestamps.", "name": "joda_timestamp_formats", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "description": "The field considered most likely to be the primary timestamp of each document.", "name": "timestamp_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "should_trim_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "ingest_pipeline", "required": true, "type": { "kind": "instance_of", "type": { "name": "PipelineConfig", "namespace": "ingest._types" } } } ] }, "examples": { "FindStructureResponseExample1": { "description": "A successful response from `POST _text_structure/find_structure`.", "value": "{\n \"num_lines_analyzed\" : 24,\n \"num_messages_analyzed\" : 24,\n \"sample_start\" : \"{\\\"name\\\": \\\"Leviathan Wakes\\\", \\\"author\\\": \\\"James S.A. Corey\\\", \\\"release_date\\\": \\\"2011-06-02\\\", \\\"page_count\\\": 561}\\n{\\\"name\\\": \\\"Hyperion\\\", \\\"author\\\": \\\"Dan Simmons\\\", \\\"release_date\\\": \\\"1989-05-26\\\", \\\"page_count\\\": 482}\\n\",\n \"charset\" : \"UTF-8\",\n \"has_byte_order_marker\" : false,\n \"format\" : \"ndjson\",\n \"ecs_compatibility\" : \"disabled\",\n \"timestamp_field\" : \"release_date\",\n \"joda_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"java_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"need_client_timezone\" : true,\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n },\n \"author\" : {\n \"type\" : \"keyword\"\n },\n \"name\" : {\n \"type\" : \"keyword\"\n },\n \"page_count\" : {\n \"type\" : \"long\"\n },\n \"release_date\" : {\n \"type\" : \"date\",\n \"format\" : \"iso8601\"\n }\n }\n },\n \"ingest_pipeline\" : {\n \"description\" : \"Ingest pipeline created by text structure finder\",\n \"processors\" : [\n {\n \"date\" : {\n \"field\" : \"release_date\",\n \"timezone\" : \"{{ event.timezone }}\",\n \"formats\" : [\n \"ISO8601\"\n ]\n }\n }\n ]\n },\n \"field_stats\" : {\n \"author\" : {\n \"count\" : 24,\n \"cardinality\" : 20,\n \"top_hits\" : [\n {\n \"value\" : \"Frank Herbert\",\n \"count\" : 4\n },\n {\n \"value\" : \"Robert A. Heinlein\",\n \"count\" : 2\n },\n {\n \"value\" : \"Alastair Reynolds\",\n \"count\" : 1\n },\n {\n \"value\" : \"Aldous Huxley\",\n \"count\" : 1\n },\n {\n \"value\" : \"Dan Simmons\",\n \"count\" : 1\n },\n {\n \"value\" : \"Douglas Adams\",\n \"count\" : 1\n },\n {\n \"value\" : \"George Orwell\",\n \"count\" : 1\n },\n {\n \"value\" : \"Iain M. Banks\",\n \"count\" : 1\n },\n {\n \"value\" : \"Isaac Asimov\",\n \"count\" : 1\n },\n {\n \"value\" : \"James S.A. Corey\",\n \"count\" : 1\n }\n ]\n },\n \"name\" : {\n \"count\" : 24,\n \"cardinality\" : 24,\n \"top_hits\" : [\n {\n \"value\" : \"1984\",\n \"count\" : 1\n },\n {\n \"value\" : \"A Fire Upon the Deep\",\n \"count\" : 1\n },\n {\n \"value\" : \"Brave New World\",\n \"count\" : 1\n },\n {\n \"value\" : \"Children of Dune\",\n \"count\" : 1\n },\n {\n \"value\" : \"Consider Phlebas\",\n \"count\" : 1\n },\n {\n \"value\" : \"Dune\",\n \"count\" : 1\n },\n {\n \"value\" : \"Dune Messiah\",\n \"count\" : 1\n },\n {\n \"value\" : \"Ender's Game\",\n \"count\" : 1\n },\n {\n \"value\" : \"Fahrenheit 451\",\n \"count\" : 1\n },\n {\n \"value\" : \"Foundation\",\n \"count\" : 1\n }\n ]\n },\n \"page_count\" : {\n \"count\" : 24,\n \"cardinality\" : 24,\n \"min_value\" : 180,\n \"max_value\" : 768,\n \"mean_value\" : 387.0833333333333,\n \"median_value\" : 329.5,\n \"top_hits\" : [\n {\n \"value\" : 180,\n \"count\" : 1\n },\n {\n \"value\" : 208,\n \"count\" : 1\n },\n {\n \"value\" : 224,\n \"count\" : 1\n },\n {\n \"value\" : 227,\n \"count\" : 1\n },\n {\n \"value\" : 268,\n \"count\" : 1\n },\n {\n \"value\" : 271,\n \"count\" : 1\n },\n {\n \"value\" : 275,\n \"count\" : 1\n },\n {\n \"value\" : 288,\n \"count\" : 1\n },\n {\n \"value\" : 304,\n \"count\" : 1\n },\n {\n \"value\" : 311,\n \"count\" : 1\n }\n ]\n },\n \"release_date\" : {\n \"count\" : 24,\n \"cardinality\" : 20,\n \"earliest\" : \"1932-06-01\",\n \"latest\" : \"2011-06-02\",\n \"top_hits\" : [\n {\n \"value\" : \"1985-06-01\",\n \"count\" : 3\n },\n {\n \"value\" : \"1969-06-01\",\n \"count\" : 2\n },\n {\n \"value\" : \"1992-06-01\",\n \"count\" : 2\n },\n {\n \"value\" : \"1932-06-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1951-06-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1953-10-15\",\n \"count\" : 1\n },\n {\n \"value\" : \"1959-12-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1965-06-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1966-04-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1969-10-15\",\n \"count\" : 1\n }\n ]\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "text_structure.find_structure" }, "specLocation": "text_structure/find_structure/FindStructureResponse.ts#L27-L97" }, { "kind": "interface", "name": { "name": "MatchedField", "namespace": "text_structure.test_grok_pattern" }, "properties": [ { "name": "match", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "offset", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "length", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "text_structure/test_grok_pattern/types.ts#L23-L27" }, { "kind": "interface", "name": { "name": "MatchedText", "namespace": "text_structure.test_grok_pattern" }, "properties": [ { "name": "matched", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fields", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MatchedField", "namespace": "text_structure.test_grok_pattern" } } } } } ], "specLocation": "text_structure/test_grok_pattern/types.ts#L29-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The Grok pattern to run on the text.", "name": "grok_pattern", "required": true, "type": { "kind": "instance_of", "type": { "name": "GrokPattern", "namespace": "_types" } } }, { "description": "The lines of text to run the Grok pattern on.", "name": "text", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ] }, "description": "Test a Grok pattern.\nTest a Grok pattern on one or more lines of text.\nThe API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings.", "examples": { "TestGrokPatternRequestExample1": { "description": "Run `GET _text_structure/test_grok_pattern` to test a Grok pattern.", "value": "{\n \"grok_pattern\": \"Hello %{WORD:first_name} %{WORD:last_name}\",\n \"text\": [\n \"Hello John Doe\",\n \"this does not match\"\n ]\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "text_structure.test_grok_pattern" }, "path": [], "query": [ { "description": "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`.", "name": "ecs_compatibility", "required": false, "serverDefault": "disabled", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "matches", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "MatchedText", "namespace": "text_structure.test_grok_pattern" } } } } ] }, "examples": { "TestGrokPatternResponseExample1": { "description": "A successful response from `GET _text_structure/test_grok_pattern`.", "value": "{\n \"matches\": [\n {\n \"matched\": true,\n \"fields\": {\n \"first_name\": [\n {\n \"match\": \"John\",\n \"offset\": 6,\n \"length\": 4\n }\n ],\n \"last_name\": [\n {\n \"match\": \"Doe\",\n \"offset\": 11,\n \"length\": 3\n }\n ]\n }\n },\n {\n \"matched\": false\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "text_structure.test_grok_pattern" }, "specLocation": "text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26" }, { "kind": "interface", "name": { "name": "Destination", "namespace": "transform._types" }, "properties": [ { "description": "The destination index for the transform. The mappings of the destination index are deduced based on the source\nfields when possible. If alternate mappings are required, use the create index API prior to starting the\ntransform.", "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "description": "The unique identifier for an ingest pipeline.", "name": "pipeline", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "transform/_types/Transform.ts#L34-L45" }, { "kind": "interface", "name": { "name": "Latest", "namespace": "transform._types" }, "properties": [ { "description": "Specifies the date field that is used to identify the latest documents.", "name": "sort", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies an array of one or more fields that are used to group the data.", "name": "unique_key", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } } ], "specLocation": "transform/_types/Transform.ts#L47-L52" }, { "kind": "interface", "name": { "name": "Pivot", "namespace": "transform._types" }, "properties": [ { "aliases": [ "aggs" ], "description": "Defines how to aggregate the grouped data. The following aggregations are currently supported: average, bucket\nscript, bucket selector, cardinality, filter, geo bounds, geo centroid, geo line, max, median absolute deviation,\nmin, missing, percentiles, rare terms, scripted metric, stats, sum, terms, top metrics, value count, weighted\naverage.", "name": "aggregations", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "AggregationContainer", "namespace": "_types.aggregations" } } } }, { "description": "Defines how to group the data. More than one grouping can be defined per pivot. The following groupings are\ncurrently supported: date histogram, geotile grid, histogram, terms.", "name": "group_by", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "PivotGroupByContainer", "namespace": "transform._types" } } } } ], "specLocation": "transform/_types/Transform.ts#L54-L68" }, { "kind": "interface", "name": { "name": "PivotGroupByContainer", "namespace": "transform._types" }, "properties": [ { "name": "date_histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateHistogramAggregation", "namespace": "_types.aggregations" } } }, { "name": "geotile_grid", "required": false, "type": { "kind": "instance_of", "type": { "name": "GeoTileGridAggregation", "namespace": "_types.aggregations" } } }, { "name": "histogram", "required": false, "type": { "kind": "instance_of", "type": { "name": "HistogramAggregation", "namespace": "_types.aggregations" } } }, { "name": "terms", "required": false, "type": { "kind": "instance_of", "type": { "name": "TermsAggregation", "namespace": "_types.aggregations" } } } ], "specLocation": "transform/_types/Transform.ts#L70-L78", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "RetentionPolicy", "namespace": "transform._types" }, "properties": [ { "description": "The date field that is used to calculate the age of the document.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "description": "Specifies the maximum age of a document in the destination index. Documents that are older than the configured\nvalue are removed from the destination index.", "name": "max_age", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/_types/Transform.ts#L88-L96" }, { "kind": "interface", "name": { "name": "RetentionPolicyContainer", "namespace": "transform._types" }, "properties": [ { "description": "Specifies that the transform uses a time field to set the retention policy.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetentionPolicy", "namespace": "transform._types" } } } ], "specLocation": "transform/_types/Transform.ts#L80-L86", "variants": { "kind": "container" } }, { "kind": "interface", "description": "The source of the data for the transform.", "name": { "name": "Settings", "namespace": "transform._types" }, "properties": [ { "description": "Specifies whether the transform checkpoint ranges should be optimized for performance. Such optimization can align\ncheckpoint ranges with the date histogram interval when date histogram is specified as a group source in the\ntransform config. As a result, less document updates in the destination index will be performed thus improving\noverall performance.", "name": "align_checkpoints", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines if dates in the ouput should be written as ISO formatted string or as millis since epoch. epoch_millis was\nthe default for transforms created before version 7.11. For compatible output set this value to `true`.", "name": "dates_as_epoch_millis", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies whether the transform should deduce the destination index mappings from the transform configuration.", "name": "deduce_mappings", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Specifies a limit on the number of input documents per second. This setting throttles the transform by adding a\nwait time between search requests. The default value is null, which disables throttling.", "name": "docs_per_second", "required": false, "type": { "kind": "instance_of", "type": { "name": "float", "namespace": "_types" } } }, { "description": "Defines the initial page size to use for the composite aggregation for each checkpoint. If circuit breaker\nexceptions occur, the page size is dynamically adjusted to a lower value. The minimum value is `10` and the\nmaximum is `65,536`.", "name": "max_page_search_size", "required": false, "serverDefault": 500, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.5.0" } }, "description": "If `true`, the transform runs in unattended mode. In unattended mode, the transform retries indefinitely in case\nof an error which means the transform never fails. Setting the number of retries other than infinite fails in\nvalidation.", "name": "unattended", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "transform/_types/Transform.ts#L98-L144" }, { "kind": "interface", "name": { "name": "Source", "namespace": "transform._types" }, "properties": [ { "description": "The source indices for the transform. It can be a single index, an index pattern (for example, `\"my-index-*\"\"`), an\narray of indices (for example, `[\"my-index-000001\", \"my-index-000002\"]`), or an array of index patterns (for\nexample, `[\"my-index-*\", \"my-other-index-*\"]`. For remote indices use the syntax `\"remote_name:index_name\"`. If\nany indices are in remote clusters then the master node and at least one transform node must have the `remote_cluster_client` node role.", "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "Indices", "namespace": "_types" } } }, { "description": "A query clause that retrieves a subset of data from the source index.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.12.0" } }, "description": "Definitions of search-time runtime fields that can be used by the transform. For search runtime fields all data\nnodes, including remote nodes, must be 7.12 or later.", "name": "runtime_mappings", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFields", "namespace": "_types.mapping" } } } ], "specLocation": "transform/_types/Transform.ts#L146-L165" }, { "kind": "interface", "name": { "name": "SyncContainer", "namespace": "transform._types" }, "properties": [ { "description": "Specifies that the transform uses a time field to synchronize the source and destination indices.", "name": "time", "required": false, "type": { "kind": "instance_of", "type": { "name": "TimeSync", "namespace": "transform._types" } } } ], "specLocation": "transform/_types/Transform.ts#L169-L175", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "TimeSync", "namespace": "transform._types" }, "properties": [ { "description": "The time delay between the current time and the latest input data time.", "name": "delay", "required": false, "serverDefault": "60s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field\nthat contains the ingest timestamp. If you use a different field, you might need to set the delay such that it\naccounts for data transmission delays.", "name": "field", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "transform/_types/Transform.ts#L177-L189" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a transform.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.delete_transform" }, "path": [ { "description": "Identifier for the transform.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If this value is true, the destination index is deleted together with the transform. If false, the destination\nindex will not be deleted", "name": "delete_dest_index", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/delete_transform/DeleteTransformRequest.ts#L24-L64" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "DeleteTransformResponseExample1": { "description": "A successful response when the transform is deleted.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "transform.delete_transform" }, "specLocation": "transform/delete_transform/DeleteTransformResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get transforms.\nGet configuration information for transforms.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.get_transform" }, "path": [ { "description": "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``.", "name": "transform_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of transforms.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "Specifies the maximum number of transforms to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "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.", "name": "exclude_generated", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "transform/get_transform/GetTransformRequest.ts#L24-L84" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "transforms", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransformSummary", "namespace": "transform.get_transform" } } } } ] }, "examples": { "GetTransformResponseExample1": { "description": "A successful response that contains configuration information for a transform.", "type": "response", "value": "{\n \"count\": 1,\n \"transforms\": [\n {\n \"id\": \"ecommerce_transform1\",\n \"authorization\": {\n \"roles\": [\n \"superuser\"\n ]\n },\n \"version\": \"8.4.0\",\n \"create_time\": 1656023416565,\n \"source\": {\n \"index\": [\n \"kibana_sample_data_ecommerce\"\n ],\n \"query\": {\n \"term\": {\n \"geoip.continent_name\": {\n \"value\": \"Asia\"\n }\n }\n }\n },\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform1\",\n \"pipeline\": \"add_timestamp_pipeline\"\n },\n \"frequency\": \"5m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"60s\"\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\"\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n },\n \"description\": \"Maximum priced ecommerce data by customer_id in Asia\",\n \"settings\": {},\n \"retention_policy\": {\n \"time\": {\n \"field\": \"order_date\",\n \"max_age\": \"30d\"\n }\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "transform.get_transform" }, "specLocation": "transform/get_transform/GetTransformResponse.ts#L23-L25" }, { "kind": "interface", "name": { "name": "TransformSummary", "namespace": "transform.get_transform" }, "properties": [ { "description": "The security privileges that the transform uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the transform, this property is omitted.", "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformAuthorization", "namespace": "ml._types" } } }, { "description": "The time the transform was created.", "name": "create_time", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "create_time_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "description": "Free text description of the transform.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "The destination for the transform.", "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "Destination", "namespace": "_global.reindex" } } }, { "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "latest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Latest", "namespace": "transform._types" } } }, { "description": "The pivot method transforms the data by aggregating and grouping it.", "name": "pivot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Pivot", "namespace": "transform._types" } } }, { "name": "retention_policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetentionPolicyContainer", "namespace": "transform._types" } } }, { "description": "Defines optional transform settings.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "Settings", "namespace": "transform._types" } } }, { "description": "The source of the data for the transform.", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "Source", "namespace": "transform._types" } } }, { "description": "Defines the properties transforms require to run continuously.", "name": "sync", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncContainer", "namespace": "transform._types" } } }, { "description": "The version of Elasticsearch that existed on the node when the transform was created.", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ], "specLocation": "transform/get_transform/types.ts#L33-L62" }, { "kind": "interface", "name": { "name": "CheckpointStats", "namespace": "transform.get_transform_stats" }, "properties": [ { "name": "checkpoint", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "checkpoint_progress", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformProgress", "namespace": "transform.get_transform_stats" } } }, { "name": "timestamp", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "timestamp_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "time_upper_bound", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "time_upper_bound_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "transform/get_transform_stats/types.ts#L93-L100" }, { "kind": "interface", "name": { "name": "Checkpointing", "namespace": "transform.get_transform_stats" }, "properties": [ { "name": "changes_last_detected_at", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "changes_last_detected_at_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last", "required": true, "type": { "kind": "instance_of", "type": { "name": "CheckpointStats", "namespace": "transform.get_transform_stats" } } }, { "name": "next", "required": false, "type": { "kind": "instance_of", "type": { "name": "CheckpointStats", "namespace": "transform.get_transform_stats" } } }, { "name": "operations_behind", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "last_search_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "last_search_time_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "transform/get_transform_stats/types.ts#L102-L110" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get transform stats.\n\nGet usage information for transforms.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.get_transform_stats" }, "path": [ { "description": "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``.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Skips the specified number of transforms.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Specifies the maximum number of transforms to obtain.", "name": "size", "required": false, "serverDefault": 100, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "Controls the time to wait for the stats", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/get_transform_stats/GetTransformStatsRequest.ts#L25-L77" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "transforms", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransformStats", "namespace": "transform.get_transform_stats" } } } } ] }, "examples": { "GetTransformStatsResponseExample1": { "description": "A successful response that contains usage information for a transform.", "value": "{\n \"count\": 1,\n \"transforms\": [\n {\n \"id\": \"ecommerce-customer-transform\",\n \"state\": \"started\",\n \"node\": {\n \"id\": \"cpTIGMsVQ8Gqwqlxxxxxxx\",\n \"name\": \"my.home\",\n \"ephemeral_id\": \"5-L21nFsQxxxxxxxxxx-xx\",\n \"transport_address\": \"127.0.0.1:9300\",\n \"attributes\": {}\n },\n \"stats\": {\n \"pages_processed\": 78,\n \"documents_processed\": 6027,\n \"documents_indexed\": 68,\n \"documents_deleted\": 22,\n \"delete_time_in_ms\": 214,\n \"trigger_count\": 168,\n \"index_time_in_ms\": 412,\n \"index_total\": 20,\n \"index_failures\": 0,\n \"search_time_in_ms\": 353,\n \"search_total\": 78,\n \"search_failures\": 0,\n \"processing_time_in_ms\": 8,\n \"processing_total\": 78,\n \"exponential_avg_checkpoint_duration_ms\": 97.30637923893185,\n \"exponential_avg_documents_indexed\": 2.2064915040974062,\n \"exponential_avg_documents_processed\": 179.89419945785045\n },\n \"checkpointing\": {\n \"last\": {\n \"checkpoint\": 20,\n \"timestamp_millis\": 1585344558220,\n \"time_upper_bound_millis\": 1585344498220\n },\n \"changes_last_detected_at\": 1585344558219\n },\n \"health\": {\n \"status\": \"green\"\n }\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "transform.get_transform_stats" }, "specLocation": "transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25" }, { "kind": "interface", "name": { "name": "TransformHealthIssue", "namespace": "transform.get_transform_stats" }, "properties": [ { "description": "The type of the issue", "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "A description of the issue", "name": "issue", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Details about the issue", "name": "details", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "Number of times this issue has occurred since it started", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The timestamp this issue occurred for for the first time", "name": "first_occurrence", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "first_occurence_string", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "transform/get_transform_stats/types.ts#L51-L63" }, { "kind": "interface", "name": { "name": "TransformIndexerStats", "namespace": "transform.get_transform_stats" }, "properties": [ { "name": "delete_time_in_ms", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "documents_indexed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "documents_deleted", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "documents_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "exponential_avg_checkpoint_duration_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitFloatMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "exponential_avg_documents_indexed", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "exponential_avg_documents_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "index_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "index_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "pages_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "processing_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "processing_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "search_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "search_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "search_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "trigger_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "transform/get_transform_stats/types.ts#L73-L91" }, { "kind": "interface", "name": { "name": "TransformProgress", "namespace": "transform.get_transform_stats" }, "properties": [ { "name": "docs_indexed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "docs_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "docs_remaining", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "percent_complete", "required": false, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } }, { "name": "total_docs", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "transform/get_transform_stats/types.ts#L65-L71" }, { "kind": "interface", "name": { "name": "TransformStats", "namespace": "transform.get_transform_stats" }, "properties": [ { "name": "checkpointing", "required": true, "type": { "kind": "instance_of", "type": { "name": "Checkpointing", "namespace": "transform.get_transform_stats" } } }, { "name": "health", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformStatsHealth", "namespace": "transform.get_transform_stats" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "availability": { "stack": {} }, "name": "node", "required": false, "type": { "kind": "instance_of", "type": { "name": "NodeAttributes", "namespace": "_types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "TransformIndexerStats", "namespace": "transform.get_transform_stats" } } } ], "specLocation": "transform/get_transform_stats/types.ts#L31-L42" }, { "kind": "interface", "name": { "name": "TransformStatsHealth", "namespace": "transform.get_transform_stats" }, "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "HealthStatus", "namespace": "_types" } } }, { "description": "If a non-healthy status is returned, contains a list of issues of the transform.", "name": "issues", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TransformHealthIssue", "namespace": "transform.get_transform_stats" } } } } ], "specLocation": "transform/get_transform_stats/types.ts#L44-L49" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The destination for the transform.", "name": "dest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Destination", "namespace": "transform._types" } } }, { "description": "Free text description of the transform.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "frequency", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "pivot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Pivot", "namespace": "transform._types" } } }, { "description": "The source of the data for the transform.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "Source", "namespace": "transform._types" } } }, { "description": "Defines optional transform settings.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "Settings", "namespace": "transform._types" } } }, { "description": "Defines the properties transforms require to run continuously.", "name": "sync", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncContainer", "namespace": "transform._types" } } }, { "description": "Defines a retention policy for the transform. Data that meets the defined\ncriteria is deleted from the destination index.", "name": "retention_policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetentionPolicyContainer", "namespace": "transform._types" } } }, { "description": "The latest method transforms the data by finding the latest document for\neach unique key.", "name": "latest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Latest", "namespace": "transform._types" } } } ] }, "description": "Preview a transform.\nGenerates a preview of the results that you will get when you create a transform with the same configuration.\n\nIt returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also\ngenerates a list of mappings and settings for the destination index. These values are determined based on the field\ntypes of the source index and the transform aggregations.", "examples": { "PreviewTransformRequestExample1": { "description": "Run `POST _transform/_preview` to preview a transform that uses the pivot method.", "value": "{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\"\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\",\n \"missing_bucket\": true\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.preview_transform" }, "path": [ { "description": "Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform\nconfiguration details in the request body.", "name": "transform_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a response. If no response is received before the\ntimeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/preview_transform/PreviewTransformRequest.ts#L33-L119" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "generated_dest_index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexState", "namespace": "indices._types" } } }, { "name": "preview", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TTransform", "namespace": "transform.preview_transform.Response" } } } } ] }, "examples": { "PreviewTransformResponseExample1": { "description": "An abbreviated response from `POST _transform/_preview` that contains a preview a transform that uses the pivot method.", "value": "{\n \"preview\": [\n {\n \"max_price\": 171,\n \"customer_id\": \"10\"\n },\n {\n \"max_price\": 233,\n \"customer_id\": \"11\"\n },\n {\n \"max_price\": 200,\n \"customer_id\": \"12\"\n },\n {\n \"max_price\": 301,\n \"customer_id\": \"13\"\n },\n {\n \"max_price\": 176,\n \"customer_id\": \"14\"\n },\n {\n \"max_price\": 2250,\n \"customer_id\": \"15\"\n },\n {\n \"max_price\": 170,\n \"customer_id\": \"16\"\n },\n {\n \"max_price\": 243,\n \"customer_id\": \"17\"\n },\n {\n \"max_price\": 154,\n \"customer_id\": \"18\"\n },\n {\n \"max_price\": 393,\n \"customer_id\": \"19\"\n },\n {\n \"max_price\": 165,\n \"customer_id\": \"20\"\n },\n {\n \"max_price\": 115,\n \"customer_id\": \"21\"\n },\n {\n \"max_price\": 192,\n \"customer_id\": \"22\"\n },\n {\n \"max_price\": 169,\n \"customer_id\": \"23\"\n },\n {\n \"max_price\": 230,\n \"customer_id\": \"24\"\n },\n {\n \"max_price\": 278,\n \"customer_id\": \"25\"\n },\n {\n \"max_price\": 200,\n \"customer_id\": \"26\"\n },\n {\n \"max_price\": 344,\n \"customer_id\": \"27\"\n },\n {\n \"max_price\": 175,\n \"customer_id\": \"28\"\n },\n {\n \"max_price\": 177,\n \"customer_id\": \"29\"\n },\n {\n \"max_price\": 190,\n \"customer_id\": \"30\"\n },\n {\n \"max_price\": 190,\n \"customer_id\": \"31\"\n },\n {\n \"max_price\": 205,\n \"customer_id\": \"32\"\n },\n {\n \"max_price\": 215,\n \"customer_id\": \"33\"\n },\n {\n \"max_price\": 270,\n \"customer_id\": \"34\"\n },\n {\n \"max_price\": 184,\n \"customer_id\": \"36\"\n },\n {\n \"max_price\": 222,\n \"customer_id\": \"37\"\n },\n {\n \"max_price\": 370,\n \"customer_id\": \"38\"\n },\n {\n \"max_price\": 240,\n \"customer_id\": \"39\"\n },\n {\n \"max_price\": 230,\n \"customer_id\": \"4\"\n },\n {\n \"max_price\": 229,\n \"customer_id\": \"41\"\n },\n {\n \"max_price\": 190,\n \"customer_id\": \"42\"\n },\n {\n \"max_price\": 150,\n \"customer_id\": \"43\"\n },\n {\n \"max_price\": 175,\n \"customer_id\": \"44\"\n },\n {\n \"max_price\": 190,\n \"customer_id\": \"45\"\n },\n {\n \"max_price\": 150,\n \"customer_id\": \"46\"\n },\n {\n \"max_price\": 310,\n \"customer_id\": \"48\"\n },\n {\n \"max_price\": 223,\n \"customer_id\": \"49\"\n },\n {\n \"max_price\": 283,\n \"customer_id\": \"5\"\n },\n {\n \"max_price\": 185,\n \"customer_id\": \"50\"\n },\n {\n \"max_price\": 190,\n \"customer_id\": \"51\"\n },\n {\n \"max_price\": 333,\n \"customer_id\": \"52\"\n },\n {\n \"max_price\": 165,\n \"customer_id\": \"6\"\n },\n {\n \"max_price\": 144,\n \"customer_id\": \"7\"\n },\n {\n \"max_price\": 198,\n \"customer_id\": \"8\"\n },\n {\n \"max_price\": 210,\n \"customer_id\": \"9\"\n }\n ],\n \"generated_dest_index\": {\n \"mappings\": {\n \"_meta\": {\n \"_transform\": {\n \"transform\": \"transform-preview\",\n \"version\": {\n \"created\": \"10.0.0\"\n },\n \"creation_date_in_millis\": 1712948905889\n },\n \"created_by\": \"transform\"\n },\n \"properties\": {\n \"max_price\": {\n \"type\": \"half_float\"\n },\n \"customer_id\": {\n \"type\": \"keyword\"\n }\n }\n },\n \"settings\": {\n \"index\": {\n \"number_of_shards\": \"1\",\n \"auto_expand_replicas\": \"0-1\"\n }\n },\n \"aliases\": {}\n }\n}" } }, "generics": [ { "name": "TTransform", "namespace": "transform.preview_transform.Response" } ], "name": { "name": "Response", "namespace": "transform.preview_transform" }, "specLocation": "transform/preview_transform/PreviewTransformResponse.ts#L22-L27" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The destination for the transform.", "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "Destination", "namespace": "transform._types" } } }, { "description": "Free text description of the transform.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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`.", "name": "frequency", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The latest method transforms the data by finding the latest document for each unique key.", "name": "latest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Latest", "namespace": "transform._types" } } }, { "description": "Defines optional transform metadata.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "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.", "name": "pivot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Pivot", "namespace": "transform._types" } } }, { "description": "Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the\ndestination index.", "name": "retention_policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetentionPolicyContainer", "namespace": "transform._types" } } }, { "description": "Defines optional transform settings.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "Settings", "namespace": "transform._types" } } }, { "description": "The source of the data for the transform.", "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "Source", "namespace": "transform._types" } } }, { "description": "Defines the properties transforms require to run continuously.", "name": "sync", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncContainer", "namespace": "transform._types" } } } ] }, "description": "Create a transform.\nCreates a transform.\n\nA transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as\na data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a\nunique row per entity.\n\nYou must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If\nyou choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in\nthe pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values\nin the latest object.\n\nYou must have `create_index`, `index`, and `read` privileges on the destination index and `read` and\n`view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the\ntransform remembers which roles the user that created it had at the time of creation and uses those same roles. If\nthose roles do not have the required privileges on the source and destination indices, the transform fails when it\nattempts unauthorized operations.\n\nNOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any\n`.transform-internal*` indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do\nnot give users any privileges on `.transform-internal*` indices. If you used transforms prior to 7.5, also do not\ngive users any privileges on `.data-frame-internal*` indices.", "examples": { "PutTransformRequestExample1": { "description": "Run `PUT _transform/ecommerce_transform1` to create a transform that uses the pivot method.", "summary": "A pivot transform", "value": "{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\",\n \"query\": {\n \"term\": {\n \"geoip.continent_name\": {\n \"value\": \"Asia\"\n }\n }\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\",\n \"missing_bucket\": true\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n },\n \"description\": \"Maximum priced ecommerce data by customer_id in Asia\",\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform1\",\n \"pipeline\": \"add_timestamp_pipeline\"\n },\n \"frequency\": \"5m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"60s\"\n }\n },\n \"retention_policy\": {\n \"time\": {\n \"field\": \"order_date\",\n \"max_age\": \"30d\"\n }\n }\n}" }, "PutTransformRequestExample2": { "description": "Run `PUT _transform/ecommerce_transform2` to create a transform that uses the latest method.", "summary": "A latest transform", "value": "{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\"\n },\n \"latest\": {\n \"unique_key\": [\n \"customer_id\"\n ],\n \"sort\": \"order_date\"\n },\n \"description\": \"Latest order for each customer\",\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform2\"\n },\n \"frequency\": \"5m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"60s\"\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.put_transform" }, "path": [ { "description": "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.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "defer_validation", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/put_transform/PutTransformRequest.ts#L33-L130" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "PutTransformResponseExample1": { "description": "A successful response when creating a transform.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "transform.put_transform" }, "specLocation": "transform/put_transform/PutTransformResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Reset a transform.\n\nBefore you can reset it, you must stop it; alternatively, use the `force` query parameter.\nIf the destination index was created by the transform, it is deleted.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.reset_transform" }, "path": [ { "description": "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.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L62" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ResetTransformResponseExample1": { "description": "A successful response when the transform is reset.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "transform.reset_transform" }, "specLocation": "transform/reset_transform/ResetTransformResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Schedule a transform to start now.\n\nInstantly run a transform to process data.\nIf you run this API, the transform will process the new data instantly,\nwithout waiting for the configured frequency interval. After the API is called,\nthe transform will be processed again at `now + frequency` unless the API\nis called again in the meantime.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.schedule_now_transform" }, "path": [ { "description": "Identifier for the transform.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Controls the time to wait for the scheduling to take place", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/schedule_now_transform/ScheduleNowTransformRequest.ts#L23-L57" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "ScheduleNowTransformResponseExample1": { "description": "A successful response when the transform is scheduled to run now.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "transform.schedule_now_transform" }, "specLocation": "transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start a transform.\n\nWhen you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is\nset to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping\ndefinitions for the destination index from the source indices and the transform aggregations. If fields in the\ndestination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations),\nthe transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce\nmapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you\nstart the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings\nin a pivot transform.\n\nWhen the transform starts, a series of validations occur to ensure its success. If you deferred validation when you\ncreated the transform, they occur when you start the transform—​with the exception of privilege checks. When\nElasticsearch security features are enabled, the transform remembers which roles the user that created it had at the\ntime of creation and uses those same roles. If those roles do not have the required privileges on the source and\ndestination indices, the transform fails when it attempts unauthorized operations.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.start_transform" }, "path": [ { "description": "Identifier for the transform.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms.", "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "transform/start_transform/StartTransformRequest.ts#L24-L72" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "StartTransformResponseExample1": { "description": "A successful response when a transform starts.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "transform.start_transform" }, "specLocation": "transform/start_transform/StartTransformResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop transforms.\nStops one or more transforms.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.stop_transform" }, "path": [ { "description": "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.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "allow_no_match", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If it is true, the API forcefully stops the transforms.", "name": "force", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "wait_for_checkpoint", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "wait_for_completion", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "transform/stop_transform/StopTransformRequest.ts#L24-L84" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "StopTransformResponseExample1": { "description": "A successful response when a transform stops.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "transform.stop_transform" }, "specLocation": "transform/stop_transform/StopTransformResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The destination for the transform.", "name": "dest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Destination", "namespace": "transform._types" } } }, { "description": "Free text description of the transform.", "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "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.", "name": "frequency", "required": false, "serverDefault": "1m", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "Defines optional transform metadata.", "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "The source of the data for the transform.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "Source", "namespace": "transform._types" } } }, { "description": "Defines optional transform settings.", "name": "settings", "required": false, "type": { "kind": "instance_of", "type": { "name": "Settings", "namespace": "transform._types" } } }, { "description": "Defines the properties transforms require to run continuously.", "name": "sync", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncContainer", "namespace": "transform._types" } } }, { "description": "Defines a retention policy for the transform. Data that meets the defined\ncriteria is deleted from the destination index.", "name": "retention_policy", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "RetentionPolicyContainer", "namespace": "transform._types" } }, { "kind": "instance_of", "type": { "name": "null", "namespace": "_builtins" } } ] } } ] }, "description": "Update a transform.\nUpdates certain properties of a transform.\n\nAll updated properties except `description` do not take effect until after the transform starts the next checkpoint,\nthus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata`\nprivileges for the source indices. You must also have `index` and `read` privileges for the destination index. When\nElasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the\ntime of update and runs with those privileges.", "examples": { "UpdateTransformRequestExample1": { "description": "Run `POST _transform/simple-kibana-ecomm-pivot/_update` to update a transform that uses the pivot method.", "value": "{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\",\n \"query\": {\n \"term\": {\n \"geoip.continent_name\": {\n \"value\": \"Asia\"\n }\n }\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\",\n \"missing_bucket\": true\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n },\n \"description\": \"Maximum priced ecommerce data by customer_id in Asia\",\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform1\",\n \"pipeline\": \"add_timestamp_pipeline\"\n },\n \"frequency\": \"5m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"60s\"\n }\n },\n \"retention_policy\": {\n \"time\": {\n \"field\": \"order_date\",\n \"max_age\": \"30d\"\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.update_transform" }, "path": [ { "description": "Identifier for the transform.", "name": "transform_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "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.", "name": "defer_validation", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the\ntimeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/update_transform/UpdateTransformRequest.ts#L31-L113" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "authorization", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformAuthorization", "namespace": "ml._types" } } }, { "name": "create_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "dest", "required": true, "type": { "kind": "instance_of", "type": { "name": "Destination", "namespace": "_global.reindex" } } }, { "name": "frequency", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "latest", "required": false, "type": { "kind": "instance_of", "type": { "name": "Latest", "namespace": "transform._types" } } }, { "name": "pivot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Pivot", "namespace": "transform._types" } } }, { "name": "retention_policy", "required": false, "type": { "kind": "instance_of", "type": { "name": "RetentionPolicyContainer", "namespace": "transform._types" } } }, { "name": "settings", "required": true, "type": { "kind": "instance_of", "type": { "name": "Settings", "namespace": "transform._types" } } }, { "name": "source", "required": true, "type": { "kind": "instance_of", "type": { "name": "Source", "namespace": "_global.reindex" } } }, { "name": "sync", "required": false, "type": { "kind": "instance_of", "type": { "name": "SyncContainer", "namespace": "transform._types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } }, { "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } } ] }, "examples": { "UpdateTransformResponseExample1": { "description": "A successful response when creating a transform.", "value": "{\n \"id\": \"simple-kibana-ecomm-pivot\",\n \"authorization\": {\n \"roles\": [\n \"superuser\"\n ]\n },\n \"version\": \"10.0.0\",\n \"create_time\": 1712951576767,\n \"source\": {\n \"index\": [\n \"kibana_sample_data_ecommerce\"\n ],\n \"query\": {\n \"term\": {\n \"geoip.continent_name\": {\n \"value\": \"Asia\"\n }\n }\n }\n },\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform_v2\",\n \"pipeline\": \"add_timestamp_pipeline\"\n },\n \"frequency\": \"15m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"120s\"\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\",\n \"missing_bucket\": true\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n },\n \"description\": \"Maximum priced ecommerce data by customer_id in Asia\",\n \"settings\": {},\n \"retention_policy\": {\n \"time\": {\n \"field\": \"order_date\",\n \"max_age\": \"30d\"\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "transform.update_transform" }, "specLocation": "transform/update_transform/UpdateTransformResponse.ts#L33-L51" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Upgrade all transforms.\n\nTransforms are compatible across minor versions and between supported major versions.\nHowever, over time, the format of transform configuration information may change.\nThis API identifies transforms that have a legacy configuration format and upgrades them to the latest version.\nIt also cleans up the internal data structures that store the transform state and checkpoints.\nThe upgrade does not affect the source and destination indices.\nThe upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged.\n\nIf a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue.\nResolve the issue then re-run the process again.\nA summary is returned when the upgrade is finished.\n\nTo ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster.\nYou may want to perform a recent cluster backup prior to the upgrade.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "transform.upgrade_transforms" }, "path": [], "query": [ { "description": "When true, the request checks for updates but does not run them.", "name": "dry_run", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and\nreturns an error.", "name": "timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "transform/upgrade_transforms/UpgradeTransformsRequest.ts#L23-L65" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The number of transforms that need to be upgraded.", "name": "needs_update", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of transforms that don’t require upgrading.", "name": "no_action", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of transforms that have been upgraded.", "name": "updated", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "examples": { "UpgradeTransformResponseExample1": { "description": "A successful response contains a summary when all transforms are upgraded.", "value": "{\n \"needs_update\": 0,\n \"updated\": 2,\n \"no_action\": 1\n}" } }, "name": { "name": "Response", "namespace": "transform.upgrade_transforms" }, "specLocation": "transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34" }, { "kind": "interface", "name": { "name": "AcknowledgeState", "namespace": "watcher._types" }, "properties": [ { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "AcknowledgementOptions", "namespace": "watcher._types" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Action.ts#L109-L112" }, { "kind": "enum", "members": [ { "name": "awaits_successful_execution" }, { "name": "ackable" }, { "name": "acked" } ], "name": { "name": "AcknowledgementOptions", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Action.ts#L103-L107" }, { "kind": "interface", "name": { "name": "Action", "namespace": "watcher._types" }, "properties": [ { "name": "action_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "ActionType", "namespace": "watcher._types" } } }, { "name": "condition", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConditionContainer", "namespace": "watcher._types" } } }, { "name": "foreach", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "max_iterations", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "name", "required": false, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "throttle_period", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "throttle_period_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "transform", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformContainer", "namespace": "_types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexAction", "namespace": "watcher._types" } } }, { "name": "logging", "required": false, "type": { "kind": "instance_of", "type": { "name": "LoggingAction", "namespace": "watcher._types" } } }, { "name": "email", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmailAction", "namespace": "watcher._types" } } }, { "name": "pagerduty", "required": false, "type": { "kind": "instance_of", "type": { "name": "PagerDutyAction", "namespace": "watcher._types" } } }, { "name": "slack", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlackAction", "namespace": "watcher._types" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.14.0" } }, "name": "webhook", "required": false, "type": { "kind": "instance_of", "type": { "name": "WebhookAction", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Action.ts#L35-L54" }, { "kind": "enum", "members": [ { "description": "The action execution is simulated. Each action type defines its own simulation operation mode. For example, the email action creates the email that would have been sent but does not actually send it. In this mode, the action might be throttled if the current state of the watch indicates it should be.", "name": "simulate" }, { "description": "Similar to the `simulate` mode, except the action is not throttled even if the current state of the watch indicates it should be.", "name": "force_simulate" }, { "description": "Executes the action as it would have been executed if the watch had been triggered by its own trigger. The execution might be throttled if the current state of the watch indicates it should be.", "name": "execute" }, { "description": "Similar to the `execute` mode, except the action is not throttled even if the current state of the watch indicates it should be.", "name": "force_execute" }, { "description": "The action is skipped and is not executed or simulated. Effectively forces the action to be throttled.", "name": "skip" } ], "name": { "name": "ActionExecutionMode", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Action.ts#L67-L88" }, { "kind": "interface", "name": { "name": "ActionStatus", "namespace": "watcher._types" }, "properties": [ { "name": "ack", "required": true, "type": { "kind": "instance_of", "type": { "name": "AcknowledgeState", "namespace": "watcher._types" } } }, { "name": "last_execution", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExecutionState", "namespace": "watcher._types" } } }, { "name": "last_successful_execution", "required": false, "type": { "kind": "instance_of", "type": { "name": "ExecutionState", "namespace": "watcher._types" } } }, { "name": "last_throttle", "required": false, "type": { "kind": "instance_of", "type": { "name": "ThrottleState", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Action.ts#L125-L130" }, { "kind": "enum", "members": [ { "name": "success" }, { "name": "failure" }, { "name": "simulated" }, { "name": "throttled" } ], "name": { "name": "ActionStatusOptions", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Action.ts#L96-L101" }, { "kind": "enum", "members": [ { "name": "email" }, { "name": "webhook" }, { "name": "index" }, { "name": "logging" }, { "name": "slack" }, { "name": "pagerduty" } ], "name": { "name": "ActionType", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Action.ts#L58-L65" }, { "kind": "type_alias", "name": { "name": "Actions", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Action.ts#L56-L56", "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ActionStatus", "namespace": "watcher._types" } } } }, { "kind": "interface", "name": { "name": "ActivationState", "namespace": "watcher._types" }, "properties": [ { "name": "active", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Activation.ts#L24-L27" }, { "kind": "interface", "name": { "name": "ActivationStatus", "namespace": "watcher._types" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "instance_of", "type": { "name": "Actions", "namespace": "watcher._types" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActivationState", "namespace": "watcher._types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Activation.ts#L29-L33" }, { "kind": "interface", "name": { "name": "AlwaysCondition", "namespace": "watcher._types" }, "properties": [], "specLocation": "watcher/_types/Conditions.ts#L26-L26" }, { "kind": "interface", "attachedBehaviors": [ "AdditionalProperty" ], "behaviors": [ { "generics": [ { "kind": "instance_of", "type": { "name": "ConditionOp", "namespace": "watcher._types" } }, { "kind": "instance_of", "type": { "name": "ArrayCompareOpParams", "namespace": "watcher._types" } } ], "meta": { "key": "operator", "value": "params" }, "type": { "name": "AdditionalProperty", "namespace": "_spec_utils" } } ], "name": { "name": "ArrayCompareCondition", "namespace": "watcher._types" }, "properties": [ { "name": "path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Conditions.ts#L33-L40" }, { "kind": "interface", "name": { "name": "ArrayCompareOpParams", "namespace": "watcher._types" }, "properties": [ { "name": "quantifier", "required": true, "type": { "kind": "instance_of", "type": { "name": "Quantifier", "namespace": "watcher._types" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Conditions.ts#L28-L31" }, { "kind": "interface", "name": { "name": "ChainInput", "namespace": "watcher._types" }, "properties": [ { "name": "inputs", "required": true, "type": { "kind": "array_of", "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "InputContainer", "namespace": "watcher._types" } } } } } ], "specLocation": "watcher/_types/Input.ts#L35-L37" }, { "kind": "interface", "name": { "name": "ConditionContainer", "namespace": "watcher._types" }, "properties": [ { "name": "always", "required": false, "type": { "kind": "instance_of", "type": { "name": "AlwaysCondition", "namespace": "watcher._types" } } }, { "name": "array_compare", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "ArrayCompareCondition", "namespace": "watcher._types" } } } }, { "name": "compare", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": true, "value": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "ConditionOp", "namespace": "watcher._types" } }, "singleKey": true, "value": { "kind": "instance_of", "type": { "name": "FieldValue", "namespace": "_types" } } } } }, { "name": "never", "required": false, "type": { "kind": "instance_of", "type": { "name": "NeverCondition", "namespace": "watcher._types" } } }, { "name": "script", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptCondition", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Conditions.ts#L51-L63", "variants": { "kind": "container" } }, { "kind": "enum", "members": [ { "name": "not_eq" }, { "name": "eq" }, { "name": "lt" }, { "name": "gt" }, { "name": "lte" }, { "name": "gte" } ], "name": { "name": "ConditionOp", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Conditions.ts#L42-L49" }, { "kind": "enum", "members": [ { "name": "always" }, { "name": "never" }, { "name": "script" }, { "name": "compare" }, { "name": "array_compare" } ], "name": { "name": "ConditionType", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Conditions.ts#L65-L71" }, { "kind": "enum", "members": [ { "name": "http" }, { "name": "https" } ], "name": { "name": "ConnectionScheme", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Input.ts#L39-L42" }, { "kind": "type_alias", "docId": "cron-expressions", "docUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/api-conventions#api-cron-expressions", "name": { "name": "CronExpression", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Schedule.ts#L27-L30", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "kind": "interface", "name": { "name": "DailySchedule", "namespace": "watcher._types" }, "properties": [ { "name": "at", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ScheduleTimeOfDay", "namespace": "watcher._types" } } } } ], "specLocation": "watcher/_types/Schedule.ts#L33-L35" }, { "kind": "enum", "members": [ { "name": "json" }, { "name": "yaml" } ], "name": { "name": "DataAttachmentFormat", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Actions.ts#L187-L190" }, { "kind": "interface", "name": { "name": "DataEmailAttachment", "namespace": "watcher._types" }, "properties": [ { "name": "format", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataAttachmentFormat", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L234-L236" }, { "kind": "enum", "members": [ { "name": "sunday" }, { "name": "monday" }, { "name": "tuesday" }, { "name": "wednesday" }, { "name": "thursday" }, { "name": "friday" }, { "name": "saturday" } ], "name": { "name": "Day", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Schedule.ts#L37-L45" }, { "kind": "interface", "name": { "name": "Email", "namespace": "watcher._types" }, "properties": [ { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "bcc", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "body", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmailBody", "namespace": "watcher._types" } } }, { "name": "cc", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "from", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "priority", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmailPriority", "namespace": "watcher._types" } } }, { "name": "reply_to", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "sent_date", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "subject", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "to", "required": true, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "name": "attachments", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "EmailAttachmentContainer", "namespace": "watcher._types" } } } } ], "specLocation": "watcher/_types/Actions.ts#L238-L250" }, { "kind": "interface", "inherits": { "type": { "name": "Email", "namespace": "watcher._types" } }, "name": { "name": "EmailAction", "namespace": "watcher._types" }, "properties": [], "specLocation": "watcher/_types/Actions.ts#L252-L252" }, { "kind": "interface", "name": { "name": "EmailAttachmentContainer", "namespace": "watcher._types" }, "properties": [ { "name": "http", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpEmailAttachment", "namespace": "watcher._types" } } }, { "name": "reporting", "required": false, "type": { "kind": "instance_of", "type": { "name": "ReportingEmailAttachment", "namespace": "watcher._types" } } }, { "name": "data", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataEmailAttachment", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L211-L216", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "EmailBody", "namespace": "watcher._types" }, "properties": [ { "name": "html", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Actions.ts#L192-L195" }, { "kind": "enum", "members": [ { "name": "lowest" }, { "name": "low" }, { "name": "normal" }, { "name": "high" }, { "name": "highest" } ], "name": { "name": "EmailPriority", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Actions.ts#L197-L203" }, { "kind": "interface", "name": { "name": "EmailResult", "namespace": "watcher._types" }, "properties": [ { "name": "account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "Email", "namespace": "watcher._types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Actions.ts#L205-L209" }, { "kind": "enum", "members": [ { "name": "awaits_execution" }, { "name": "started" }, { "name": "input" }, { "name": "condition" }, { "name": "actions" }, { "name": "watch_transform" }, { "name": "aborted" }, { "name": "finished" } ], "name": { "name": "ExecutionPhase", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Execution.ts#L49-L58" }, { "kind": "interface", "name": { "name": "ExecutionResult", "namespace": "watcher._types" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "ExecutionResultAction", "namespace": "watcher._types" } } } }, { "name": "condition", "required": true, "type": { "kind": "instance_of", "type": { "name": "ExecutionResultCondition", "namespace": "watcher._types" } } }, { "name": "execution_duration", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "execution_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "input", "required": true, "type": { "kind": "instance_of", "type": { "name": "ExecutionResultInput", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Execution.ts#L60-L66" }, { "kind": "interface", "name": { "name": "ExecutionResultAction", "namespace": "watcher._types" }, "properties": [ { "name": "email", "required": false, "type": { "kind": "instance_of", "type": { "name": "EmailResult", "namespace": "watcher._types" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndexResult", "namespace": "watcher._types" } } }, { "name": "logging", "required": false, "type": { "kind": "instance_of", "type": { "name": "LoggingResult", "namespace": "watcher._types" } } }, { "name": "pagerduty", "required": false, "type": { "kind": "instance_of", "type": { "name": "PagerDutyResult", "namespace": "watcher._types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "slack", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlackResult", "namespace": "watcher._types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActionStatusOptions", "namespace": "watcher._types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActionType", "namespace": "watcher._types" } } }, { "name": "webhook", "required": false, "type": { "kind": "instance_of", "type": { "name": "WebhookResult", "namespace": "watcher._types" } } }, { "name": "error", "required": false, "type": { "kind": "instance_of", "type": { "name": "ErrorCause", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Execution.ts#L74-L86" }, { "kind": "interface", "name": { "name": "ExecutionResultCondition", "namespace": "watcher._types" }, "properties": [ { "name": "met", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActionStatusOptions", "namespace": "watcher._types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConditionType", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Execution.ts#L68-L72" }, { "kind": "interface", "name": { "name": "ExecutionResultInput", "namespace": "watcher._types" }, "properties": [ { "name": "payload", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActionStatusOptions", "namespace": "watcher._types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "InputType", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Execution.ts#L88-L92" }, { "kind": "interface", "name": { "name": "ExecutionState", "namespace": "watcher._types" }, "properties": [ { "name": "successful", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Action.ts#L114-L118" }, { "kind": "enum", "members": [ { "name": "awaits_execution" }, { "name": "checking" }, { "name": "execution_not_needed" }, { "name": "throttled" }, { "name": "executed" }, { "name": "failed" }, { "name": "deleted_while_queued" }, { "name": "not_executed_already_queued" } ], "name": { "name": "ExecutionStatus", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Execution.ts#L38-L47" }, { "kind": "interface", "name": { "name": "ExecutionThreadPool", "namespace": "watcher._types" }, "properties": [ { "description": "The largest size of the execution thread pool, which indicates the largest number of concurrent running watches.", "name": "max_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The number of watches that were triggered and are currently queued.", "name": "queue_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Execution.ts#L94-L103" }, { "kind": "interface", "name": { "name": "HourAndMinute", "namespace": "watcher._types" }, "properties": [ { "name": "hour", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "name": "minute", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "watcher/_types/Schedule.ts#L106-L109" }, { "kind": "interface", "name": { "name": "HourlySchedule", "namespace": "watcher._types" }, "properties": [ { "name": "minute", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "watcher/_types/Schedule.ts#L47-L49" }, { "kind": "interface", "name": { "name": "HttpEmailAttachment", "namespace": "watcher._types" }, "properties": [ { "name": "content_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "inline", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "request", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputRequestDefinition", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L218-L222" }, { "kind": "interface", "name": { "name": "HttpInput", "namespace": "watcher._types" }, "properties": [ { "name": "extract", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "request", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputRequestDefinition", "namespace": "watcher._types" } } }, { "name": "response_content_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "ResponseContentType", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Input.ts#L44-L48" }, { "kind": "interface", "name": { "name": "HttpInputAuthentication", "namespace": "watcher._types" }, "properties": [ { "name": "basic", "required": true, "type": { "kind": "instance_of", "type": { "name": "HttpInputBasicAuthentication", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Input.ts#L50-L52" }, { "kind": "interface", "name": { "name": "HttpInputBasicAuthentication", "namespace": "watcher._types" }, "properties": [ { "name": "password", "required": true, "type": { "kind": "instance_of", "type": { "name": "Password", "namespace": "_types" } } }, { "name": "username", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Input.ts#L54-L57" }, { "kind": "enum", "members": [ { "name": "head" }, { "name": "get" }, { "name": "post" }, { "name": "put" }, { "name": "delete" } ], "name": { "name": "HttpInputMethod", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Input.ts#L59-L65" }, { "kind": "interface", "name": { "name": "HttpInputProxy", "namespace": "watcher._types" }, "properties": [ { "name": "host", "required": true, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "port", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Input.ts#L67-L70" }, { "kind": "interface", "name": { "name": "HttpInputRequestDefinition", "namespace": "watcher._types" }, "properties": [ { "name": "auth", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputAuthentication", "namespace": "watcher._types" } } }, { "name": "body", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "connection_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "headers", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "method", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputMethod", "namespace": "watcher._types" } } }, { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "path", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "port", "required": false, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "proxy", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputProxy", "namespace": "watcher._types" } } }, { "name": "read_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "scheme", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConnectionScheme", "namespace": "watcher._types" } } }, { "name": "url", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Input.ts#L72-L86" }, { "kind": "interface", "inherits": { "type": { "name": "HttpInputRequestDefinition", "namespace": "watcher._types" } }, "name": { "name": "HttpInputRequestResult", "namespace": "watcher._types" }, "properties": [], "specLocation": "watcher/_types/Actions.ts#L300-L300" }, { "kind": "interface", "name": { "name": "HttpInputResponseResult", "namespace": "watcher._types" }, "properties": [ { "name": "body", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "headers", "required": true, "type": { "kind": "instance_of", "type": { "name": "HttpHeaders", "namespace": "_types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Actions.ts#L302-L306" }, { "kind": "interface", "name": { "name": "IndexAction", "namespace": "watcher._types" }, "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "doc_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "refresh", "required": false, "type": { "kind": "instance_of", "type": { "name": "Refresh", "namespace": "_types" } } }, { "name": "op_type", "required": false, "serverDefault": "index", "type": { "kind": "instance_of", "type": { "name": "OpType", "namespace": "_types" } } }, { "name": "timeout", "required": false, "serverDefault": "60s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "execution_time_field", "required": false, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Actions.ts#L256-L265" }, { "kind": "interface", "name": { "name": "IndexResult", "namespace": "watcher._types" }, "properties": [ { "name": "response", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexResultSummary", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L267-L269" }, { "kind": "interface", "name": { "name": "IndexResultSummary", "namespace": "watcher._types" }, "properties": [ { "name": "created", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } }, { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "Result", "namespace": "_types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Actions.ts#L271-L277" }, { "kind": "interface", "name": { "name": "InputContainer", "namespace": "watcher._types" }, "properties": [ { "name": "chain", "required": false, "type": { "kind": "instance_of", "type": { "name": "ChainInput", "namespace": "watcher._types" } } }, { "name": "http", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInput", "namespace": "watcher._types" } } }, { "name": "search", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchInput", "namespace": "watcher._types" } } }, { "name": "simple", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } } ], "specLocation": "watcher/_types/Input.ts#L90-L98", "variants": { "kind": "container" } }, { "kind": "enum", "members": [ { "name": "http" }, { "name": "search" }, { "name": "simple" } ], "name": { "name": "InputType", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Input.ts#L100-L104" }, { "kind": "interface", "name": { "name": "LoggingAction", "namespace": "watcher._types" }, "properties": [ { "name": "level", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "category", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Actions.ts#L281-L285" }, { "kind": "interface", "name": { "name": "LoggingResult", "namespace": "watcher._types" }, "properties": [ { "name": "logged_text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Actions.ts#L287-L289" }, { "kind": "enum", "members": [ { "name": "january" }, { "name": "february" }, { "name": "march" }, { "name": "april" }, { "name": "may" }, { "name": "june" }, { "name": "july" }, { "name": "august" }, { "name": "september" }, { "name": "october" }, { "name": "november" }, { "name": "december" } ], "name": { "name": "Month", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Schedule.ts#L65-L78" }, { "kind": "interface", "name": { "name": "NeverCondition", "namespace": "watcher._types" }, "properties": [], "specLocation": "watcher/_types/Conditions.ts#L73-L73" }, { "kind": "interface", "inherits": { "type": { "name": "PagerDutyEvent", "namespace": "watcher._types" } }, "name": { "name": "PagerDutyAction", "namespace": "watcher._types" }, "properties": [], "specLocation": "watcher/_types/Actions.ts#L54-L54" }, { "kind": "interface", "name": { "name": "PagerDutyContext", "namespace": "watcher._types" }, "properties": [ { "name": "href", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "src", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "PagerDutyContextType", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L61-L65" }, { "kind": "enum", "members": [ { "name": "link" }, { "name": "image" } ], "name": { "name": "PagerDutyContextType", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Actions.ts#L67-L70" }, { "kind": "interface", "name": { "name": "PagerDutyEvent", "namespace": "watcher._types" }, "properties": [ { "name": "account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "attach_payload", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "client", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "client_url", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "aliases": [ "context" ], "name": "contexts", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "PagerDutyContext", "namespace": "watcher._types" } } } }, { "name": "description", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "event_type", "required": false, "serverDefault": "trigger", "type": { "kind": "instance_of", "type": { "name": "PagerDutyEventType", "namespace": "watcher._types" } } }, { "name": "incident_key", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "proxy", "required": false, "type": { "kind": "instance_of", "type": { "name": "PagerDutyEventProxy", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L40-L52" }, { "kind": "interface", "name": { "name": "PagerDutyEventProxy", "namespace": "watcher._types" }, "properties": [ { "name": "host", "required": false, "type": { "kind": "instance_of", "type": { "name": "Host", "namespace": "_types" } } }, { "name": "port", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Actions.ts#L56-L59" }, { "kind": "enum", "members": [ { "name": "trigger" }, { "name": "resolve" }, { "name": "acknowledge" } ], "name": { "name": "PagerDutyEventType", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Actions.ts#L72-L76" }, { "kind": "interface", "name": { "name": "PagerDutyResult", "namespace": "watcher._types" }, "properties": [ { "name": "event", "required": true, "type": { "kind": "instance_of", "type": { "name": "PagerDutyEvent", "namespace": "watcher._types" } } }, { "name": "reason", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "request", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputRequestResult", "namespace": "watcher._types" } } }, { "name": "response", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputResponseResult", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L78-L83" }, { "kind": "enum", "members": [ { "name": "some" }, { "name": "all" } ], "name": { "name": "Quantifier", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Conditions.ts#L75-L78" }, { "kind": "interface", "name": { "name": "QueryWatch", "namespace": "watcher._types" }, "properties": [ { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "WatchStatus", "namespace": "watcher._types" } } }, { "name": "watch", "required": false, "type": { "kind": "instance_of", "type": { "name": "Watch", "namespace": "watcher._types" } } }, { "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Watch.ts#L58-L64" }, { "kind": "interface", "name": { "name": "ReportingEmailAttachment", "namespace": "watcher._types" }, "properties": [ { "name": "url", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "inline", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "retries", "required": false, "serverDefault": 40, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "interval", "required": false, "serverDefault": "15s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "request", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputRequestDefinition", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L224-L232" }, { "kind": "enum", "members": [ { "name": "json" }, { "name": "yaml" }, { "name": "text" } ], "name": { "name": "ResponseContentType", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Input.ts#L106-L110" }, { "kind": "interface", "name": { "name": "ScheduleContainer", "namespace": "watcher._types" }, "properties": [ { "name": "timezone", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "cron", "required": false, "type": { "kind": "instance_of", "type": { "name": "CronExpression", "namespace": "watcher._types" } } }, { "name": "daily", "required": false, "type": { "kind": "instance_of", "type": { "name": "DailySchedule", "namespace": "watcher._types" } } }, { "name": "hourly", "required": false, "type": { "kind": "instance_of", "type": { "name": "HourlySchedule", "namespace": "watcher._types" } } }, { "name": "interval", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "monthly", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TimeOfMonth", "namespace": "watcher._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TimeOfMonth", "namespace": "watcher._types" } } } ] } }, { "name": "weekly", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TimeOfWeek", "namespace": "watcher._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TimeOfWeek", "namespace": "watcher._types" } } } ] } }, { "name": "yearly", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "TimeOfYear", "namespace": "watcher._types" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "TimeOfYear", "namespace": "watcher._types" } } } ] } } ], "specLocation": "watcher/_types/Schedule.ts#L80-L92", "variants": { "kind": "container" } }, { "kind": "type_alias", "codegenNames": [ "text", "hour_minute" ], "description": "A time of day, expressed either as `hh:mm`, `noon`, `midnight`, or an hour/minutes structure.", "name": { "name": "ScheduleTimeOfDay", "namespace": "watcher._types" }, "specLocation": "watcher/_types/Schedule.ts#L99-L104", "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "instance_of", "type": { "name": "HourAndMinute", "namespace": "watcher._types" } } ] } }, { "kind": "interface", "name": { "name": "ScheduleTriggerEvent", "namespace": "watcher._types" }, "properties": [ { "name": "scheduled_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "triggered_time", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Schedule.ts#L94-L97" }, { "kind": "interface", "name": { "name": "ScriptCondition", "namespace": "watcher._types" }, "properties": [ { "name": "lang", "required": false, "serverDefault": "painless", "type": { "kind": "instance_of", "type": { "name": "ScriptLanguage", "namespace": "_types" } } }, { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScriptSource", "namespace": "_types" } } }, { "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Conditions.ts#L80-L88" }, { "kind": "interface", "name": { "name": "SearchInput", "namespace": "watcher._types" }, "properties": [ { "name": "extract", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "request", "required": true, "type": { "kind": "instance_of", "type": { "name": "SearchInputRequestDefinition", "namespace": "watcher._types" } } }, { "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Input.ts#L112-L116" }, { "kind": "interface", "name": { "name": "SearchInputRequestBody", "namespace": "watcher._types" }, "properties": [ { "name": "query", "required": true, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } } ], "specLocation": "watcher/_types/Input.ts#L147-L149" }, { "kind": "interface", "name": { "name": "SearchInputRequestDefinition", "namespace": "watcher._types" }, "properties": [ { "name": "body", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchInputRequestBody", "namespace": "watcher._types" } } }, { "name": "indices", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } } } }, { "name": "indices_options", "required": false, "type": { "kind": "instance_of", "type": { "name": "IndicesOptions", "namespace": "_types" } } }, { "name": "search_type", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchType", "namespace": "_types" } } }, { "name": "template", "required": false, "type": { "kind": "instance_of", "type": { "name": "SearchTemplateRequestBody", "namespace": "watcher._types" } } }, { "name": "rest_total_hits_as_int", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Input.ts#L118-L125" }, { "kind": "interface", "name": { "name": "SearchTemplateRequestBody", "namespace": "watcher._types" }, "properties": [ { "name": "explain", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "ID of the search template to use. If no source is specified,\nthis parameter is required.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "params", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "name": "profile", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "An inline search template. Supports the same parameters as the search API's\nrequest body. Also supports Mustache variables. If no id is specified, this\nparameter is required.", "name": "source", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Input.ts#L128-L145" }, { "kind": "interface", "name": { "name": "SimulatedActions", "namespace": "watcher._types" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "all", "required": true, "type": { "kind": "instance_of", "type": { "name": "SimulatedActions", "namespace": "watcher._types" } } }, { "name": "use_all", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Action.ts#L90-L94" }, { "kind": "interface", "name": { "name": "SlackAction", "namespace": "watcher._types" }, "properties": [ { "name": "account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "SlackMessage", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L91-L94" }, { "kind": "interface", "name": { "name": "SlackAttachment", "namespace": "watcher._types" }, "properties": [ { "name": "author_icon", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "author_link", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "author_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "color", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "fallback", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "fields", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SlackAttachmentField", "namespace": "watcher._types" } } } }, { "name": "footer", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "footer_icon", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "image_url", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "pretext", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "text", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "thumb_url", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "title", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "title_link", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "ts", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitSeconds", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Actions.ts#L101-L117" }, { "kind": "interface", "name": { "name": "SlackAttachmentField", "namespace": "watcher._types" }, "properties": [ { "name": "short", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "title", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "value", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Actions.ts#L119-L123" }, { "kind": "interface", "name": { "name": "SlackDynamicAttachment", "namespace": "watcher._types" }, "properties": [ { "name": "attachment_template", "required": true, "type": { "kind": "instance_of", "type": { "name": "SlackAttachment", "namespace": "watcher._types" } } }, { "name": "list_path", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Actions.ts#L125-L128" }, { "kind": "interface", "name": { "name": "SlackMessage", "namespace": "watcher._types" }, "properties": [ { "name": "attachments", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "SlackAttachment", "namespace": "watcher._types" } } } }, { "name": "dynamic_attachments", "required": false, "type": { "kind": "instance_of", "type": { "name": "SlackDynamicAttachment", "namespace": "watcher._types" } } }, { "name": "from", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "icon", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "text", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "to", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "watcher/_types/Actions.ts#L130-L137" }, { "kind": "interface", "name": { "name": "SlackResult", "namespace": "watcher._types" }, "properties": [ { "name": "account", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "message", "required": true, "type": { "kind": "instance_of", "type": { "name": "SlackMessage", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L96-L99" }, { "kind": "interface", "name": { "name": "ThrottleState", "namespace": "watcher._types" }, "properties": [ { "name": "reason", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "timestamp", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "watcher/_types/Action.ts#L120-L123" }, { "kind": "interface", "name": { "name": "TimeOfMonth", "namespace": "watcher._types" }, "properties": [ { "name": "at", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "on", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "watcher/_types/Schedule.ts#L111-L114" }, { "kind": "interface", "name": { "name": "TimeOfWeek", "namespace": "watcher._types" }, "properties": [ { "name": "at", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "on", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Day", "namespace": "watcher._types" } } } } ], "specLocation": "watcher/_types/Schedule.ts#L116-L119" }, { "kind": "interface", "name": { "name": "TimeOfYear", "namespace": "watcher._types" }, "properties": [ { "name": "at", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "int", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "Month", "namespace": "watcher._types" } } } }, { "name": "on", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } } ], "specLocation": "watcher/_types/Schedule.ts#L121-L125" }, { "kind": "interface", "name": { "name": "TriggerContainer", "namespace": "watcher._types" }, "properties": [ { "name": "schedule", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScheduleContainer", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Trigger.ts#L23-L28", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "TriggerEventContainer", "namespace": "watcher._types" }, "properties": [ { "name": "schedule", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScheduleTriggerEvent", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Trigger.ts#L32-L37", "variants": { "kind": "container" } }, { "kind": "interface", "name": { "name": "TriggerEventResult", "namespace": "watcher._types" }, "properties": [ { "name": "manual", "required": true, "type": { "kind": "instance_of", "type": { "name": "TriggerEventContainer", "namespace": "watcher._types" } } }, { "name": "triggered_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Trigger.ts#L39-L43" }, { "kind": "interface", "name": { "name": "Watch", "namespace": "watcher._types" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "IndexName", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Action", "namespace": "watcher._types" } } } }, { "name": "condition", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConditionContainer", "namespace": "watcher._types" } } }, { "name": "input", "required": true, "type": { "kind": "instance_of", "type": { "name": "InputContainer", "namespace": "watcher._types" } } }, { "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "WatchStatus", "namespace": "watcher._types" } } }, { "name": "throttle_period", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "throttle_period_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "name": "transform", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformContainer", "namespace": "_types" } } }, { "name": "trigger", "required": true, "type": { "kind": "instance_of", "type": { "name": "TriggerContainer", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Watch.ts#L37-L47" }, { "kind": "interface", "name": { "name": "WatchStatus", "namespace": "watcher._types" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "instance_of", "type": { "name": "Actions", "namespace": "watcher._types" } } }, { "name": "last_checked", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "last_met_condition", "required": false, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActivationState", "namespace": "watcher._types" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } }, { "name": "execution_state", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "watcher/_types/Watch.ts#L49-L56" }, { "kind": "interface", "inherits": { "type": { "name": "HttpInputRequestDefinition", "namespace": "watcher._types" } }, "name": { "name": "WebhookAction", "namespace": "watcher._types" }, "properties": [], "specLocation": "watcher/_types/Actions.ts#L293-L293" }, { "kind": "interface", "name": { "name": "WebhookResult", "namespace": "watcher._types" }, "properties": [ { "name": "request", "required": true, "type": { "kind": "instance_of", "type": { "name": "HttpInputRequestResult", "namespace": "watcher._types" } } }, { "name": "response", "required": false, "type": { "kind": "instance_of", "type": { "name": "HttpInputResponseResult", "namespace": "watcher._types" } } } ], "specLocation": "watcher/_types/Actions.ts#L295-L298" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Acknowledge a watch.\nAcknowledging a watch enables you to manually throttle the execution of the watch's actions.\n\nThe acknowledgement state of an action is stored in the `status.actions..ack.state` structure.\n\nIMPORTANT: If the specified watch is currently being executed, this API will return an error\nThe reason for this behavior is to prevent overwriting the watch status from a watch execution.\n\nAcknowledging an action throttles further executions of that action until its `ack.state` is reset to `awaits_successful_execution`.\nThis happens when the condition of the watch is not met (the condition evaluates to false).", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.ack_watch" }, "path": [ { "description": "The watch identifier.", "name": "watch_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "description": "A comma-separated list of the action identifiers to acknowledge.\nIf you omit this parameter, all of the actions of the watch are acknowledged.", "name": "action_id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Names", "namespace": "_types" } } } ], "query": [], "specLocation": "watcher/ack_watch/WatcherAckWatchRequest.ts#L23-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatchStatus", "namespace": "watcher._types" } } } ] }, "examples": { "WatcherAckWatchResponseExample1": { "description": "A successful response from `POST _watcher/watch/my_watch/_ack`.", "value": "{\n \"status\": {\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-05-26T18:04:27.723Z\"\n },\n \"last_checked\": \"2015-05-26T18:04:27.753Z\",\n \"last_met_condition\": \"2015-05-26T18:04:27.763Z\",\n \"actions\": {\n \"test_index\": {\n \"ack\" : {\n \"timestamp\": \"2015-05-26T18:04:27.713Z\",\n \"state\": \"acked\"\n },\n \"last_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.733Z\",\n \"successful\": true\n },\n \"last_successful_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.773Z\",\n \"successful\": true\n }\n }\n },\n \"execution_state\": \"executed\",\n \"version\": 2\n }\n}" } }, "name": { "name": "Response", "namespace": "watcher.ack_watch" }, "specLocation": "watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Activate a watch.\nA watch can be either active or inactive.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.activate_watch" }, "path": [ { "description": "The watch identifier.", "name": "watch_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "watcher/activate_watch/WatcherActivateWatchRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActivationStatus", "namespace": "watcher._types" } } } ] }, "name": { "name": "Response", "namespace": "watcher.activate_watch" }, "specLocation": "watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Deactivate a watch.\nA watch can be either active or inactive.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.deactivate_watch" }, "path": [ { "description": "The watch identifier.", "name": "watch_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "watcher/deactivate_watch/DeactivateWatchRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "ActivationStatus", "namespace": "watcher._types" } } } ] }, "name": { "name": "Response", "namespace": "watcher.deactivate_watch" }, "specLocation": "watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Delete a watch.\nWhen the watch is removed, the document representing the watch in the `.watches` index is gone and it will never be run again.\n\nDeleting a watch does not delete any watch execution records related to this watch from the watch history.\n\nIMPORTANT: Deleting a watch must be done by using only this API.\nDo not delete the watch directly from the `.watches` index using the Elasticsearch delete document API\nWhen Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the `.watches` index.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.delete_watch" }, "path": [ { "description": "The watch identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "watcher/delete_watch/DeleteWatchRequest.ts#L23-L50" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ] }, "examples": { "DeleteWatchResponseExample1": { "description": "A successful response from `DELETE _watcher/watch/my_watch`.", "value": "{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_version\": 2\n}" } }, "name": { "name": "Response", "namespace": "watcher.delete_watch" }, "specLocation": "watcher/delete_watch/DeleteWatchResponse.ts#L22-L24" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "Determines how to handle the watch actions as part of the watch execution.", "name": "action_modes", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "ActionExecutionMode", "namespace": "watcher._types" } } } }, { "description": "When present, the watch uses this object as a payload instead of executing its own input.", "name": "alternative_input", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "user_defined_value" } } }, { "description": "When set to `true`, the watch execution uses the always condition. This can also be specified as an HTTP parameter.", "name": "ignore_condition", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "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.", "name": "record_execution", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "simulated_actions", "required": false, "type": { "kind": "instance_of", "type": { "name": "SimulatedActions", "namespace": "watcher._types" } } }, { "description": "This structure is parsed as the data of the trigger event that will be used during the watch execution.", "name": "trigger_data", "required": false, "type": { "kind": "instance_of", "type": { "name": "ScheduleTriggerEvent", "namespace": "watcher._types" } } }, { "description": "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.", "name": "watch", "required": false, "serverDefault": "null", "type": { "kind": "instance_of", "type": { "name": "Watch", "namespace": "watcher._types" } } } ] }, "description": "Run a watch.\nThis API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes.\n\nFor testing and debugging purposes, you also have fine-grained control on how the watch runs.\nYou can run the watch without running all of its actions or alternatively by simulating them.\nYou can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after it runs.\n\nYou can use the run watch API to run watches that are not yet registered by specifying the watch definition inline.\nThis serves as great tool for testing and debugging your watches prior to adding them to Watcher.\n\nWhen Elasticsearch security features are enabled on your cluster, watches are run with the privileges of the user that stored the watches.\nIf your user is allowed to read index `a`, but not index `b`, then the exact same set of rules will apply during execution of a watch.\n\nWhen using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch.", "examples": { "WatcherExecuteRequestExample1": { "description": "Run `POST _watcher/watch/my_watch/_execute` to run a watch. The input defined in the watch is ignored and the `alternative_input` is used as the payload. The condition as defined by the watch is ignored and is assumed to evaluate to true. The `force_simulate` action forces the simulation of `my-action`. Forcing the simulation means that throttling is ignored and the watch is simulated by Watcher instead of being run normally.\n", "summary": "Run a watch", "value": "{\n \"trigger_data\" : { \n \"triggered_time\" : \"now\",\n \"scheduled_time\" : \"now\"\n },\n \"alternative_input\" : { \n \"foo\" : \"bar\"\n },\n \"ignore_condition\" : true, \n \"action_modes\" : {\n \"my-action\" : \"force_simulate\" \n },\n \"record_execution\" : true \n}" }, "WatcherExecuteRequestExample2": { "description": "Run `POST _watcher/watch/my_watch/_execute` and set a different mode for each action.\n", "summary": "Run a watch with multiple action modes", "value": "{\n \"action_modes\" : {\n \"action1\" : \"force_simulate\",\n \"action2\" : \"skip\"\n }\n}" }, "WatcherExecuteRequestExample3": { "description": "Run `POST _watcher/watch/_execute` to run a watch inline. All other settings for this API still apply when inlining a watch. In this example, while the inline watch defines a compare condition, during the execution this condition will be ignored.\n", "summary": "Run a watch inline", "value": "{\n \"watch\" : {\n \"trigger\" : { \"schedule\" : { \"interval\" : \"10s\" } },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [ \"logs\" ],\n \"body\" : {\n \"query\" : {\n \"match\" : { \"message\": \"error\" }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }}\n },\n \"actions\" : {\n \"log_error\" : {\n \"logging\" : {\n \"text\" : \"Found {{ctx.payload.hits.total}} errors in the logs\"\n }\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.execute_watch" }, "path": [ { "description": "The watch identifier.", "name": "id", "required": false, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "Defines whether the watch runs in debug mode.", "name": "debug", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The watch record identifier as it would be stored in the `.watcher-history` index.", "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The watch record document as it would be stored in the `.watcher-history` index.", "name": "watch_record", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatchRecord", "namespace": "watcher.execute_watch" } } } ] }, "examples": { "WatcherExecuteWatchResponseExample1": { "description": "A successful response from `POST _watcher/watch/my_watch/_execute`.\n", "value": "{\n \"_id\": \"my_watch_0-2015-06-02T23:17:55.124Z\", \n \"watch_record\": { \n \"@timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"watch_id\": \"my_watch\",\n \"node\": \"my_node\",\n \"messages\": [],\n \"trigger_event\": {\n \"type\": \"manual\",\n \"triggered_time\": \"2015-06-02T23:17:55.124Z\",\n \"manual\": {\n \"schedule\": {\n \"scheduled_time\": \"2015-06-02T23:17:55.124Z\"\n }\n }\n },\n \"state\": \"executed\",\n \"status\": {\n \"version\": 1,\n \"execution_state\": \"executed\",\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-06-02T23:17:55.111Z\"\n },\n \"last_checked\": \"2015-06-02T23:17:55.124Z\",\n \"last_met_condition\": \"2015-06-02T23:17:55.124Z\",\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"state\": \"ackable\"\n },\n \"last_execution\": {\n \"timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"successful\": true\n },\n \"last_successful_execution\": {\n \"timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"successful\": true\n }\n }\n }\n },\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"result\": { \n \"execution_time\": \"2015-06-02T23:17:55.124Z\",\n \"execution_duration\": 12608,\n \"input\": {\n \"type\": \"simple\",\n \"payload\": {\n \"foo\": \"bar\"\n },\n \"status\": \"success\"\n },\n \"condition\": {\n \"type\": \"always\",\n \"met\": true,\n \"status\": \"success\"\n },\n \"actions\": [\n {\n \"id\": \"test_index\",\n \"index\": {\n \"response\": {\n \"index\": \"test\",\n \"version\": 1,\n \"created\": true,\n \"result\": \"created\",\n \"id\": \"AVSHKzPa9zx62AzUzFXY\"\n }\n },\n \"status\": \"success\",\n \"type\": \"index\"\n }\n ]\n },\n \"user\": \"test_admin\" \n }\n}" } }, "name": { "name": "Response", "namespace": "watcher.execute_watch" }, "specLocation": "watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L34" }, { "kind": "interface", "name": { "name": "WatchRecord", "namespace": "watcher.execute_watch" }, "properties": [ { "name": "condition", "required": true, "type": { "kind": "instance_of", "type": { "name": "ConditionContainer", "namespace": "watcher._types" } } }, { "name": "input", "required": true, "type": { "kind": "instance_of", "type": { "name": "InputContainer", "namespace": "watcher._types" } } }, { "name": "messages", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "name": "node", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "result", "required": true, "type": { "kind": "instance_of", "type": { "name": "ExecutionResult", "namespace": "watcher._types" } } }, { "name": "state", "required": true, "type": { "kind": "instance_of", "type": { "name": "ExecutionStatus", "namespace": "watcher._types" } } }, { "name": "trigger_event", "required": true, "type": { "kind": "instance_of", "type": { "name": "TriggerEventResult", "namespace": "watcher._types" } } }, { "name": "user", "required": true, "type": { "kind": "instance_of", "type": { "name": "Username", "namespace": "_types" } } }, { "name": "watch_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "WatchStatus", "namespace": "watcher._types" } } } ], "specLocation": "watcher/execute_watch/types.ts#L27-L39" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get Watcher index settings.\nGet settings for the Watcher internal index (`.watches`).\nOnly a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.get_settings" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "watcher/get_settings/WatcherGetSettingsRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "index", "required": true, "type": { "kind": "instance_of", "type": { "name": "IndexSettings", "namespace": "indices._types" } } } ] }, "examples": { "WatcherGetSettingsResponseExample1": { "description": "A successful response with two index settings.", "value": "{\n \"index\": {\n \"auto_expand_replicas\": \"0-4\",\n \"number_of_replicas\": 0\n }\n}" } }, "name": { "name": "Response", "namespace": "watcher.get_settings" }, "specLocation": "watcher/get_settings/WatcherGetSettingsResponse.ts#L22-L26" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get a watch.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.get_watch" }, "path": [ { "description": "The watch identifier.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } } ], "query": [], "specLocation": "watcher/get_watch/GetWatchRequest.ts#L23-L43" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "found", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "status", "required": false, "type": { "kind": "instance_of", "type": { "name": "WatchStatus", "namespace": "watcher._types" } } }, { "name": "watch", "required": false, "type": { "kind": "instance_of", "type": { "name": "Watch", "namespace": "watcher._types" } } }, { "name": "_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "name": "_version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ] }, "examples": { "GetWatchResponseExample1": { "description": "A successful response from `GET _watcher/watch/my_watch`.", "value": "{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"_version\": 1,\n \"status\": { \n \"version\": 1,\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-05-26T18:21:08.630Z\"\n },\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:21:08.630Z\",\n \"state\": \"awaits_successful_execution\"\n }\n }\n }\n },\n \"watch\": {\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"trigger\": {\n \"schedule\": {\n \"hourly\": {\n \"minute\": [0, 5]\n }\n }\n },\n \"actions\": {\n \"test_index\": {\n \"index\": {\n \"index\": \"test\"\n }\n }\n }\n }\n}" } }, "name": { "name": "Response", "namespace": "watcher.get_watch" }, "specLocation": "watcher/get_watch/GetWatchResponse.ts#L24-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The list of actions that will be run if the condition matches.", "name": "actions", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Action", "namespace": "watcher._types" } } } }, { "description": "The condition that defines if the actions should be run.", "name": "condition", "required": false, "type": { "kind": "instance_of", "type": { "name": "ConditionContainer", "namespace": "watcher._types" } } }, { "description": "The input that defines the input that loads the data for the watch.", "name": "input", "required": false, "type": { "kind": "instance_of", "type": { "name": "InputContainer", "namespace": "watcher._types" } } }, { "description": "Metadata JSON that will be copied into the history entries.", "name": "metadata", "required": false, "type": { "kind": "instance_of", "type": { "name": "Metadata", "namespace": "_types" } } }, { "description": "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.", "name": "throttle_period", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "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.", "name": "throttle_period_in_millis", "required": false, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } }, { "description": "The transform that processes the watch payload to prepare it for the watch actions.", "name": "transform", "required": false, "type": { "kind": "instance_of", "type": { "name": "TransformContainer", "namespace": "_types" } } }, { "description": "The trigger that defines when the watch should run.", "name": "trigger", "required": false, "type": { "kind": "instance_of", "type": { "name": "TriggerContainer", "namespace": "watcher._types" } } } ] }, "description": "Create or update a watch.\nWhen a watch is registered, a new document that represents the watch is added to the `.watches` index and its trigger is immediately registered with the relevant trigger engine.\nTypically for the `schedule` trigger, the scheduler is the trigger engine.\n\nIMPORTANT: You must use Kibana or this API to create a watch.\nDo not add a watch directly to the `.watches` index by using the Elasticsearch index API.\nIf Elasticsearch security features are enabled, do not give users write privileges on the `.watches` index.\n\nWhen you add a watch you can also define its initial active state by setting the *active* parameter.\n\nWhen Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges.\nIf the user is able to read index `a`, but not index `b`, the same will apply when the watch runs.", "examples": { "WatcherPutWatchRequestExample1": { "description": "Run `PUT _watcher/watch/my-watch` add a watch. The watch schedule triggers every minute. The watch search input looks for any 404 HTTP responses that occurred in the last five minutes. The watch condition checks if any search hits where found. When found, the watch action sends an email to an administrator.\n", "value": "{\n \"trigger\" : {\n \"schedule\" : { \"cron\" : \"0 0/1 * * * ?\" }\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [\n \"logstash*\"\n ],\n \"body\" : {\n \"query\" : {\n \"bool\" : {\n \"must\" : {\n \"match\": {\n \"response\": 404\n }\n },\n \"filter\" : {\n \"range\": {\n \"@timestamp\": {\n \"from\": \"{{ctx.trigger.scheduled_time}}||-5m\",\n \"to\": \"{{ctx.trigger.triggered_time}}\"\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }}\n },\n \"actions\" : {\n \"email_admin\" : {\n \"email\" : {\n \"to\" : \"admin@domain.host.com\",\n \"subject\" : \"404 recently encountered\"\n }\n }\n }\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.put_watch" }, "path": [ { "description": "The identifier for the watch.", "name": "id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "query": [ { "description": "The initial state of the watch.\nThe default value is `true`, which means the watch is active by default.", "name": "active", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "only update the watch if the last operation that has changed the watch has the specified primary term", "name": "if_primary_term", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "only update the watch if the last operation that has changed the watch has the specified sequence number", "name": "if_seq_no", "required": false, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "description": "Explicit version number for concurrency control", "name": "version", "required": false, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ], "specLocation": "watcher/put_watch/WatcherPutWatchRequest.ts#L31-L110" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "created", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "name": "_primary_term", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "_seq_no", "required": true, "type": { "kind": "instance_of", "type": { "name": "SequenceNumber", "namespace": "_types" } } }, { "name": "_version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionNumber", "namespace": "_types" } } } ] }, "name": { "name": "Response", "namespace": "watcher.put_watch" }, "specLocation": "watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "description": "The offset from the first result to fetch.\nIt must be non-negative.", "name": "from", "required": false, "serverDefault": 0, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "The number of hits to return.\nIt must be non-negative.", "name": "size", "required": false, "serverDefault": 10, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A query that filters the watches to be returned.", "name": "query", "required": false, "type": { "kind": "instance_of", "type": { "name": "QueryContainer", "namespace": "_types.query_dsl" } } }, { "description": "One or more fields used to sort the search results.", "extDocId": "sort-search-results", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/sort-search-results", "name": "sort", "required": false, "type": { "kind": "instance_of", "type": { "name": "Sort", "namespace": "_types" } } }, { "description": "Retrieve the next page of hits using a set of sort values from the previous page.", "extDocId": "search-after", "extDocUrl": "https://www.elastic.co/docs/reference/elasticsearch/rest-apis/paginate-search-results#search-after", "name": "search_after", "required": false, "type": { "kind": "instance_of", "type": { "name": "SortResults", "namespace": "_types" } } } ] }, "description": "Query watches.\nGet all registered watches in a paginated manner and optionally filter watches by a query.\n\nNote that only the `_id` and `metadata.*` fields are queryable or sortable.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.query_watches" }, "path": [], "query": [], "specLocation": "watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "description": "The total number of watches found.", "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "description": "A list of watches based on the `from`, `size`, or `search_after` request body parameters.", "name": "watches", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "QueryWatch", "namespace": "watcher._types" } } } } ] }, "examples": { "WatcherQueryWatchesResponseExample1": { "description": "A successful response from `GET /_watcher/_query/watches`.", "value": "{\n \"count\": 1,\n \"watches\": [\n {\n \"_id\": \"my_watch\",\n \"watch\": {\n \"trigger\": {\n \"schedule\": {\n \"hourly\": {\n \"minute\": [\n 0,\n 5\n ]\n }\n }\n },\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"actions\": {\n \"test_index\": {\n \"index\": {\n \"index\": \"test\"\n }\n }\n }\n },\n \"status\": {\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-05-26T18:21:08.630Z\"\n },\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:21:08.630Z\",\n \"state\": \"awaits_successful_execution\"\n }\n }\n },\n \"version\": -1\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1\n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "watcher.query_watches" }, "specLocation": "watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L34" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Start the watch service.\nStart the Watcher service if it is not already running.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.start" }, "path": [], "query": [ { "description": "Period to wait for a connection to the master node.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "watcher/start/WatcherStartRequest.ts#L23-L45" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "WatcherStartResponseExample1": { "description": "A successful response from `POST _watcher/_start`.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "watcher.start" }, "specLocation": "watcher/start/WatcherStartResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get Watcher statistics.\nThis API always returns basic metrics.\nYou retrieve more metrics by using the metric parameter.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.stats" }, "path": [ { "description": "Defines which additional metrics are included in the response.", "name": "metric", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "WatcherMetric", "namespace": "watcher.stats" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "WatcherMetric", "namespace": "watcher.stats" } } } ] } } ], "query": [ { "description": "Defines whether stack traces are generated for each watch that is running.", "name": "emit_stacktraces", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines which additional metrics are included in the response.", "name": "metric", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "WatcherMetric", "namespace": "watcher.stats" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "WatcherMetric", "namespace": "watcher.stats" } } } ] } } ], "specLocation": "watcher/stats/WatcherStatsRequest.ts#L23-L60" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "codegenName": "node_stats", "name": "_nodes", "required": true, "type": { "kind": "instance_of", "type": { "name": "NodeStatistics", "namespace": "_types" } } }, { "name": "cluster_name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } } }, { "name": "manually_stopped", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "stats", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "WatcherNodeStats", "namespace": "watcher.stats" } } } } ] }, "examples": { "WatcherStatsResponseExample1": { "description": "A successful response from `GET _watcher/stats`.", "summary": "Basic metrics", "value": "{\n \"watcher_state\": \"started\", \n \"watch_count\": 1, \n \"execution_thread_pool\": {\n \"size\": 1000, \n \"max_size\": 1 \n }\n}" }, "WatcherStatsResponseExample2": { "description": "A successful response from `GET _watcher/stats?metric=current_watches`.", "summary": "Current watch metrics", "value": "{\n \"watcher_state\": \"started\",\n \"watch_count\": 2,\n \"execution_thread_pool\": {\n \"queue_size\": 1000,\n \"max_size\": 20\n },\n \"current_watches\": [ \n {\n \"watch_id\": \"slow_condition\", \n \"watch_record_id\": \"slow_condition_3-2015-05-13T07:42:32.179Z\", \n \"triggered_time\": \"2015-05-12T11:53:51.800Z\", \n \"execution_time\": \"2015-05-13T07:42:32.179Z\", \n \"execution_phase\": \"condition\" \n }\n ]\n}" }, "WatcherStatsResponseExample3": { "description": "An abbreviated response from `GET _watcher/stats/queued_watches`.", "summary": "Queued watch metrics", "value": "{\n \"watcher_state\": \"started\",\n \"watch_count\": 10,\n \"execution_thread_pool\": {\n \"queue_size\": 1000,\n \"max_size\": 20\n },\n \"queued_watches\": [ \n {\n \"watch_id\": \"slow_condition4\", \n \"watch_record_id\": \"slow_condition4_223-2015-05-21T11:59:59.811Z\", \n \"triggered_time\": \"2015-05-21T11:59:59.811Z\", \n \"execution_time\": \"2015-05-21T11:59:59.811Z\" \n }\n ]\n}" } }, "name": { "name": "Response", "namespace": "watcher.stats" }, "specLocation": "watcher/stats/WatcherStatsResponse.ts#L24-L32" }, { "kind": "interface", "name": { "name": "WatchRecordQueuedStats", "namespace": "watcher.stats" }, "properties": [ { "description": "The time the watch was run.\nThis is just before the input is being run.", "name": "execution_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } } ], "specLocation": "watcher/stats/types.ts#L71-L77" }, { "kind": "interface", "inherits": { "type": { "name": "WatchRecordQueuedStats", "namespace": "watcher.stats" } }, "name": { "name": "WatchRecordStats", "namespace": "watcher.stats" }, "properties": [ { "description": "The current watch execution phase.", "name": "execution_phase", "required": true, "type": { "kind": "instance_of", "type": { "name": "ExecutionPhase", "namespace": "watcher._types" } } }, { "description": "The time the watch was triggered by the trigger engine.", "name": "triggered_time", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "executed_actions", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "watch_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } }, { "description": "The watch record identifier.", "name": "watch_record_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "watcher/stats/types.ts#L79-L94" }, { "kind": "enum", "members": [ { "aliases": [ "all" ], "name": "_all" }, { "name": "queued_watches" }, { "name": "current_watches" }, { "name": "pending_watches" } ], "name": { "name": "WatcherMetric", "namespace": "watcher.stats" }, "specLocation": "watcher/stats/types.ts#L63-L69" }, { "kind": "interface", "name": { "name": "WatcherNodeStats", "namespace": "watcher.stats" }, "properties": [ { "description": "The current executing watches metric gives insight into the watches that are currently being executed by Watcher.\nAdditional information is shared per watch that is currently executing.\nThis information includes the `watch_id`, the time its execution started and its current execution phase.\nTo include this metric, the `metric` option should be set to `current_watches` or `_all`.\nIn addition you can also specify the `emit_stacktraces=true` parameter, which adds stack traces for each watch that is being run.\nThese stack traces can give you more insight into an execution of a watch.", "name": "current_watches", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "WatchRecordStats", "namespace": "watcher.stats" } } } }, { "name": "execution_thread_pool", "required": true, "type": { "kind": "instance_of", "type": { "name": "ExecutionThreadPool", "namespace": "watcher._types" } } }, { "description": "Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.\nIf too many watches trigger concurrently and there isn't enough capacity to run them all, some of the watches are queued, waiting for the current running watches to finish.s\nThe queued watches metric gives insight on these queued watches.\n\nTo include this metric, the `metric` option should include `queued_watches` or `_all`.", "name": "queued_watches", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "WatchRecordQueuedStats", "namespace": "watcher.stats" } } } }, { "description": "The number of watches currently registered.", "name": "watch_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "description": "The current state of Watcher.", "name": "watcher_state", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatcherState", "namespace": "watcher.stats" } } }, { "name": "node_id", "required": true, "type": { "kind": "instance_of", "type": { "name": "Id", "namespace": "_types" } } } ], "specLocation": "watcher/stats/types.ts#L33-L61" }, { "kind": "enum", "members": [ { "name": "stopped" }, { "name": "starting" }, { "name": "started" }, { "name": "stopping" } ], "name": { "name": "WatcherState", "namespace": "watcher.stats" }, "specLocation": "watcher/stats/types.ts#L26-L31" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Stop the watch service.\nStop the Watcher service if it is running.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.stop" }, "path": [], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "watcher/stop/WatcherStopRequest.ts#L23-L47" }, { "kind": "response", "body": { "kind": "value", "codegenName": "result", "value": { "kind": "instance_of", "type": { "name": "AcknowledgedResponseBase", "namespace": "_types" } } }, "examples": { "WatcherStopResponseExample1": { "description": "A successful response from `POST _watcher/_stop`.", "value": "{\n \"acknowledged\": true\n}" } }, "name": { "name": "Response", "namespace": "watcher.stop" }, "specLocation": "watcher/stop/WatcherStopResponse.ts#L22-L25" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "properties", "properties": [ { "name": "index.auto_expand_replicas", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "index.number_of_replicas", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ] }, "description": "Update Watcher index settings.\nUpdate settings for the Watcher internal index (`.watches`).\nOnly a subset of settings can be modified.\nThis includes `index.auto_expand_replicas`, `index.number_of_replicas`, `index.routing.allocation.exclude.*`,\n`index.routing.allocation.include.*` and `index.routing.allocation.require.*`.\nModification of `index.routing.allocation.include._tier_preference` is an exception and is not allowed as the\nWatcher shards must always be in the `data_content` tier.", "examples": { "WatcherUpdateSettingsRequestExample1": { "value": "{\n \"index.auto_expand_replicas\": \"0-4\"\n}" } }, "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "watcher.update_settings" }, "path": [], "query": [ { "description": "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.", "name": "master_timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "description": "The period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L61" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "acknowledged", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ] }, "name": { "name": "Response", "namespace": "watcher.update_settings" }, "specLocation": "watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24" }, { "kind": "interface", "name": { "name": "BuildInformation", "namespace": "xpack.info" }, "properties": [ { "name": "date", "required": true, "type": { "kind": "instance_of", "type": { "name": "DateTime", "namespace": "_types" } } }, { "name": "hash", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "xpack/info/types.ts#L24-L27" }, { "kind": "interface", "name": { "name": "Feature", "namespace": "xpack.info" }, "properties": [ { "name": "available", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "description", "required": false, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "native_code_info", "required": false, "type": { "kind": "instance_of", "type": { "name": "NativeCodeInformation", "namespace": "xpack.info" } } } ], "specLocation": "xpack/info/types.ts#L84-L89" }, { "kind": "interface", "name": { "name": "Features", "namespace": "xpack.info" }, "properties": [ { "name": "aggregate_metric", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "analytics", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "ccr", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "data_streams", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "data_tiers", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "enrich", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "availability": { "stack": { "since": "8.8.0" } }, "name": "enterprise_search", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "eql", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "availability": { "stack": { "since": "8.14.0" } }, "name": "esql", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "graph", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "ilm", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "logstash", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "logsdb", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "ml", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "monitoring", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "rollup", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "runtime_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "searchable_snapshots", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "security", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "slm", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "spatial", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "sql", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "transform", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "availability": { "stack": { "since": "8.7.0" } }, "name": "universal_profiling", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "voting_only", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "name": "watcher", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } }, { "availability": { "stack": { "since": "8.2.0" } }, "name": "archive", "required": true, "type": { "kind": "instance_of", "type": { "name": "Feature", "namespace": "xpack.info" } } } ], "specLocation": "xpack/info/types.ts#L42-L82" }, { "kind": "interface", "name": { "name": "MinimalLicenseInformation", "namespace": "xpack.info" }, "properties": [ { "name": "expiry_date_in_millis", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "EpochTime", "namespace": "_types" } } }, { "name": "mode", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseType", "namespace": "license._types" } } }, { "name": "status", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseStatus", "namespace": "license._types" } } }, { "name": "type", "required": true, "type": { "kind": "instance_of", "type": { "name": "LicenseType", "namespace": "license._types" } } }, { "name": "uid", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ], "specLocation": "xpack/info/types.ts#L34-L40" }, { "kind": "interface", "name": { "name": "NativeCodeInformation", "namespace": "xpack.info" }, "properties": [ { "name": "build_hash", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "name": "version", "required": true, "type": { "kind": "instance_of", "type": { "name": "VersionString", "namespace": "_types" } } } ], "specLocation": "xpack/info/types.ts#L29-L32" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get information.\nThe information provided by the API includes:\n\n* Build information including the build number and timestamp.\n* License information about the currently installed license.\n* Feature information for the features that are currently enabled and available under the current license.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "xpack.info" }, "path": [], "query": [ { "description": "A comma-separated list of the information categories to include in the response.\nFor example, `build,license,features`.", "name": "categories", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "XPackCategory", "namespace": "xpack.info" } } } }, { "description": "If this param is used it must be set to true", "name": "accept_enterprise", "required": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Defines whether additional human-readable information is included in the response.\nIn particular, it adds descriptions and a tag line.", "name": "human", "required": false, "serverDefault": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "xpack/info/XPackInfoRequest.ts#L22-L56" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "build", "required": true, "type": { "kind": "instance_of", "type": { "name": "BuildInformation", "namespace": "xpack.info" } } }, { "name": "features", "required": true, "type": { "kind": "instance_of", "type": { "name": "Features", "namespace": "xpack.info" } } }, { "name": "license", "required": true, "type": { "kind": "instance_of", "type": { "name": "MinimalLicenseInformation", "namespace": "xpack.info" } } }, { "name": "tagline", "required": true, "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] }, "examples": { "XPackInfoResponseExample1": { "description": "A successful response from `GET /_xpack`.", "value": "{\n \"build\" : {\n \"hash\" : \"2798b1a3ce779b3611bb53a0082d4d741e4d3168\",\n \"date\" : \"2015-04-07T13:34:42Z\"\n },\n \"license\" : {\n \"uid\" : \"893361dc-9749-4997-93cb-xxx\",\n \"type\" : \"trial\",\n \"mode\" : \"trial\",\n \"status\" : \"active\",\n \"expiry_date_in_millis\" : 1542665112332\n },\n \"features\" : {\n \"ccr\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"aggregate_metric\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"analytics\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"archive\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"enrich\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"graph\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ilm\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"logstash\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ml\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"esql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"monitoring\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"rollup\": {\n \"available\": true,\n \"enabled\": true\n },\n \"searchable_snapshots\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"security\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"slm\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"spatial\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"eql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"sql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"transform\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"voting_only\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"watcher\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"data_streams\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"data_tiers\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"enterprise_search\": {\n \"available\": true,\n \"enabled\": true\n },\n \"universal_profiling\": {\n \"available\": true,\n \"enabled\": true\n },\n \"logsdb\": {\n \"available\": true,\n \"enabled\": false\n }\n },\n \"tagline\" : \"You know, for X\"\n}" } }, "name": { "name": "Response", "namespace": "xpack.info" }, "specLocation": "xpack/info/XPackInfoResponse.ts#L22-L29" }, { "kind": "enum", "members": [ { "name": "build" }, { "name": "features" }, { "name": "license" } ], "name": { "name": "XPackCategory", "namespace": "xpack.info" }, "specLocation": "xpack/info/XPackInfoRequest.ts#L58-L62" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Analytics", "namespace": "xpack.usage" }, "properties": [ { "name": "stats", "required": true, "type": { "kind": "instance_of", "type": { "name": "AnalyticsStatistics", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L340-L342" }, { "kind": "interface", "name": { "name": "AnalyticsStatistics", "namespace": "xpack.usage" }, "properties": [ { "name": "boxplot_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "cumulative_cardinality_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "string_stats_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "top_metrics_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "t_test_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "moving_percentiles_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "normalize_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "rate_usage", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "multi_terms_usage", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L58-L68" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Archive", "namespace": "xpack.usage" }, "properties": [ { "name": "indices_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L45-L47" }, { "kind": "interface", "inherits": { "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } }, "name": { "name": "Audit", "namespace": "xpack.usage" }, "properties": [ { "name": "outputs", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } } ], "specLocation": "xpack/usage/types.ts#L70-L72" }, { "kind": "interface", "name": { "name": "Base", "namespace": "xpack.usage" }, "properties": [ { "name": "available", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "xpack/usage/types.ts#L27-L30" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Ccr", "namespace": "xpack.usage" }, "properties": [ { "name": "auto_follow_patterns_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "follower_indices_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L344-L347" }, { "kind": "interface", "name": { "name": "Counter", "namespace": "xpack.usage" }, "properties": [ { "name": "active", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L32-L35" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "DataStreams", "namespace": "xpack.usage" }, "properties": [ { "name": "data_streams", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "indices_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L78-L81" }, { "kind": "interface", "name": { "name": "DataTierPhaseStatistics", "namespace": "xpack.usage" }, "properties": [ { "name": "node_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_shard_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_shard_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "doc_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "total_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_size_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_shard_size_avg_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_shard_size_median_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "primary_shard_size_mad_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L83-L94" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "DataTiers", "namespace": "xpack.usage" }, "properties": [ { "name": "data_warm", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataTierPhaseStatistics", "namespace": "xpack.usage" } } }, { "availability": { "serverless": {}, "stack": { "since": "7.13.0" } }, "name": "data_frozen", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataTierPhaseStatistics", "namespace": "xpack.usage" } } }, { "name": "data_cold", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataTierPhaseStatistics", "namespace": "xpack.usage" } } }, { "name": "data_content", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataTierPhaseStatistics", "namespace": "xpack.usage" } } }, { "name": "data_hot", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataTierPhaseStatistics", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L349-L359" }, { "kind": "interface", "name": { "name": "Datafeed", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L74-L76" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Eql", "namespace": "xpack.usage" }, "properties": [ { "name": "features", "required": true, "type": { "kind": "instance_of", "type": { "name": "EqlFeatures", "namespace": "xpack.usage" } } }, { "name": "queries", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Query", "namespace": "xpack.usage" } } } } ], "specLocation": "xpack/usage/types.ts#L361-L364" }, { "kind": "interface", "name": { "name": "EqlFeatures", "namespace": "xpack.usage" }, "properties": [ { "name": "join", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "joins", "required": true, "type": { "kind": "instance_of", "type": { "name": "EqlFeaturesJoin", "namespace": "xpack.usage" } } }, { "name": "keys", "required": true, "type": { "kind": "instance_of", "type": { "name": "EqlFeaturesKeys", "namespace": "xpack.usage" } } }, { "name": "event", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "pipes", "required": true, "type": { "kind": "instance_of", "type": { "name": "EqlFeaturesPipes", "namespace": "xpack.usage" } } }, { "name": "sequence", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "sequences", "required": true, "type": { "kind": "instance_of", "type": { "name": "EqlFeaturesSequences", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L96-L104" }, { "kind": "interface", "name": { "name": "EqlFeaturesJoin", "namespace": "xpack.usage" }, "properties": [ { "name": "join_queries_two", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_queries_three", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_until", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_queries_five_or_more", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_queries_four", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L106-L112" }, { "kind": "interface", "name": { "name": "EqlFeaturesKeys", "namespace": "xpack.usage" }, "properties": [ { "name": "join_keys_two", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_keys_one", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_keys_three", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_keys_five_or_more", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "join_keys_four", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L114-L120" }, { "kind": "interface", "name": { "name": "EqlFeaturesPipes", "namespace": "xpack.usage" }, "properties": [ { "name": "pipe_tail", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "pipe_head", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L122-L125" }, { "kind": "interface", "name": { "name": "EqlFeaturesSequences", "namespace": "xpack.usage" }, "properties": [ { "name": "sequence_queries_three", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "sequence_queries_four", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "sequence_queries_two", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "sequence_until", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "sequence_queries_five_or_more", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } }, { "name": "sequence_maxspan", "required": true, "type": { "kind": "instance_of", "type": { "name": "uint", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L127-L134" }, { "kind": "interface", "name": { "name": "FeatureToggle", "namespace": "xpack.usage" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "xpack/usage/types.ts#L37-L39" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Flattened", "namespace": "xpack.usage" }, "properties": [ { "name": "field_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L366-L368" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "HealthStatistics", "namespace": "xpack.usage" }, "properties": [ { "name": "invocations", "required": true, "type": { "kind": "instance_of", "type": { "name": "Invocations", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L150-L152" }, { "kind": "interface", "name": { "name": "Ilm", "namespace": "xpack.usage" }, "properties": [ { "name": "policy_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "policy_stats", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "IlmPolicyStatistics", "namespace": "xpack.usage" } } } } ], "specLocation": "xpack/usage/types.ts#L172-L175" }, { "kind": "interface", "name": { "name": "IlmPolicyStatistics", "namespace": "xpack.usage" }, "properties": [ { "name": "indices_managed", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "phases", "required": true, "type": { "kind": "instance_of", "type": { "name": "Phases", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L167-L170" }, { "kind": "interface", "name": { "name": "Invocations", "namespace": "xpack.usage" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L41-L43" }, { "kind": "interface", "name": { "name": "IpFilter", "namespace": "xpack.usage" }, "properties": [ { "name": "http", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "transport", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "xpack/usage/types.ts#L177-L180" }, { "kind": "interface", "name": { "name": "JobUsage", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "created_by", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "name": "detectors", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "forecasts", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlJobForecasts", "namespace": "xpack.usage" } } }, { "name": "model_size", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } } ], "specLocation": "xpack/usage/types.ts#L370-L376" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "MachineLearning", "namespace": "xpack.usage" }, "properties": [ { "name": "datafeeds", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Datafeed", "namespace": "xpack.usage" } } } }, { "description": "Job usage statistics. The `_all` entry is always present and gathers statistics for all jobs.", "name": "jobs", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "JobUsage", "namespace": "xpack.usage" } } } }, { "name": "node_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "data_frame_analytics_jobs", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlDataFrameAnalyticsJobs", "namespace": "xpack.usage" } } }, { "name": "inference", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlInference", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L378-L385" }, { "kind": "interface", "name": { "name": "MlCounter", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L265-L267" }, { "kind": "interface", "name": { "name": "MlDataFrameAnalyticsJobs", "namespace": "xpack.usage" }, "properties": [ { "name": "memory_usage", "required": false, "type": { "kind": "instance_of", "type": { "name": "MlDataFrameAnalyticsJobsMemory", "namespace": "xpack.usage" } } }, { "name": "_all", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlDataFrameAnalyticsJobsCount", "namespace": "xpack.usage" } } }, { "name": "analysis_counts", "required": false, "type": { "kind": "instance_of", "type": { "name": "MlDataFrameAnalyticsJobsAnalysis", "namespace": "xpack.usage" } } }, { "name": "stopped", "required": false, "type": { "kind": "instance_of", "type": { "name": "MlDataFrameAnalyticsJobsCount", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L187-L192" }, { "kind": "interface", "name": { "name": "MlDataFrameAnalyticsJobsAnalysis", "namespace": "xpack.usage" }, "properties": [ { "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "outlier_detection", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L194-L198" }, { "kind": "interface", "name": { "name": "MlDataFrameAnalyticsJobsCount", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L204-L206" }, { "kind": "interface", "name": { "name": "MlDataFrameAnalyticsJobsMemory", "namespace": "xpack.usage" }, "properties": [ { "name": "peak_usage_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } } ], "specLocation": "xpack/usage/types.ts#L200-L202" }, { "kind": "interface", "name": { "name": "MlInference", "namespace": "xpack.usage" }, "properties": [ { "name": "ingest_processors", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "MlInferenceIngestProcessor", "namespace": "xpack.usage" } } } }, { "name": "trained_models", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlInferenceTrainedModels", "namespace": "xpack.usage" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "deployments", "required": false, "type": { "kind": "instance_of", "type": { "name": "MlInferenceDeployments", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L208-L216" }, { "kind": "interface", "name": { "name": "MlInferenceDeployments", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "inference_counts", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "model_sizes_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "time_ms", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlInferenceDeploymentsTimeMs", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L237-L242" }, { "kind": "interface", "name": { "name": "MlInferenceDeploymentsTimeMs", "namespace": "xpack.usage" }, "properties": [ { "name": "avg", "required": true, "type": { "kind": "instance_of", "type": { "name": "double", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L244-L246" }, { "kind": "interface", "name": { "name": "MlInferenceIngestProcessor", "namespace": "xpack.usage" }, "properties": [ { "name": "num_docs_processed", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlInferenceIngestProcessorCount", "namespace": "xpack.usage" } } }, { "name": "pipelines", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlCounter", "namespace": "xpack.usage" } } }, { "name": "num_failures", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlInferenceIngestProcessorCount", "namespace": "xpack.usage" } } }, { "name": "time_ms", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlInferenceIngestProcessorCount", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L218-L223" }, { "kind": "interface", "name": { "name": "MlInferenceIngestProcessorCount", "namespace": "xpack.usage" }, "properties": [ { "name": "max", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "sum", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "min", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L248-L252" }, { "kind": "interface", "name": { "name": "MlInferenceTrainedModels", "namespace": "xpack.usage" }, "properties": [ { "name": "estimated_operations", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "estimated_heap_memory_usage_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } }, { "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "MlInferenceTrainedModelsCount", "namespace": "xpack.usage" } } }, { "name": "_all", "required": true, "type": { "kind": "instance_of", "type": { "name": "MlCounter", "namespace": "xpack.usage" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.0.0" } }, "name": "model_size_bytes", "required": false, "type": { "kind": "instance_of", "type": { "name": "JobStatistics", "namespace": "ml._types" } } } ], "specLocation": "xpack/usage/types.ts#L225-L235" }, { "kind": "interface", "name": { "name": "MlInferenceTrainedModelsCount", "namespace": "xpack.usage" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "prepackaged", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "other", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "pass_through", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "regression", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "classification", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "ner", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "text_embedding", "required": false, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L254-L263" }, { "kind": "interface", "name": { "name": "MlJobForecasts", "namespace": "xpack.usage" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "forecasted_jobs", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L182-L185" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Monitoring", "namespace": "xpack.usage" }, "properties": [ { "name": "collection_enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "enabled_exporters", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } } ], "specLocation": "xpack/usage/types.ts#L387-L390" }, { "kind": "interface", "name": { "name": "Phase", "namespace": "xpack.usage" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "min_age", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L154-L157" }, { "kind": "interface", "name": { "name": "Phases", "namespace": "xpack.usage" }, "properties": [ { "name": "cold", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "xpack.usage" } } }, { "name": "delete", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "xpack.usage" } } }, { "name": "frozen", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "xpack.usage" } } }, { "name": "hot", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "xpack.usage" } } }, { "name": "warm", "required": false, "type": { "kind": "instance_of", "type": { "name": "Phase", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L159-L165" }, { "kind": "interface", "name": { "name": "Query", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "failed", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "paging", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "total", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L269-L274" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Realm", "namespace": "xpack.usage" }, "properties": [ { "name": "name", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "order", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "name": "size", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } }, { "name": "cache", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RealmCache", "namespace": "xpack.usage" } } } }, { "name": "has_authorization_realms", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } }, { "name": "has_default_username_pattern", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } }, { "name": "has_truststore", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } }, { "name": "is_authentication_delegated", "required": false, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } } ], "specLocation": "xpack/usage/types.ts#L423-L432" }, { "kind": "interface", "name": { "name": "RealmCache", "namespace": "xpack.usage" }, "properties": [ { "name": "size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L276-L278" }, { "kind": "request", "attachedBehaviors": [ "CommonQueryParameters" ], "body": { "kind": "no_body" }, "description": "Get usage information.\nGet information about the features that are currently enabled and available under the current license.\nThe API also provides some usage statistics.", "inherits": { "type": { "name": "RequestBase", "namespace": "_types" } }, "name": { "name": "Request", "namespace": "xpack.usage" }, "path": [], "query": [ { "description": "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`.", "name": "master_timeout", "required": false, "serverDefault": "30s", "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } } ], "specLocation": "xpack/usage/XPackUsageRequest.ts#L23-L49" }, { "kind": "response", "body": { "kind": "properties", "properties": [ { "name": "aggregate_metric", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "analytics", "required": true, "type": { "kind": "instance_of", "type": { "name": "Analytics", "namespace": "xpack.usage" } } }, { "availability": { "serverless": {}, "stack": { "since": "8.2.0" } }, "name": "archive", "required": true, "type": { "kind": "instance_of", "type": { "name": "Archive", "namespace": "xpack.usage" } } }, { "name": "watcher", "required": true, "type": { "kind": "instance_of", "type": { "name": "Watcher", "namespace": "xpack.usage" } } }, { "name": "ccr", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ccr", "namespace": "xpack.usage" } } }, { "name": "data_frame", "required": false, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "data_science", "required": false, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "data_streams", "required": false, "type": { "kind": "instance_of", "type": { "name": "DataStreams", "namespace": "xpack.usage" } } }, { "name": "data_tiers", "required": true, "type": { "kind": "instance_of", "type": { "name": "DataTiers", "namespace": "xpack.usage" } } }, { "name": "enrich", "required": false, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "eql", "required": true, "type": { "kind": "instance_of", "type": { "name": "Eql", "namespace": "xpack.usage" } } }, { "name": "flattened", "required": false, "type": { "kind": "instance_of", "type": { "name": "Flattened", "namespace": "xpack.usage" } } }, { "name": "graph", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "health_api", "required": false, "type": { "kind": "instance_of", "type": { "name": "HealthStatistics", "namespace": "xpack.usage" } } }, { "name": "ilm", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ilm", "namespace": "xpack.usage" } } }, { "name": "logstash", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "ml", "required": true, "type": { "kind": "instance_of", "type": { "name": "MachineLearning", "namespace": "xpack.usage" } } }, { "name": "monitoring", "required": true, "type": { "kind": "instance_of", "type": { "name": "Monitoring", "namespace": "xpack.usage" } } }, { "name": "rollup", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "runtime_fields", "required": false, "type": { "kind": "instance_of", "type": { "name": "RuntimeFieldTypes", "namespace": "xpack.usage" } } }, { "name": "spatial", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "searchable_snapshots", "required": true, "type": { "kind": "instance_of", "type": { "name": "SearchableSnapshots", "namespace": "xpack.usage" } } }, { "name": "security", "required": true, "type": { "kind": "instance_of", "type": { "name": "Security", "namespace": "xpack.usage" } } }, { "name": "slm", "required": true, "type": { "kind": "instance_of", "type": { "name": "Slm", "namespace": "xpack.usage" } } }, { "name": "sql", "required": true, "type": { "kind": "instance_of", "type": { "name": "Sql", "namespace": "xpack.usage" } } }, { "name": "transform", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } }, { "name": "vectors", "required": false, "type": { "kind": "instance_of", "type": { "name": "Vector", "namespace": "xpack.usage" } } }, { "name": "voting_only", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } } ] }, "examples": { "XPackUsageResponseExample1": { "description": "An abbreviated response from `GET /_xpack/usage`.", "value": "{\n \"security\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"monitoring\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"collection_enabled\" : false,\n \"enabled_exporters\" : {\n \"local\" : 1\n }\n },\n \"watcher\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"execution\" : {\n \"actions\" : {\n \"_all\" : {\n \"total\" : 0,\n \"total_time_in_ms\" : 0\n }\n }\n },\n \"watch\" : {\n \"input\" : {\n \"_all\" : {\n \"total\" : 0,\n \"active\" : 0\n }\n },\n \"trigger\" : {\n \"_all\" : {\n \"total\" : 0,\n \"active\" : 0\n }\n }\n },\n \"count\" : {\n \"total\" : 0,\n \"active\" : 0\n }\n },\n \"graph\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ml\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"jobs\" : {\n \"_all\" : {\n \"count\" : 0,\n \"detectors\" : { },\n \"created_by\" : { },\n \"model_size\" : { },\n \"forecasts\" : {\n \"total\" : 0,\n \"forecasted_jobs\" : 0\n }\n }\n },\n \"datafeeds\" : {\n \"_all\" : {\n \"count\" : 0\n }\n },\n \"data_frame_analytics_jobs\" : {\n \"_all\" : {\n \"count\" : 0\n },\n \"analysis_counts\": { },\n \"memory_usage\": {\n \"peak_usage_bytes\": {\n \"min\": 0.0,\n \"max\": 0.0,\n \"avg\": 0.0,\n \"total\": 0.0\n }\n }\n },\n \"inference\" : {\n \"ingest_processors\" : {\n \"_all\" : {\n \"num_docs_processed\" : {\n \"max\" : 0,\n \"sum\" : 0,\n \"min\" : 0\n },\n \"pipelines\" : {\n \"count\" : 0\n },\n \"num_failures\" : {\n \"max\" : 0,\n \"sum\" : 0,\n \"min\" : 0\n },\n \"time_ms\" : {\n \"max\" : 0,\n \"sum\" : 0,\n \"min\" : 0\n }\n }\n },\n \"trained_models\" : {\n \"_all\" : {\n \"count\": 1\n },\n \"count\": {\n \"total\": 1,\n \"prepackaged\": 1,\n \"other\": 0\n },\n \"model_size_bytes\": {\n \"min\": 0.0,\n \"max\": 0.0,\n \"avg\": 0.0,\n \"total\": 0.0\n },\n \"estimated_operations\": {\n \"min\": 0.0,\n \"max\": 0.0,\n \"avg\": 0.0,\n \"total\": 0.0\n }\n },\n \"deployments\": {\n \"count\": 0,\n \"inference_counts\": {\n \"total\": 0.0,\n \"min\": 0.0,\n \"avg\": 0.0,\n \"max\": 0.0\n },\n \"stats_by_model\": [],\n \"model_sizes_bytes\": {\n \"total\": 0.0,\n \"min\": 0.0,\n \"avg\": 0.0,\n \"max\": 0.0\n },\n \"time_ms\": {\n \"avg\": 0.0\n }\n }\n },\n \"node_count\" : 1,\n \"memory\": {\n anomaly_detectors_memory_bytes: 0,\n data_frame_analytics_memory_bytes: 0,\n pytorch_inference_memory_bytes: 0,\n total_used_memory_bytes: 0\n }\n },\n \"inference\": {\n \"available\" : true,\n \"enabled\" : true,\n \"models\" : [ ]\n },\n \"logstash\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"eql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"esql\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"features\" : {\n \"eval\" : 0,\n \"stats\" : 0,\n \"dissect\": 0,\n \"grok\" : 0,\n \"limit\" : 0,\n \"where\" : 0,\n \"sort\" : 0,\n \"drop\" : 0,\n \"show\" : 0,\n \"rename\" : 0,\n \"mv_expand\" : 0,\n \"keep\" : 0,\n \"enrich\" : 0,\n \"from\" : 0,\n \"row\" : 0\n },\n \"queries\" : {\n \"rest\" : {\n \"total\" : 0,\n \"failed\" : 0\n },\n \"kibana\" : {\n \"total\" : 0,\n \"failed\" : 0\n },\n \"_all\" : {\n \"total\" : 0,\n \"failed\" : 0\n }\n }\n },\n \"sql\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"features\" : {\n \"having\" : 0,\n \"subselect\" : 0,\n \"limit\" : 0,\n \"orderby\" : 0,\n \"where\" : 0,\n \"join\" : 0,\n \"groupby\" : 0,\n \"command\" : 0,\n \"local\" : 0\n },\n \"queries\" : {\n \"rest\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"cli\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"canvas\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"odbc\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"jdbc\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"odbc32\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"odbc64\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"_all\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"translate\" : {\n \"count\" : 0\n }\n }\n },\n \"rollup\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ilm\" : {\n \"policy_count\" : 3,\n \"policy_stats\" : [ ]\n },\n \"slm\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ccr\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"follower_indices_count\" : 0,\n \"auto_follow_patterns_count\" : 0\n },\n \"transform\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"voting_only\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"searchable_snapshots\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"indices_count\" : 0,\n \"full_copy_indices_count\" : 0,\n \"shared_cache_indices_count\" : 0\n },\n \"spatial\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"analytics\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"stats\": {\n \"boxplot_usage\" : 0,\n \"top_metrics_usage\" : 0,\n \"normalize_usage\" : 0,\n \"cumulative_cardinality_usage\" : 0,\n \"t_test_usage\" : 0,\n \"rate_usage\" : 0,\n \"string_stats_usage\" : 0,\n \"moving_percentiles_usage\" : 0,\n \"multi_terms_usage\" : 0\n }\n },\n \"data_streams\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"data_streams\" : 0,\n \"indices_count\" : 0\n },\n \"data_lifecycle\" : {\n \"available\": true,\n \"enabled\": true,\n \"count\": 0,\n \"default_rollover_used\": true,\n \"data_retention\": {\n \"configured_data_streams\": 0\n },\n \"effective_retention\": {\n \"retained_data_streams\": 0\n },\n \"global_retention\": {\n \"default\": {\n \"defined\": false\n },\n \"max\": {\n \"defined\": false\n }\n }\n },\n \"data_tiers\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"data_warm\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_frozen\" : {\n \"node_count\" : 1,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_cold\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_content\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_hot\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n }\n },\n \"aggregate_metric\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"archive\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"indices_count\" : 0\n },\n \"health_api\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"invocations\": {\n \"total\": 0\n }\n },\n \"remote_clusters\": {\n \"size\": 0,\n \"mode\": {\n \"proxy\": 0,\n \"sniff\": 0\n },\n \"security\": {\n \"cert\": 0,\n \"api_key\": 0\n }\n },\n \"enterprise_search\" : {\n \"available\": true,\n \"enabled\": true,\n \"search_applications\" : {\n \"count\": 0\n },\n \"analytics_collections\": {\n \"count\": 0\n },\n \"query_rulesets\": {\n \"total_rule_count\": 0,\n \"total_count\": 0,\n \"min_rule_count\": 0,\n \"max_rule_count\": 0\n }\n },\n \"universal_profiling\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"logsdb\": {\n \"available\": true,\n \"enabled\": false,\n \"indices_count\": 0,\n \"indices_with_synthetic_source\": 0,\n \"num_docs\": 0,\n \"size_in_bytes\": 0,\n \"has_custom_cutoff_date\": false\n }\n}" } }, "name": { "name": "Response", "namespace": "xpack.usage" }, "specLocation": "xpack/usage/XPackUsageResponse.ts#L42-L77" }, { "kind": "interface", "name": { "name": "RoleMapping", "namespace": "xpack.usage" }, "properties": [ { "name": "enabled", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "size", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L280-L283" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "RuntimeFieldTypes", "namespace": "xpack.usage" }, "properties": [ { "name": "field_types", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "RuntimeFieldsType", "namespace": "xpack.usage" } } } } ], "specLocation": "xpack/usage/types.ts#L285-L287" }, { "kind": "interface", "name": { "name": "RuntimeFieldsType", "namespace": "xpack.usage" }, "properties": [ { "name": "chars_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "chars_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "doc_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "doc_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "index_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "lang", "required": true, "type": { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } }, { "name": "lines_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "lines_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "name", "required": true, "type": { "kind": "instance_of", "type": { "name": "Field", "namespace": "_types" } } }, { "name": "scriptless_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "shadowed_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "source_max", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } }, { "name": "source_total", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L289-L304" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "SearchableSnapshots", "namespace": "xpack.usage" }, "properties": [ { "name": "indices_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "full_copy_indices_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "shared_cache_indices_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L434-L438" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Security", "namespace": "xpack.usage" }, "properties": [ { "name": "api_key_service", "required": true, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } }, { "name": "anonymous", "required": true, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } }, { "name": "audit", "required": true, "type": { "kind": "instance_of", "type": { "name": "Audit", "namespace": "xpack.usage" } } }, { "name": "fips_140", "required": true, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } }, { "name": "ipfilter", "required": true, "type": { "kind": "instance_of", "type": { "name": "IpFilter", "namespace": "xpack.usage" } } }, { "name": "realms", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Realm", "namespace": "xpack.usage" } } } }, { "name": "role_mapping", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "RoleMapping", "namespace": "xpack.usage" } } } }, { "name": "roles", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecurityRoles", "namespace": "xpack.usage" } } }, { "name": "ssl", "required": true, "type": { "kind": "instance_of", "type": { "name": "Ssl", "namespace": "xpack.usage" } } }, { "name": "system_key", "required": false, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } }, { "name": "token_service", "required": true, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } }, { "name": "operator_privileges", "required": true, "type": { "kind": "instance_of", "type": { "name": "Base", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L440-L453" }, { "kind": "interface", "name": { "name": "SecurityRoles", "namespace": "xpack.usage" }, "properties": [ { "name": "native", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecurityRolesNative", "namespace": "xpack.usage" } } }, { "name": "dls", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecurityRolesDls", "namespace": "xpack.usage" } } }, { "name": "file", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecurityRolesFile", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L306-L310" }, { "kind": "interface", "name": { "name": "SecurityRolesDls", "namespace": "xpack.usage" }, "properties": [ { "name": "bit_set_cache", "required": true, "type": { "kind": "instance_of", "type": { "name": "SecurityRolesDlsBitSetCache", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L318-L320" }, { "kind": "interface", "name": { "name": "SecurityRolesDlsBitSetCache", "namespace": "xpack.usage" }, "properties": [ { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "memory", "required": false, "type": { "kind": "instance_of", "type": { "name": "ByteSize", "namespace": "_types" } } }, { "name": "memory_in_bytes", "required": true, "type": { "kind": "instance_of", "type": { "name": "ulong", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L322-L326" }, { "kind": "interface", "name": { "name": "SecurityRolesFile", "namespace": "xpack.usage" }, "properties": [ { "name": "dls", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fls", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L328-L332" }, { "kind": "interface", "name": { "name": "SecurityRolesNative", "namespace": "xpack.usage" }, "properties": [ { "name": "dls", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "fls", "required": true, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "name": "size", "required": true, "type": { "kind": "instance_of", "type": { "name": "long", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L312-L316" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Slm", "namespace": "xpack.usage" }, "properties": [ { "name": "policy_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "policy_stats", "required": false, "type": { "kind": "instance_of", "type": { "name": "Statistics", "namespace": "slm._types" } } } ], "specLocation": "xpack/usage/types.ts#L455-L458" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Sql", "namespace": "xpack.usage" }, "properties": [ { "name": "features", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } }, { "name": "queries", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Query", "namespace": "xpack.usage" } } } } ], "specLocation": "xpack/usage/types.ts#L392-L395" }, { "kind": "interface", "name": { "name": "Ssl", "namespace": "xpack.usage" }, "properties": [ { "name": "http", "required": true, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } }, { "name": "transport", "required": true, "type": { "kind": "instance_of", "type": { "name": "FeatureToggle", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L397-L400" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Vector", "namespace": "xpack.usage" }, "properties": [ { "name": "dense_vector_dims_avg_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "dense_vector_fields_count", "required": true, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } }, { "name": "sparse_vector_fields_count", "required": false, "type": { "kind": "instance_of", "type": { "name": "integer", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L460-L464" }, { "kind": "interface", "inherits": { "type": { "name": "Base", "namespace": "xpack.usage" } }, "name": { "name": "Watcher", "namespace": "xpack.usage" }, "properties": [ { "name": "execution", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatcherActions", "namespace": "xpack.usage" } } }, { "name": "watch", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatcherWatch", "namespace": "xpack.usage" } } }, { "name": "count", "required": true, "type": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L466-L470" }, { "kind": "interface", "name": { "name": "WatcherActionTotals", "namespace": "xpack.usage" }, "properties": [ { "name": "total", "required": true, "type": { "kind": "instance_of", "type": { "name": "Duration", "namespace": "_types" } } }, { "name": "total_time_in_ms", "required": true, "type": { "kind": "instance_of", "generics": [ { "kind": "instance_of", "type": { "name": "UnitMillis", "namespace": "_types" } } ], "type": { "name": "DurationValue", "namespace": "_types" } } } ], "specLocation": "xpack/usage/types.ts#L418-L421" }, { "kind": "interface", "name": { "name": "WatcherActions", "namespace": "xpack.usage" }, "properties": [ { "name": "actions", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "WatcherActionTotals", "namespace": "xpack.usage" } } } } ], "specLocation": "xpack/usage/types.ts#L402-L404" }, { "kind": "interface", "name": { "name": "WatcherWatch", "namespace": "xpack.usage" }, "properties": [ { "name": "input", "required": true, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } } }, { "name": "condition", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } } }, { "name": "action", "required": false, "type": { "kind": "dictionary_of", "key": { "kind": "instance_of", "type": { "name": "Name", "namespace": "_types" } }, "singleKey": false, "value": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } } }, { "name": "trigger", "required": true, "type": { "kind": "instance_of", "type": { "name": "WatcherWatchTrigger", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L406-L411" }, { "kind": "interface", "name": { "name": "WatcherWatchTrigger", "namespace": "xpack.usage" }, "properties": [ { "name": "schedule", "required": false, "type": { "kind": "instance_of", "type": { "name": "WatcherWatchTriggerSchedule", "namespace": "xpack.usage" } } }, { "name": "_all", "required": true, "type": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L413-L416" }, { "kind": "interface", "inherits": { "type": { "name": "Counter", "namespace": "xpack.usage" } }, "name": { "name": "WatcherWatchTriggerSchedule", "namespace": "xpack.usage" }, "properties": [ { "name": "cron", "required": true, "type": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } }, { "name": "_all", "required": true, "type": { "kind": "instance_of", "type": { "name": "Counter", "namespace": "xpack.usage" } } } ], "specLocation": "xpack/usage/types.ts#L472-L475" }, { "kind": "interface", "description": "In some places in the specification an object consists of the union of a set of known properties\nand a set of runtime injected properties. Meaning that object should theoretically extend Dictionary but expose\na set of known keys and possibly. The object might already be part of an object graph and have a parent class.\nThis puts it into a bind that needs a client specific solution.\nWe therefore document the requirement to behave like a dictionary for unknown properties with this interface.", "generics": [ { "name": "TKey", "namespace": "_spec_utils.AdditionalProperties" }, { "name": "TValue", "namespace": "_spec_utils.AdditionalProperties" } ], "name": { "name": "AdditionalProperties", "namespace": "_spec_utils" }, "properties": [], "specLocation": "_spec_utils/behaviors.ts#L20-L28" }, { "kind": "interface", "description": "In some places in the specification an object consists of a static set of properties and a single additional property\nwith an arbitrary name but a statically defined type. This is typically used for configurations associated\nto a single field. Meaning that object should theoretically extend SingleKeyDictionary but expose\na set of known keys. And possibly the object might already be part of an object graph and have a parent class.\nThis puts it into a bind that needs a client specific solution.\nWe therefore document the requirement to accept a single unknown property with this interface.", "generics": [ { "name": "TKey", "namespace": "_spec_utils.AdditionalProperty" }, { "name": "TValue", "namespace": "_spec_utils.AdditionalProperty" } ], "name": { "name": "AdditionalProperty", "namespace": "_spec_utils" }, "properties": [], "specLocation": "_spec_utils/behaviors.ts#L30-L39" }, { "kind": "interface", "description": "Implements a set of common query parameters all API's support.\nSince these can break the request structure these are listed explicitly as a behavior.\nIts up to individual clients to define support although `error_trace` and `pretty` are\nrecommended as a minimum.", "name": { "name": "CommonQueryParameters", "namespace": "_spec_utils" }, "properties": [ { "description": "When set to `true` Elasticsearch will include the full stack trace of errors\nwhen they occur.", "name": "error_trace", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "Comma-separated list of filters in dot notation which reduce the response\nreturned by Elasticsearch.", "name": "filter_path", "required": false, "type": { "kind": "union_of", "items": [ { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } }, { "kind": "array_of", "value": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } } ] } }, { "description": "When set to `true` will return statistics in a format suitable for humans.\nFor example `\"exists_time\": \"1h\"` for humans and\n`\"eixsts_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": "human", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "If set to `true` the returned JSON will be \"pretty-formatted\". Only use\nthis option for debugging only.", "name": "pretty", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_spec_utils/behaviors.ts#L41-L75" }, { "kind": "interface", "description": "A class that implements `OverloadOf` should have the exact same properties with the same types.\nIt can change if a property is required or not. There is no need to port the descriptions\nand js doc tags, the compiler will do that for you.", "generics": [ { "name": "TDefinition", "namespace": "_spec_utils.OverloadOf" } ], "name": { "name": "OverloadOf", "namespace": "_spec_utils" }, "properties": [], "specLocation": "_spec_utils/behaviors.ts#L102-L108" }, { "kind": "interface", "description": "Implements a set of common query parameters all Cat API's support.\nSince these can break the request structure these are listed explicitly as a behavior.", "name": { "name": "CommonCatQueryParameters", "namespace": "_spec_utils" }, "properties": [ { "description": "Specifies the format to return the columnar data in, can be set to\n`text`, `json`, `cbor`, `yaml`, or `smile`.", "name": "format", "required": false, "serverDefault": "text", "type": { "kind": "instance_of", "type": { "name": "string", "namespace": "_builtins" } } }, { "description": "When set to `true` will output available columns. This option\ncan't be combined with any other query string option.", "name": "help", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } }, { "description": "When set to `true` will enable verbose output.", "name": "v", "required": false, "serverDefault": false, "type": { "kind": "instance_of", "type": { "name": "boolean", "namespace": "_builtins" } } } ], "specLocation": "_spec_utils/behaviors.ts#L77-L100" } ] }